4fb74225bcb836f79e82bd4aa6cbade19cce1400,hls4ml/converters/keras/qkeras.py,QKerasQuantizer,__init__,#QKerasQuantizer#Any#,10

Before Change


        // ! includes stochastic_binary
        elif "binary" in config["class_name"]:
            self.bits = 1
            self.hls_type = IntegerPrecisionType(width=1, signed=False)
        //elif config["class_name"] == "quantized_po2":
        //    self.bits = config["config"]["bits"]
        //    self.hls_type = Po2Type(width=self.bits, signed=True)
        else:

After Change


        // ! includes stochastic_binary
        elif "binary" in config["class_name"]:
            self.bits = 1
            self.hls_type = XnorPrecisionType()
        else:
            print("Unsupported quantizer: " + config["class_name"])
            self.bits = 16
            self.hls_type = FixedPrecisionType(width=16, integer=6, signed=True)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 2

Instances


Project Name: hls-fpga-machine-learning/hls4ml
Commit Name: 4fb74225bcb836f79e82bd4aa6cbade19cce1400
Time: 2020-10-26
Author: sioni.summers10@imperial.ac.uk
File Name: hls4ml/converters/keras/qkeras.py
Class Name: QKerasQuantizer
Method Name: __init__


Project Name: hls-fpga-machine-learning/hls4ml
Commit Name: c51b45a2d318e4a27a403af5701dc36b3f119662
Time: 2020-10-23
Author: sioni.summers10@imperial.ac.uk
File Name: hls4ml/model/optimizer/passes/bn_quant.py
Class Name: QuantizeDenseOutput
Method Name: transform


Project Name: hls-fpga-machine-learning/hls4ml
Commit Name: 4fb74225bcb836f79e82bd4aa6cbade19cce1400
Time: 2020-10-26
Author: sioni.summers10@imperial.ac.uk
File Name: hls4ml/converters/keras/qkeras.py
Class Name: QKerasBinaryQuantizer
Method Name: __init__


Project Name: hls-fpga-machine-learning/hls4ml
Commit Name: c51b45a2d318e4a27a403af5701dc36b3f119662
Time: 2020-10-23
Author: sioni.summers10@imperial.ac.uk
File Name: hls4ml/model/optimizer/passes/bn_quant.py
Class Name: BatchNormalizationQuantizedTanh
Method Name: initialize


Project Name: hls-fpga-machine-learning/hls4ml
Commit Name: 4fb74225bcb836f79e82bd4aa6cbade19cce1400
Time: 2020-10-26
Author: sioni.summers10@imperial.ac.uk
File Name: hls4ml/converters/keras/qkeras.py
Class Name:
Method Name: get_type