Skip to content

Commit d42ebe4

Browse files
committed
fix mypy error.
1 parent 26d2788 commit d42ebe4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lightning/pytorch/core/module.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1500,8 +1500,8 @@ def to_tensorrt(
15001500
output_format: Literal["exported_program", "torchscript"] = "exported_program",
15011501
retrace: bool = False,
15021502
default_device: str | torch.device = "cuda",
1503-
**compile_kwargs,
1504-
) -> ScriptModule | torch.fx.GraphModule:
1503+
**compile_kwargs: Any,
1504+
) -> Union[ScriptModule, torch.fx.GraphModule]:
15051505
"""Export the model to ScriptModule or GraphModule using TensorRT compile backend.
15061506
15071507
Args:

0 commit comments

Comments
 (0)