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

Function get_plugin_info

tensorrt_llm/network.py:77–84  ·  view source on GitHub ↗
(trt_network: trt.INetworkDefinition,
                    layer_name: str)

Source from the content-addressed store, hash-verified

75
76
77def get_plugin_info(trt_network: trt.INetworkDefinition,
78 layer_name: str) -> PluginInfo:
79 if not has_extra_attr(trt_network, "plugin_infos"):
80 return None
81 plugin_infos = get_extra_attr(trt_network, "plugin_infos")
82 if layer_name not in plugin_infos:
83 return None
84 return plugin_infos[layer_name]
85
86
87def set_plugin_info(trt_network: trt.INetworkDefinition, layer_name: str,

Callers 1

_set_layer_nameMethod · 0.85

Calls 2

has_extra_attrFunction · 0.85
get_extra_attrFunction · 0.85

Tested by

no test coverage detected