Skip to content

Commit

Permalink
Merge 06d9faf into ba16a2a
Browse files Browse the repository at this point in the history
  • Loading branch information
james-oldfield committed Jun 7, 2018
2 parents ba16a2a + 06d9faf commit fad033b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t3f/regularizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def l2(tt):
my_scale = tf.convert_to_tensor(scale,
dtype=tt.dtype.base_dtype,
name='scale')
return tf.mul(my_scale, ops.frobenius_norm_squared(tt), name=name)
return tf.multiply(my_scale, ops.frobenius_norm_squared(tt), name=name)

return l2

Expand Down Expand Up @@ -74,6 +74,6 @@ def regularizer(tt):
penalty = 0.0
for i in range(tt.ndims()):
penalty += core_regularizer(tt.tt_cores[i])
return tf.mul(my_scale, penalty, name=name)
return tf.multiply(my_scale, penalty, name=name)

return regularizer

0 comments on commit fad033b

Please sign in to comment.