❓ Question
I am converting my model to a serialized engine using (model is a torch.nn.Module instance)
program = torch_tensorrt.dynamo.trace(model, arg_inputs=example_inputs)
engine_bytes: bytes = torch_tensorrt.dynamo.convert_exported_program_to_serialized_trt_engine(
program,
arg_inputs=example_inputs,
require_full_compilation=True,
immutable_weights=True,
tiling_optimization_level="full",
use_python_runtime=False,
enabled_precisions={torch.float16, torch.bfloat16, torch.float32},
use_explicit_typing=False,
optimization_level=5,
version_compatible=True,
hardware_compatible=True,
)
The input names of the serialized engine are named after the inputs of the nn.Module, but the output names are just named output0, output1 ...
How can I set these names to something more useful? I need certain names for the model to work in our production environment.
❓ Question
I am converting my model to a serialized engine using (model is a
torch.nn.Moduleinstance)The input names of the serialized engine are named after the inputs of the nn.Module, but the output names are just named output0, output1 ...
How can I set these names to something more useful? I need certain names for the model to work in our production environment.