Explorar o código

Merge pull request #1044 from tensorflow/easy-slim-fix

Use .size() instead of .Size() in download_and_convert_mnist.py
Neal Wu %!s(int64=8) %!d(string=hai) anos
pai
achega
f21c4278fd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      slim/datasets/download_and_convert_mnist.py

+ 1 - 1
slim/datasets/download_and_convert_mnist.py

@@ -165,7 +165,7 @@ def _download_dataset(dataset_dir):
                                                _progress)
       print()
       with tf.gfile.GFile(filepath) as f:
-        size = f.Size()
+        size = f.size()
       print('Successfully downloaded', filename, size, 'bytes.')