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

Method call_impl

tools/Polygraphy/polygraphy/backend/trt/loader.py:726–738  ·  view source on GitHub ↗

Returns: trt.ICudaEngine: The engine that was saved.

(self)

Source from the content-addressed store, hash-verified

724
725 @util.check_called_by("__call__")
726 def call_impl(self):
727 """
728 Returns:
729 trt.ICudaEngine: The engine that was saved.
730 """
731 engine, owns_engine = util.invoke_if_callable(self._engine)
732
733 with contextlib.ExitStack() as stack:
734 if owns_engine:
735 stack.enter_context(util.FreeOnException([engine]))
736
737 util.save_file(contents=bytes_from_engine(engine), dest=self.path, description="engine")
738 return engine
739
740
741@mod.export(funcify=True)

Callers 2

call_implMethod · 0.45
call_implMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected