Skip to content

Commit

Permalink
[InferDT] disable scaled-int dtype inference by default
Browse files Browse the repository at this point in the history
  • Loading branch information
maltanar committed Jan 30, 2025
1 parent 2b56701 commit c34bd9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/qonnx/transformation/infer_datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class InferDataTypes(Transformation):
"""Infer QONNX DataType info for all intermediate/output tensors based on
inputs and node type."""

def __init__(self, allow_scaledint_dtypes=True):
def __init__(self, allow_scaledint_dtypes=False):
super().__init__()
self.allow_scaledint_dtypes = allow_scaledint_dtypes

Expand Down
2 changes: 1 addition & 1 deletion src/qonnx/util/inference_cost.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def inference_cost(
model = model.transform(FoldConstants(exclude_op_types=[]))
model = model.transform(RemoveUnusedTensors())
model = model.transform(RemoveStaticGraphInputs())
model = model.transform(InferDataTypes())
model = model.transform(InferDataTypes(allow_scaledint_dtypes=True))
model = model.transform(GiveUniqueNodeNames())
model = model.transform(GiveReadableTensorNames())
if output_onnx is not None:
Expand Down

0 comments on commit c34bd9a

Please sign in to comment.