diff options
author | Allen Lavoie <allenl@google.com> | 2018-06-22 14:40:52 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-06-22 14:43:27 -0700 |
commit | 4031d064542093868a82a924379da2dc739adbbd (patch) | |
tree | cb041fd014a07048133f9219a6718d8a2c6677f8 /tensorflow/contrib/keras | |
parent | 4b697277f39fc52edee36c9f89c4c4283a0f2bb9 (diff) |
Remove hourglass imports for python/keras/engine/...
Previously there was python/keras/engine/__init__.py, which required every import of Layer (for example) to also import Network (since Python will not import a file in a directory without running its __init__.py file).
I'm working on adding automatic attribute tracking to Checkpointable (and Network) and so need to insert things between Layer and Network.
PiperOrigin-RevId: 201743850
Diffstat (limited to 'tensorflow/contrib/keras')
-rw-r--r-- | tensorflow/contrib/keras/api/keras/layers/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tensorflow/contrib/keras/api/keras/layers/__init__.py b/tensorflow/contrib/keras/api/keras/layers/__init__.py index 938c881fcb..3327a9f9a6 100644 --- a/tensorflow/contrib/keras/api/keras/layers/__init__.py +++ b/tensorflow/contrib/keras/api/keras/layers/__init__.py @@ -20,10 +20,10 @@ from __future__ import print_function # Generic layers. # pylint: disable=g-bad-import-order -from tensorflow.python.keras.engine import Input -from tensorflow.python.keras.engine import InputLayer -from tensorflow.python.keras.engine import InputSpec -from tensorflow.python.keras.engine import Layer +from tensorflow.python.keras.engine.base_layer import InputSpec +from tensorflow.python.keras.engine.base_layer import Layer +from tensorflow.python.keras.engine.input_layer import Input +from tensorflow.python.keras.engine.input_layer import InputLayer # Advanced activations. from tensorflow.python.keras.layers.advanced_activations import LeakyReLU |