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

Function _is_float_activation_tensor

backends/mediatek/quantizer/annotator.py:73–80  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

71
72
73def _is_float_activation_tensor(node: Node):
74 if not isinstance(node, Node):
75 return False
76 if "val" not in node.meta:
77 return False
78 if not isinstance(node.meta["val"], FakeTensor):
79 return False
80 return node.meta["val"].dtype == torch.float32
81
82
83def _annotate_fused_activation_pattern(

Callers 1

annotate_placeholderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected