MCPcopy
hub / github.com/NVIDIA/TensorRT-LLM / from_trt_desc

Method from_trt_desc

tensorrt_llm/_utils.py:1050–1051  ·  view source on GitHub ↗
(desc: trt.PluginTensorDesc, pointer: int)

Source from the content-addressed store, hash-verified

1048
1049 @staticmethod
1050 def from_trt_desc(desc: trt.PluginTensorDesc, pointer: int):
1051 return TensorWrapper(pointer, trt_dtype_to_torch(desc.type), desc.dims)
1052
1053
1054def convert_to_torch_tensor(

Callers 1

enqueueMethod · 0.80

Calls 2

TensorWrapperClass · 0.85
trt_dtype_to_torchFunction · 0.70

Tested by

no test coverage detected