Skip to content

Commit

Permalink
Renamed convert_exported_program_to_serialized_trt_engine (#3066)
Browse files Browse the repository at this point in the history
  • Loading branch information
cehongwang authored Aug 6, 2024
1 parent 2206a6b commit 18ab1e6
Showing 1 changed file with 6 additions and 2 deletions.
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
)

0 comments on commit 18ab1e6

Please sign in to comment.