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
chore: Deprecate truncate_long_and_double for the dynamo frontend
`truncate_long_and_double` has been deprecated in favor of
`truncate_double` as int64 is natively supported
Signed-off-by: Naren Dasan <[email protected]>
Signed-off-by: Naren Dasan <[email protected]>
"""Compile a TorchScript module for NVIDIA GPUs using TensorRT
78
+
"""Compile an ExportedProgram module for NVIDIA GPUs using TensorRT
78
79
79
80
Takes a existing TorchScript module and a set of settings to configure the compiler
80
81
and will convert methods to JIT Graphs which call equivalent TensorRT engines
@@ -115,7 +116,7 @@ def compile(
115
116
dla_sram_size (int): Fast software managed RAM used by DLA to communicate within a layer.
116
117
dla_local_dram_size (int): Host RAM used by DLA to share intermediate tensor data across operations
117
118
dla_global_dram_size (int): Host RAM used by DLA to store weights and metadata for execution
118
-
truncate_long_and_double (bool): Truncate weights provided in int64 or double (float64) to int32 and float32
119
+
truncate_double (bool): Truncate weights provided in double (float64) to float32
119
120
calibrator (Union(torch_tensorrt._C.IInt8Calibrator, tensorrt.IInt8Calibrator)): Calibrator object which will provide data to the PTQ system for INT8 Calibration
120
121
require_full_compilation (bool): Require modules to be compiled end to end or return an error as opposed to returning a hybrid graph where operations that cannot be run in TensorRT are run in PyTorch
121
122
min_block_size (int): The minimum number of contiguous TensorRT convertable operations in order to run a set of operations in TensorRT
@@ -138,6 +139,19 @@ def compile(
138
139
ifdebug:
139
140
set_log_level(logger.parent, logging.DEBUG)
140
141
142
+
if"truncate_long_and_double"inkwargs.keys():
143
+
iftruncate_doubleisnot_defaults.TRUNCATE_DOUBLE:
144
+
raiseValueError(
145
+
'Provided configuration for "truncate_double" and deprecated API "truncate_long_and_double", please only use "truncate_double"'
'Compiler option "truncate_long_and_double" is deprecated in favor of "truncate_double" as int64 is now natively supported, this option will be removed in the next version',
'Compiler option "truncate_long_and_double" is deprecated in favor of "truncate_double" as int64 is now natively supported, this option will be removed in the next version',
0 commit comments