qkeras
qkeras copied to clipboard
Use `delta()` instead of `max() * 2^-bits` when `delta()` is defined
I'm working on floating point quantizer and I think this line doesn't work in my case:
delta = self.quantizer.max() * 2**-self.quantizer.bits
With the modification proposed one can define delta()
in the quantizer class and use it instead of making the computation in the initializer.
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.