Set runtime input shape for dynamic dimensions.
(self, name, shape)
| 129 | raise KeyError(f"Input tensor '{tensor_name}' not found in engine.") |
| 130 | |
| 131 | def set_runtime_tensor_shape(self, name, shape): |
| 132 | """Set runtime input shape for dynamic dimensions.""" |
| 133 | self.execution_context.set_input_shape(name, shape) |
| 134 | |
| 135 | def forward(self, *args, **kwargs): |
| 136 | """Execute TRT inference with the given input tensors. |
no outgoing calls
no test coverage detected