MCPcopy Index your code
hub / github.com/NVIDIA/TensorRT-LLM / set_plugin_info

Function set_plugin_info

tensorrt_llm/network.py:87–92  ·  view source on GitHub ↗
(trt_network: trt.INetworkDefinition, layer_name: str,
                    plugin_info: PluginInfo)

Source from the content-addressed store, hash-verified

85
86
87def set_plugin_info(trt_network: trt.INetworkDefinition, layer_name: str,
88 plugin_info: PluginInfo):
89 if not has_extra_attr(trt_network, "plugin_infos"):
90 set_extra_attr(trt_network, "plugin_infos", {})
91 plugin_infos = get_extra_attr(trt_network, "plugin_infos")
92 plugin_infos[layer_name] = plugin_info
93
94
95def delete_plugin_info(trt_network: trt.INetworkDefinition, layer_name: str):

Callers 2

_set_layer_nameMethod · 0.85
_add_plugin_infoFunction · 0.85

Calls 3

has_extra_attrFunction · 0.85
set_extra_attrFunction · 0.85
get_extra_attrFunction · 0.85

Tested by

no test coverage detected