I'm learning python code called mnist.py, which is related to Deep Learning called TensorFlow.
https://www.tensorflow.org/versions/master/tutorials/mnist/tf/index.html#tensorflow-mechanics-101 About the following description in that mnist.py
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
Sarinja's programming diary http://salinger.github.io/python/20140211-future-module/ of See absolute_import section.
In Python 3, absolute imports take precedence over relative imports. If a module with the same name as the standard module exists in the current directory, the module in the current directory has priority in Python 2 series, so using this eliminates the possibility of accidentally overwriting the standard module.
Recommended Posts