MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / load_engine

Function load_engine

diffusers/examples/community/run_tensorrt_controlnet.py:40–44  ·  view source on GitHub ↗
(trt_runtime, engine_path)

Source from the content-addressed store, hash-verified

38
39
40def load_engine(trt_runtime, engine_path):
41 with open(engine_path, "rb") as f:
42 engine_data = f.read()
43 engine = trt_runtime.deserialize_cuda_engine(engine_data)
44 return engine
45
46
47class TensorRTModel:

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected