File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 7
7
import ctypes
8
8
import torch
9
9
10
+ try :
11
+ import tensorrt
12
+ except :
13
+ pass
14
+
10
15
from torch_tensorrt ._version import __version__
11
16
from torch_tensorrt ._compile import *
12
17
from torch_tensorrt ._util import *
17
22
from torch_tensorrt ._Input import Input
18
23
from torch_tensorrt ._Device import Device
19
24
20
- from torch_tensorrt import fx
25
+ # from torch_tensorrt import fx
21
26
22
27
def _register_with_torch ():
23
28
trtorch_dir = os .path .dirname (__file__ )
Original file line number Diff line number Diff line change 5
5
import torch
6
6
import torch .fx
7
7
from 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
11
11
12
12
class _IRType (Enum ):
13
13
"""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