Skip to content

Commit 7cf23d1

Browse files
rchen152copybara-github
authored andcommitted
Internal Code Change
PiperOrigin-RevId: 591365630
1 parent 1b0203e commit 7cf23d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tensorflow_graphics/projects/points_to_3Dobjects/models/singleobjectmodel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ def train_sample(self, sample, optimizer, global_batch_size):
106106
self.decode_batch(sample, inputs)
107107

108108
with tf.GradientTape() as t:
109-
predictions = self.network(inputs['image']) # pytype: disable=key-error
109+
predictions = self.network(inputs['image'])
110110
outputs = self.decode_predictions(predictions, inputs, {})
111111
outputs = self.compute_loss(inputs, outputs, global_batch_size)
112-
network_gradients = t.gradient(outputs['loss/total'], # pytype: disable=key-error
112+
network_gradients = t.gradient(outputs['loss/total'],
113113
self.network.trainable_weights)
114114
optimizer.apply_gradients(zip(network_gradients,
115115
self.network.trainable_weights))

0 commit comments

Comments
 (0)