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

Method get_tensor_users

tensorrt_llm/network.py:407–413  ·  view source on GitHub ↗

Get the layers those consumes this tensor.

(self, tensor)

Source from the content-addressed store, hash-verified

405 return state.name_to_layer.get(name, None)
406
407 def get_tensor_users(self, tensor) -> Iterable["Layer"]:
408 '''
409 Get the layers those consumes this tensor.
410 '''
411 state = self._get_graph()
412 for layer in state.tensor_to_consumers[tensor]:
413 yield layer
414
415 def get_tensor_parent(self, tensor) -> Optional["Layer"]:
416 '''

Callers 1

get_usersMethod · 0.80

Calls 1

_get_graphMethod · 0.95

Tested by

no test coverage detected