6 ms·
TensorFlow r1.4
- minimaxir 9y agoHow do you import Keras from TensorFlow instead of from the Keras standalone itself? Just substitute tf.keras where appropriate?
- crusso 9y ago# Use pip for Python 2.7 # Use pip3 instead of pip for Python 3.x Why would Google help to prolong the life of Python 2.x? They usually seem so interested in pushing technologies forward.
- mikehines 9y agoI think Python 2.x is like XP/IE. It's supported so that more people can quickly benefit from the framework, which ultimately pushes the technology forward.
- deleted 9y ago[deleted]
- netheril96 9y agoInternally Google still uses Python 2.7 only.
- asperous 9y agoFrom my understanding this is because the new projects use golang or java. https://www.reddit.com/r/Python/comments/3cak9z/why_does_google_cloud_platform_use_python_27_when/csum9uz/ https://www.reddit.com/r/Python/comments/3cak9z/why_does_goo...
- netheril96 9y agoThose information is not accurate. First, Google has been trying to migrate to Python 3 for years, but the implementation of the plan has been delayed all the time. Maybe this year certain internal codes will finally be migrated fully. Second, many new projects are still in Python. Even if some Googlers hate Python, they have no other choice if they want to do AI.
- ausjke 9y agoStill, the old issue persists, just issue a "import tensorflow as tf" with python3 you got: ~tensorflow/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6 return f(*args, **kwds) This does not prevent me from running short code, however who knows what this potentially means, better fixing that before the release. It obviously said the runtime was built with 3.5 instead of 3.6. https://github.com/tensorflow/tensorflow/issues/14182 https://github.com/tensorflow/tensorflow/issues/14182
- allenlavoie 9y agoIt's just a small Cython-compiled utility throwing the warning, it works fine. Everything else is pure Python and so doesn't care about 3.5 vs 3.6. We will fix the warning, though (disclaimer: I work on TF and added fast_tensor_utils--sorry!).
- eggie5 9y agoI was sad to see `tf.contrib.data.get_single_element()` didn't make it in :( Keep building TF Serving from source until the next release :(