I read the source code of tensorflow on github and find gen_math_ops is imported.
from tensorflow.python.ops import gen_math_ops
However, i
This file is machine generated.
You can find the generated file in .../site-packages/tensorflow/python/ops/gen_math_ops.py
For example, in Mac, you can find it at /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tensorflow/python/ops/gen_math_ops.py.