We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 37e529b + 34bc129 commit 4189e46Copy full SHA for 4189e46
backends/qualcomm/quantizer/utils.py
@@ -46,7 +46,11 @@ def _is_input_float_tensor(node: Node):
46
"""Check if the input is not a float tensor, so that we can skip quantization for the node
47
since observers only works with float Tensors
48
"""
49
- if not isinstance(node, Node) or "val" not in node.meta or not isinstance(node.meta["val"], FakeTensor):
+ if (
50
+ not isinstance(node, Node)
51
+ or "val" not in node.meta
52
+ or not isinstance(node.meta["val"], FakeTensor)
53
+ ):
54
return False
55
return node.meta["val"].dtype == torch.float32
56
0 commit comments