Skip to content

Commit

Permalink
make torch precommit green
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsu52 committed Jul 29, 2023
1 parent 2d1403e commit 4e00871
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/torch/ptq/test_calculation_quantizer_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,9 @@ def test_quantizer_parameters_export(tmp_path: Path):
statistic_points = min_max_algo.get_statistic_points(nncf_network, nncf_network.nncf.get_graph())
statistics_aggregator.register_statistic_points(statistic_points)
statistics_aggregator.collect_statistics(model, nncf_network.nncf.get_graph())
torch_quantized_model = min_max_algo.apply(model, statistics_aggregator.statistic_points)
torch_quantized_model = min_max_algo.apply(
nncf_network, nncf_network.nncf.get_graph(), statistics_aggregator.statistic_points
)

path = str(tmp_path / "torch_ptq_model.onnx")
torch.onnx.export(
Expand Down
2 changes: 1 addition & 1 deletion tests/torch/ptq/test_ptq_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def test_params(self):
},
"test_range_estimator_per_channel": {
"model": depthwise_model,
"nncf_graph": depthwise_model.nncf.graph,
"nncf_graph": depthwise_model.nncf.get_graph(),
"stat_points_num": 2,
},
"test_quantize_outputs": {
Expand Down

0 comments on commit 4e00871

Please sign in to comment.