Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renamed convert_exported_program_to_serialized_trt_engine #3066

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions tests/py/dynamo/models/test_export_kwargs_serde.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
import torch_tensorrt as torchtrt
import torchvision.models as models
from torch import nn
from torch_tensorrt.dynamo._compiler import convert_module_to_trt_engine
from torch_tensorrt.dynamo._compiler import (
convert_exported_program_to_serialized_trt_engine,
)
from torch_tensorrt.dynamo.utils import (
COSINE_THRESHOLD,
cosine_similarity,
Expand Down Expand Up @@ -507,4 +509,6 @@ def forward(self, x, b=5, c=None, d=None):
}

exp_program = torch.export.export(model, args=tuple(args), kwargs=kwargs)
engine = convert_module_to_trt_engine(exp_program, **compile_spec)
engine = convert_exported_program_to_serialized_trt_engine(
exp_program, **compile_spec
)
Loading