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

Function has_float_output

backends/arm/quantizer/arm_quantizer_utils.py:99–103  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

97
98
99def has_float_output(node: Node) -> bool:
100 meta_val = node.meta.get("val", None)
101 if isinstance(meta_val, torch.Tensor):
102 return meta_val.dtype.is_floating_point
103 return False
104
105
106def _mark_node_as_quantized(

Calls 1

getMethod · 0.45

Tested by

no test coverage detected