You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Requested using the Dynamo frontend but the Dynamo frontend is not available in this build of Torch-TensorRT"
115
+
)
116
+
elifmodule_is_fxableandir_targets_torch_compile:
117
+
ifENABLED_FEATURES.dynamo_frontend:
118
+
return_IRType.torch_compile
119
+
else:
120
+
raiseValueError(
121
+
"Requested using the Torch-TensorRT torch.compile backend but the Torch-TensorRT torch.compile backend is not available in this build of Torch-TensorRT"
122
+
)
105
123
else:
106
124
ifir=="default":
107
125
# Options are listed in order of preference
@@ -169,9 +187,9 @@ def compile(
169
187
Returns:
170
188
torch.nn.Module: Compiled Module, when run it will execute via TensorRT
"Module was provided as a torch.nn.Module, trying to script the module with torch.jit.script. In the event of a failure please preconvert your module to TorchScript"
Copy file name to clipboardExpand all lines: py/torch_tensorrt/dynamo/_settings.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@
12
12
DLA_SRAM_SIZE,
13
13
DRYRUN,
14
14
ENABLE_EXPERIMENTAL_DECOMPOSITIONS,
15
+
ENABLED_PRECISIONS,
15
16
ENGINE_CAPABILITY,
16
17
HARDWARE_COMPATIBLE,
17
18
MAX_AUX_STREAMS,
@@ -20,7 +21,6 @@
20
21
OPTIMIZATION_LEVEL,
21
22
OUTPUT_FORMAT,
22
23
PASS_THROUGH_BUILD_FAILURES,
23
-
PRECISION,
24
24
REFIT,
25
25
REQUIRE_FULL_COMPILATION,
26
26
SPARSE_WEIGHTS,
@@ -38,7 +38,7 @@ class CompilationSettings:
38
38
"""Compilation settings for Torch-TensorRT Dynamo Paths
39
39
40
40
Args:
41
-
precision (torch.dtype): Model Layer precision
41
+
enabled_precisions (Set[dtype]): Available kernel dtype precisions
42
42
debug (bool): Whether to print out verbose debugging information
43
43
workspace_size (int): Workspace TRT is allowed to use for the module (0 is default)
44
44
min_block_size (int): Minimum number of operators per TRT-Engine Block
@@ -73,7 +73,7 @@ class CompilationSettings:
73
73
output_format (str): Output format of the result of TRT compilation. Options include "exported_program" (or) "ep" | "torchscript" (or) "ts" | "graph_module" (or) "fx". Default is "exported_program"
0 commit comments