--
You received this message because you are subscribed to the Google Groups "Keras-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keras-users...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/keras-users/ab02a7da-4ead-4247-b80a-8f6d2a74b1c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
After more experimentation, I have to conclude that this is expected behavior. I tried a "native pip" install in a fresh environment and got the same results. If there was a bug here, it would likely be in tensorflow/__init__.py, but that file didn't change in any significant way recently. It seems to me that the expectation is that we do a single import:import tensorflow as tfand then always use full paths to reference any nested symbols in the tf namespace, which I suppose is somewhat better than inserting `.python.` inside the paths when importing.And of course, none of this is specific to Keras.
On Sat, Nov 11, 2017 at 8:06 PM Jim Lloyd <jim....@gmail.com> wrote:
I've installed TensorFlow 1.4 and would like to be able to use Keras from tensorflow.keras... But something with the module paths isn't right. While I can access the module path tensorflow.keras, I can't access any of the nested modules as expected. After a little experimentation, I discovered that I can access them if I insert ".python." into the path, e.g.--from tensorflow.python.keras.callbacks import ModelCheckpointOtherwise, my installation seems to be working just fine. By adjusting my imports this way, my applications are now working with Keras from the TensorFlow 1.4 install. But I'd like to understand what is wrong and fix it. Anyone have any ideas?FYI, I'm developing on Mac. I did the install in a pyenv virtualenv environment.
You received this message because you are subscribed to the Google Groups "Keras-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keras-users+unsubscribe@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/keras-users/ab02a7da-4ead-4247-b80a-8f6d2a74b1c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Keras-users" group.
To view this discussion on the web, visit https://groups.google.com/d/msgid/keras-users/CAHqficggV8AMQ8aDUaXUS-Oi26VWLWRJ3NHge1gdY_jApj3JZw%40mail.gmail.com.To unsubscribe from this group and stop receiving emails from it, send an email to keras-users+unsubscribe@googlegroups.com.
--------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-7052d53d8620> in <module>() 1 # tensorflow 2 # from tensorflow.python.keras.preprocessing.text import Tokenizer ----> 3 from tensorflow.keras.preprocessing.text import Tokenizer ModuleNotFoundError: No module named 'tensorflow.keras'
--
You received this message because you are subscribed to the Google Groups "Keras-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keras-users+unsubscribe@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/keras-users/565d4b27-2318-497d-ae26-63bf05e7650b%40googlegroups.com.