Where is gen_math_ops script in tensorflow?

后端 未结 4 1505
情深已故
情深已故 2020-12-15 05:42

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

4条回答
  •  盖世英雄少女心
    2020-12-15 05:57

    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.

提交回复
热议问题