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

Function decode

tools/Polygraphy/polygraphy/backend/trt/algorithm_selector.py:114–121  ·  view source on GitHub ↗
(dct)

Source from the content-addressed store, hash-verified

112
113@Decoder.register(TensorInfo)
114def decode(dct):
115 return TensorInfo(
116 util.getattr_nested(trt, dct["tensor_format"]),
117 util.getattr_nested(trt, dct["dtype"]),
118 dct["strides"],
119 dct["vectorized_dim"],
120 dct["components_per_element"],
121 )
122
123
124@mod.export()

Callers

nothing calls this directly

Calls 3

AlgorithmClass · 0.85
TacticReplayDataClass · 0.85
TensorInfoClass · 0.70

Tested by

no test coverage detected