Skip to content

Commit

Permalink
Multiply by the scale, not divide
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaMantani authored and comane committed Dec 20, 2023
1 parent b47961b commit d91667c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion n3fit/src/n3fit/layers/CombineCfac.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def __init__(
self.scales = np.array(scales, dtype=np.float32)
if len(initial_values) > 0:
initial_values = tf.concat(initial_values, 0)
initial_values = tf.math.divide(initial_values, self.scales)
initial_values = tf.math.multiply(initial_values, self.scales)

self.w = tf.Variable(
initial_value=initial_values,
Expand Down

0 comments on commit d91667c

Please sign in to comment.