MCPcopy Create free account
hub / github.com/pytorch/pytorch / add_tuple_construct

Method add_tuple_construct

torch/backends/_nnapi/serializer.py:945–951  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

943 )
944
945 def add_tuple_construct(self, node):
946 assert node.outputsSize() == 1
947 output = node.outputsAt(0)
948 values = []
949 for inp in node.inputs():
950 values.append(inp)
951 self.add_tensor_sequence(output, values)
952
953 def add_unsqueeze(self, node):
954 assert node.inputsSize() == 2

Callers 1

_NnapiSerializerClass · 0.95

Calls 3

add_tensor_sequenceMethod · 0.95
inputsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected