qkeras.qtools.quantized_operators.subtractor_factory

“create subtractor quantizer.

Classes

ISubtractor()

Create a subtractor instance.

class qkeras.qtools.quantized_operators.subtractor_factory.ISubtractor[source]

Bases: IAdder

Create 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:
Returns:

An ISubtractor instance