Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3a6fff3

Browse files
domschlkarmel
authored andcommitted
fix: user input for data_format is ignored (tensorflow#3871)
1 parent 2041d5c commit 3a6fff3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

official/mnist/mnist_eager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def main(argv):
107107
(device, data_format) = ('/cpu:0', 'channels_last')
108108
# If data_format is defined in FLAGS, overwrite automatically set value.
109109
if flags.data_format is not None:
110-
data_format = data_format
110+
data_format = flags.data_format
111111
print('Using device %s, and data format %s.' % (device, data_format))
112112

113113
# Load the datasets

0 commit comments

Comments
 (0)