Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit fb5acce

Browse files
aidangomezRyan Sepassi
authored andcommitted
ResNet saving outputs to wrong variable
PiperOrigin-RevId: 193558614
1 parent cd6b6c5 commit fb5acce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensor2tensor/models/resnet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def body(self, features):
421421
is_training=hp.mode == tf.estimator.ModeKeys.TRAIN)
422422

423423
if hp.use_nchw:
424-
inputs = tf.transpose(out, [0, 2, 3, 1])
424+
out = tf.transpose(out, [0, 2, 3, 1])
425425

426426
return out
427427

0 commit comments

Comments
 (0)