Skip to content

Commit

Permalink
conv batchnorm fuse
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene123tw committed Dec 18, 2024
1 parent 021cf2f commit 7ee9fa2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/otx/core/exporter/native.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ def to_openvino(
"""
dummy_tensor = torch.rand(self.input_size).to(next(model.parameters()).device)

# TODO(Eugene): Benchmark the performance of the model after conversion.
# for m in model.modules():
# if hasattr(m, 'convert_to_deploy'):
# m.convert_to_deploy()

if self.via_onnx:
with tempfile.TemporaryDirectory() as tmpdirname:
tmp_dir = Path(tmpdirname)
Expand Down

0 comments on commit 7ee9fa2

Please sign in to comment.