MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / __init__

Method __init__

demo/HuggingFace/BART/export.py:215–217  ·  view source on GitHub ↗
(self, model, network_metadata)

Source from the content-addressed store, hash-verified

213class BARTEncoderTRTEngine(TRTEngineFile):
214
215 def __init__(self, model, network_metadata):
216 super().__init__(model, BARTEncoderConverter, network_metadata)
217 self.max_trt_workspace = 2048
218
219 def get_network_definition(self, network_definition):
220 return add_extra_fp32(network_definition)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected