finnstrom3693
commited on
Commit
•
121d5a6
1
Parent(s):
78ae00b
Update modeling5.py
Browse files- modeling5.py +1 -1
modeling5.py
CHANGED
@@ -115,7 +115,7 @@ class MiniSunModel(tf.keras.Model):
|
|
115 |
attention_mask = inputs['attention_mask']
|
116 |
|
117 |
with tf.GradientTape() as tape:
|
118 |
-
logits = self(inputs, training=True)
|
119 |
loss = self.compute_loss(labels, logits)
|
120 |
|
121 |
gradients = tape.gradient(loss, self.trainable_variables)
|
|
|
115 |
attention_mask = inputs['attention_mask']
|
116 |
|
117 |
with tf.GradientTape() as tape:
|
118 |
+
logits, _ = self(inputs, training=True)
|
119 |
loss = self.compute_loss(labels, logits)
|
120 |
|
121 |
gradients = tape.gradient(loss, self.trainable_variables)
|