Skip to content

Commit

Permalink
Fix onnx quantizer activation and weight type attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
yufenglee authored Oct 5, 2023
1 parent f480a36 commit c3fd281
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions onnxruntime/python/tools/quantization/onnx_quantizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ def __init__(
False if "ActivationSymmetric" not in self.extra_options else self.extra_options["ActivationSymmetric"]
)

self.activation_qType = activation_qType.tensor_type
self.weight_qType = weight_qType.tensor_type
self.activation_qType = getattr(activation_qType, "tensor_type", activation_qType)
self.weight_qType = getattr(weight_qType, "tensor_type", weight_qType)
"""
Dictionary specifying the min and max values for tensors. It has following format:
{
Expand Down

0 comments on commit c3fd281

Please sign in to comment.