MCPcopy Create free account
hub / github.com/MatrixTeam-AI/RAIN / __repr__

Method __repr__

src/modeling/engine_model.py:196–204  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

194 return True
195
196 def __repr__(self):
197 r = "TensorRTEngineModel(\n\tInput=[\n"
198 for name in self.input_names:
199 r += f"\t\t{name}: \t{trt.nptype(self.input_dtypes[name]).__name__}{self.input_shapes[name]},\n"
200 r += "\t],Output=[\n"
201 for name in self.output_names:
202 r += f"\t\t{name}: \t{trt.nptype(self.output_dtypes[name]).__name__}{self.output_shapes[name]},\n"
203 r+="\t]\n)"
204 return r
205
206 def link(self, other, var_map, skip_check=SKIP_ENGINE_MODEL_CHECK):
207 assert self.device_int == other.device_int

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected