We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d469205 commit 192ef0cCopy full SHA for 192ef0c
tests/unitary/with_extras/model/test_model_framework_tensorflow_model.py
@@ -49,10 +49,12 @@ class MyTFModel:
49
"Timeout when waiting for MNIST data to finished downloading in another process. "
50
"Please check internet connection."
51
)
52
+ os.makedirs(os.path.dirname(lock_file), exist_ok=True)
53
Path(lock_file).touch()
54
(x_train, y_train), (x_test, y_test) = mnist.load_data()
55
finally:
- os.unlink(lock_file)
56
+ if os.path.exists(lock_file):
57
+ os.unlink(lock_file)
58
59
x_train, x_test = x_train / 255.0, x_test / 255.0
60
0 commit comments