qkeras.qtools.quantized_operators.subtractor_factory
“create subtractor quantizer.
Classes
Create a subtractor instance. |
- class qkeras.qtools.quantized_operators.subtractor_factory.ISubtractor[source]
Bases:
IAdderCreate a subtractor instance.
The methods in subtractor is mostly inherited from adder with a few exceptions.
- make_quantizer(quantizer_1, quantizer_2)[source]
make an ISubtractor instance.
if quantizer1 and quantizer2 are both non-signed, result should change to signed; else since a sign bit is already present, no need to add extra sign bit
- Parameters:
quantizer_1 (
IQuantizer) – first operandquantizer_2 (
IQuantizer) – second operand
- Returns:
An ISubtractor instance