Skip to content

Commit

Permalink
fix: name in add_weight()
Browse files Browse the repository at this point in the history
  • Loading branch information
awsaf49 committed Dec 24, 2023
1 parent 1473a56 commit e2176f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gcvit/layers/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ def build(self, input_shape):
)
if self.layer_scale is not None:
self.gamma1 = self.add_weight(
"gamma1",
name="gamma1",
shape=[C],
initializer=tf.keras.initializers.Constant(self.layer_scale),
trainable=True,
dtype=self.dtype,
)
self.gamma2 = self.add_weight(
"gamma2",
name="gamma2",
shape=[C],
initializer=tf.keras.initializers.Constant(self.layer_scale),
trainable=True,
Expand Down

0 comments on commit e2176f1

Please sign in to comment.