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
format (torch.memory_format or torch_tensorrt.TensorFormat): The expected format of the input tensor (default: torch_tensorrt.TensorFormat.NCHW)
69
70
tensor_domain (Tuple(float, float), optional): The domain of allowed values for the tensor, as interval notation: [tensor_domain[0], tensor_domain[1]).
70
71
Note: Entering "None" (or not specifying) will set the bound to [0, 2)
71
-
72
+
torch_tensor (torch.Tensor): Holds a corresponding torch tensor with this Input.
73
+
name (str, optional): Name of this input in the input nn.Module's forward function. Used to specify dynamic shapes for the corresponding input in dynamo tracer.
"""Exports a ``torch.export.ExportedProgram`` from a ``torch.nn.Module`` or ``torch.fx.GraphModule`` specifically targeting being compiled with Torch-TensorRT
@@ -65,9 +40,9 @@ def trace(
65
40
torch.randn((1, 3, 224, 244)) # Use an example tensor and let torch_tensorrt infer settings
66
41
]
67
42
Keyword Arguments:
68
-
device (Union(torch_tensorrt.Device, torch.device, dict)): Target device for TensorRT engines to run on ::
43
+
device (Union(torch.device, dict)): Target device for TensorRT engines to run on ::
enable_experimental_decompositions (bool): Use the full set of operator decompositions. These decompositions may not be tested but serve to make the grap easier to covert to TensorRT, potentially increasing the amount of graphs run in TensorRT.
@@ -77,50 +52,36 @@ def trace(
77
52
"""
78
53
79
54
# Set log level at the top of compilation (torch_tensorrt.dynamo)
0 commit comments