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

Method check_engine

tools/Polygraphy/tests/tools/test_convert.py:53–56  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

51
52class TestConvertToTrt:
53 def check_engine(self, path):
54 loader = EngineFromBytes(BytesFromPath(path))
55 with loader() as engine:
56 assert isinstance(engine, trt.ICudaEngine)
57
58 def test_onnx_to_trt(self, poly_convert):
59 with util.NamedTemporaryFile(suffix=".engine") as outmodel:

Calls 2

EngineFromBytesClass · 0.90
BytesFromPathClass · 0.90

Tested by

no test coverage detected