Skip to content

Commit

Permalink
Add missing BatchNormalization include for ApplyAlpha layer
Browse files Browse the repository at this point in the history
  • Loading branch information
thesps committed Jun 3, 2020
1 parent d7ff7b1 commit d7e53de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hls4ml/model/optimizer/passes/qkeras.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def add_weights(self, scale, bias):
register_layer('ApplyAlpha', ApplyAlpha)
# TODO ideally: for backend in backends
temps = templates.get_backend('Vivado')
temps.register_templates('ApplyAlpha', temps.get_function_template('BatchNormalization'), temps.get_config_template('BatchNormalization'))
temps.register_templates('ApplyAlpha', temps.get_function_template('BatchNormalization'), temps.get_config_template('BatchNormalization'), temps.get_include_list('BatchNormalization'))

class QKerasFactorizeAlpha(OptimizerPass):
'''OptimizerPass for extracting alpha "scale" from QKeras quantized layer.
Expand Down

0 comments on commit d7e53de

Please sign in to comment.