Skip to content

Commit

Permalink
mark beta as untrainable
Browse files Browse the repository at this point in the history
  • Loading branch information
calad0i committed Jan 5, 2024
1 parent 180f8b4 commit 40aa34d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HGQ/layers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, kq_conf=None, paq_conf=None, beta=0., **kwargs):
"kernel quantizer config"
self.paq_config = paq_conf or get_default_paq_conf()
"pre-activation quantizer config"
self.beta = tf.Variable(beta, dtype=tf.float32, name='beta')
self.beta = tf.Variable(beta, dtype=tf.float32, name='beta', trainable=False)
"BOPs-regularization strength"
self.record_minmax = False
self._has_last_layer = False
Expand Down

0 comments on commit 40aa34d

Please sign in to comment.