【发布时间】:2018-03-18 16:36:28
【问题描述】:
我试图在 tensorflow 中找到 gen_dataset_ops 的函数或类定义,它的源代码为 here。我发现很多地方都是这样导入的:
from tensorflow.python.ops import gen_dataset_ops
但我找不到它的定义位置,我希望找到类似的东西:
def gen_dataset_ops(...):
#Do something clever
return
我一般不太了解 python 模块的解剖结构,所以我可能在这里遗漏了一些基础知识,.. 欢迎任何提示!
【问题讨论】:
-
您是否检查了
tensorflow.python.ops文件中的gen_dataset_ops? -
您使用的是哪个操作系统?
-
ops 是一个目录,没有名为 gen_dataset_ops 的文件,搜索它只会显示导入它的文件。 Tnx。
标签: python module setuptools python-packaging