Skip to content

Commit 4494a53

Browse files
committed
chore: Disable fx to test workflow
Signed-off-by: Naren Dasan <[email protected]>
1 parent 23c0695 commit 4494a53

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

py/torch_tensorrt/__init__.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
import ctypes
88
import torch
99

10+
try:
11+
import tensorrt
12+
except:
13+
pass
14+
1015
from torch_tensorrt._version import __version__
1116
from torch_tensorrt._compile import *
1217
from torch_tensorrt._util import *
@@ -17,7 +22,7 @@
1722
from torch_tensorrt._Input import Input
1823
from torch_tensorrt._Device import Device
1924

20-
from torch_tensorrt import fx
25+
#from torch_tensorrt import fx
2126

2227
def _register_with_torch():
2328
trtorch_dir = os.path.dirname(__file__)

py/torch_tensorrt/_compile.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
import torch
66
import torch.fx
77
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
1111

1212
class _IRType(Enum):
1313
"""Enum to set the minimum required logging level to print a message to stdout

0 commit comments

Comments
 (0)