We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to quantize mobilenet model in the same how you have implemented resnet (https://github.com/eladhoffer/convNet.pytorch). To accomplish this I added the following lines in models/mobilenet .py
from .modules.quantize import QConv2d, QLinear, RangeBN torch.nn.Linear = QLinear torch.nn.Conv2d = QConv2d torch.nn.BatchNorm2d = RangeBN
But, on training the loss is going to nan. It will be of great help if you could provide some inputs on this.
Thanks in advance
regards Shreyas
The text was updated successfully, but these errors were encountered:
Quantizing on ResNet-18 also goes NaN
Sorry, something went wrong.
No branches or pull requests
I am trying to quantize mobilenet model in the same how you have implemented resnet (https://github.com/eladhoffer/convNet.pytorch). To accomplish this I added the following lines in models/mobilenet .py
from .modules.quantize import QConv2d, QLinear, RangeBN
torch.nn.Linear = QLinear
torch.nn.Conv2d = QConv2d
torch.nn.BatchNorm2d = RangeBN
But, on training the loss is going to nan. It will be of great help if you could provide some inputs on this.
Thanks in advance
regards
Shreyas
The text was updated successfully, but these errors were encountered: