From: Zafar Takhirov Date: Wed, 15 Sep 2021 16:37:36 +0000 (-0700) Subject: [quant] Removing unnecessary import from torch/quantization/quantize.py (#64910) X-Git-Tag: accepted/tizen/8.0/unified/20231005.095509~198 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0f1bccb6928037ca1d1751d62b099016fab0e792;p=platform%2Fupstream%2Fpytorch.git [quant] Removing unnecessary import from torch/quantization/quantize.py (#64910) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/64910 This bled through from the original location. Removing it is not just refactoring, but also prevents potential recursive imports. ghstack-source-id: 138112663 Test Plan: `buck test mode/dev //caffe2/test:quantization` Reviewed By: vkuzo Differential Revision: D30882924 fbshipit-source-id: 8652a334a5186c635761ea5e50f978d1f1078c12 --- diff --git a/torch/quantization/quantize.py b/torch/quantization/quantize.py index 5b0f4ed..d9fcf1d 100644 --- a/torch/quantization/quantize.py +++ b/torch/quantization/quantize.py @@ -7,8 +7,6 @@ If you are adding a new entry/functionality, please, add it to the here. """ -import torch - from torch.ao.quantization.quantize import _convert from torch.ao.quantization.quantize import _observer_forward_hook from torch.ao.quantization.quantize import _propagate_qconfig_helper