Skip to content

Commit

Permalink
fix: Fix meta kernel import in python builds
Browse files Browse the repository at this point in the history
  • Loading branch information
peri044 committed Dec 13, 2024
1 parent d47db76 commit 986793d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion py/torch_tensorrt/dynamo/runtime/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
)

if torch_tensorrt.ENABLED_FEATURES.torch_tensorrt_runtime:
from torch_tensorrt.dynamo.runtime.register_fake_class import *
from torch_tensorrt.dynamo.runtime.meta_ops.register_meta_ops.py import *
8 changes: 8 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ def run(self):
"torch_tensorrt.dynamo.lowering.passes",
"torch_tensorrt.dynamo.partitioning",
"torch_tensorrt.dynamo.runtime",
"torch_tensorrt.dynamo.runtime.meta_ops",
"torch_tensorrt.dynamo.tools",
"torch_tensorrt.fx",
"torch_tensorrt.fx.converters",
Expand Down Expand Up @@ -484,6 +485,13 @@ def run(self):
"torch_tensorrt.runtime": "py/torch_tensorrt/runtime",
}

if not PY_ONLY:
package_dir.update(
{
"torch_tensorrt.dynamo.runtime.meta_ops": "py/torch_tensorrt/dynamo/runtime/meta_ops"
}
)

package_data = {}

if not (PY_ONLY or NO_TS):
Expand Down

0 comments on commit 986793d

Please sign in to comment.