File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 77import ctypes
88import torch
99
10+ try :
11+ import tensorrt
12+ except :
13+ pass
14+
1015from torch_tensorrt ._version import __version__
1116from torch_tensorrt ._compile import *
1217from torch_tensorrt ._util import *
1722from torch_tensorrt ._Input import Input
1823from torch_tensorrt ._Device import Device
1924
20- from torch_tensorrt import fx
25+ # from torch_tensorrt import fx
2126
2227def _register_with_torch ():
2328 trtorch_dir = os .path .dirname (__file__ )
Original file line number Diff line number Diff line change 55import torch
66import torch .fx
77from enum import Enum
8- import torch_tensorrt .fx
9- from torch_tensorrt .fx .lower import lower_to_trt
10- from torch_tensorrt .fx .utils import LowerPrecision
8+ # import torch_tensorrt.fx
9+ # from torch_tensorrt.fx.lower import lower_to_trt
10+ # from torch_tensorrt.fx.utils import LowerPrecision
1111
1212class _IRType (Enum ):
1313 """Enum to set the minimum required logging level to print a message to stdout
You can’t perform that action at this time.
0 commit comments