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

Method get_parent

tensorrt_llm/functional.py:548–550  ·  view source on GitHub ↗

Get the layer that produces this tensor.

(self)

Source from the content-addressed store, hash-verified

546 # graph writer related functions
547
548 def get_parent(self):
549 ''' Get the layer that produces this tensor. '''
550 return self.network.get_tensor_parent(self)
551
552 def get_users(self):
553 ''' Get the layers that use this tensor as an input. '''

Callers 3

const_foldableMethod · 0.80
match_and_rewriteMethod · 0.80

Calls 1

get_tensor_parentMethod · 0.80

Tested by 1