aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/keras
diff options
context:
space:
mode:
authorGravatar Francois Chollet <fchollet@google.com>2017-04-05 13:35:02 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-04-05 14:47:21 -0700
commitc76241258a566b82ac3cdd57fdfaab353d89b8f1 (patch)
treec9c41e0bfac021e7c14ffa47d574ba8104284f29 /tensorflow/contrib/keras
parent1fbabf4b3842558b1f0188c11f9f9e6b98c4b8a5 (diff)
Remove Keras config file saving.
Change: 152306552
Diffstat (limited to 'tensorflow/contrib/keras')
-rw-r--r--tensorflow/contrib/keras/python/keras/backend.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/tensorflow/contrib/keras/python/keras/backend.py b/tensorflow/contrib/keras/python/keras/backend.py
index d149138796..1882ae35f5 100644
--- a/tensorflow/contrib/keras/python/keras/backend.py
+++ b/tensorflow/contrib/keras/python/keras/backend.py
@@ -3625,23 +3625,3 @@ if os.path.exists(_config_path):
set_floatx(_floatx)
set_epsilon(_epsilon)
set_image_data_format(_image_data_format)
-
-# Save config file.
-if os.access(_keras_base_dir, os.W_OK):
- if not os.path.exists(_keras_dir):
- try:
- os.makedirs(_keras_dir)
- except OSError:
- # Except potential race conditions
- # in multi-threaded environments.
- pass
-
- if not os.path.exists(_config_path):
- _config = {
- 'floatx': floatx(),
- 'epsilon': epsilon(),
- 'backend': 'tensorflow',
- 'image_data_format': image_data_format()
- }
- with open(_config_path, 'w') as f:
- f.write(json.dumps(_config, indent=4))