Skip to content

Commit

Permalink
[Test] enable scaled-int dtypes for pruning test for inf cost
Browse files Browse the repository at this point in the history
  • Loading branch information
maltanar committed Jan 30, 2025
1 parent ce063a9 commit 5b050a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/transformation/test_pruning.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def test_pruning_mnv1():
model = download_model("MobileNetv1-w4a4", return_modelwrapper=True)
# mark input as scaled 8-bit to get correct inference cost
model.set_tensor_datatype(model.graph.input[0].name, DataType["SCALEDINT<8>"])
model = model.transform(InferDataTypes())
model = model.transform(InferDataTypes(allow_scaledint_dtypes=True))
# do cleanup including folding quantized weights
model = cleanup_model(model, False)
inp, golden = get_golden_in_and_output("MobileNetv1-w4a4")
Expand Down

0 comments on commit 5b050a7

Please sign in to comment.