MCPcopy Create free account
hub / github.com/pytorch/executorch / get_tensor_value

Function get_tensor_value

backends/xnnpack/operators/node_visitor.py:73–80  ·  view source on GitHub ↗
(xvalue: XValue)

Source from the content-addressed store, hash-verified

71
72
73def get_tensor_value(xvalue: XValue) -> XNNTensorValue:
74 val_union = xvalue.xvalue_union
75 if isinstance(val_union, XNNTensorValue):
76 return val_union
77 else:
78 # it is XNNQuantizedTensorValue
79 q_tensor = val_union
80 return q_tensor.tensor_value
81
82
83class NodeVisitor:

Callers 6

define_nodeMethod · 0.90
define_nodeMethod · 0.90
define_nodeMethod · 0.90
define_nodeMethod · 0.90
define_nodeMethod · 0.90
define_nodeMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected