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

Method get_outputs

tensorrt_llm/network.py:345–357  ·  view source on GitHub ↗

Get the outputs of the network. Returns: Iterable[Tensor]

(self)

Source from the content-addressed store, hash-verified

343 return self._inputs.values()
344
345 def get_outputs(self):
346 '''
347 Get the outputs of the network.
348
349 Returns:
350 Iterable[Tensor]
351 '''
352 from .functional import Tensor
353 for i in range(self._trt_network.num_outputs):
354 tensor = self._trt_network.get_output(i)
355 yield Tensor(trt_tensor=tensor,
356 network=self,
357 is_network_input=False)
358
359 def is_input(self, tensor) -> bool:
360 '''

Callers 7

to_dotMethod · 0.95
_get_network_hashMethod · 0.95
test_is_outputMethod · 0.45
rewriteMethod · 0.45
test_pattern_rewriterMethod · 0.45
buildMethod · 0.45

Calls 2

TensorClass · 0.70
get_outputMethod · 0.45

Tested by 4

test_is_outputMethod · 0.36
rewriteMethod · 0.36
test_pattern_rewriterMethod · 0.36