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
Copy file name to clipboardExpand all lines: py/torch_tensorrt/dynamo/conversion/converter_utils.py
+43
Original file line number
Diff line number
Diff line change
@@ -344,6 +344,10 @@ def create_constant(
344
344
withunset_fake_temporarily():
345
345
346
346
torch_value=to_torch(value, dtype)
347
+
iftorch_valueisNone:
348
+
raiseValueError(
349
+
f"Cannot convert tensor '{name}' to a TensorRT constant because its value is None."
350
+
)
347
351
iftorch_value.dtype==torch.float64:
348
352
raiseValueError(
349
353
"TensorRT does not support float64 (double) precision. To resolve this, please set truncate_double=True in your compilation settings and re-run the model."
0 commit comments