Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
Hao Wu committed Jan 28, 2021
1 parent fd4938e commit 0e35b9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torch/onnx/symbolic_opset13.py
Expand Up @@ -118,9 +118,9 @@ def fake_quantize_per_channel_affine(g, inputs, scale, zero_point, axis, quant_m

# ONNX defines zero_point to be int8 or uint8
if quant_min == 0:
zero_point = g.op("Cast", zero_point, to_i=cast_pytorch_to_onnx['Byte'])
zero_point = g.op("Cast", zero_point, to_i=sym_help.cast_pytorch_to_onnx['Byte'])
else:
zero_point = g.op("Cast", zero_point, to_i=cast_pytorch_to_onnx['Char'])
zero_point = g.op("Cast", zero_point, to_i=sym_help.cast_pytorch_to_onnx['Char'])
return g.op(
"DequantizeLinear",
g.op("QuantizeLinear", inputs, scale, zero_point, axis_i=axis),
Expand Down

0 comments on commit 0e35b9a

Please sign in to comment.