MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT-LLM / _get_graph

Method _get_graph

tensorrt_llm/network.py:816–823  ·  view source on GitHub ↗

Get the graph of the network. Returns: Network._GraphState

(self)

Source from the content-addressed store, hash-verified

814 return
815
816 def _get_graph(self) -> "Network._GraphState":
817 '''
818 Get the graph of the network.
819
820 Returns:
821 Network._GraphState
822 '''
823 return self._get_graph_impl(self._get_network_hash())
824
825 #TODO: using one LRU cache here can cause the Network object to be leaked, need a way to speed this function w/o using global lru cache.
826 def _get_graph_impl(self, network_hash: bytes) -> "Network._GraphState":

Callers 4

get_layer_by_nameMethod · 0.95
get_tensor_usersMethod · 0.95
get_tensor_parentMethod · 0.95
to_dotMethod · 0.95

Calls 2

_get_graph_implMethod · 0.95
_get_network_hashMethod · 0.95

Tested by

no test coverage detected