qkeras icon indicating copy to clipboard operation
qkeras copied to clipboard

Use `delta()` instead of `max() * 2^-bits` when `delta()` is defined

Open nghielme opened this issue 1 year ago • 1 comments

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.

nghielme avatar Oct 25 '23 10:10 nghielme

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.

google-cla[bot] avatar Oct 25 '23 10:10 google-cla[bot]