We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26d2788 commit d42ebe4Copy full SHA for d42ebe4
src/lightning/pytorch/core/module.py
@@ -1500,8 +1500,8 @@ def to_tensorrt(
1500
output_format: Literal["exported_program", "torchscript"] = "exported_program",
1501
retrace: bool = False,
1502
default_device: str | torch.device = "cuda",
1503
- **compile_kwargs,
1504
- ) -> ScriptModule | torch.fx.GraphModule:
+ **compile_kwargs: Any,
+ ) -> Union[ScriptModule, torch.fx.GraphModule]:
1505
"""Export the model to ScriptModule or GraphModule using TensorRT compile backend.
1506
1507
Args:
0 commit comments