没有名为trainer的模块,用于TensorFlow教程的cloudml引擎,在本地运行

2024-05-16 15:19:21 发布

您现在位置:Python中文网/ 问答频道 /正文

Tutorial I am following

TensorML一直试图使用谷歌流量引擎。因为这个错误而被困在“运行本地培训工作”的地方

/usr/bin/python: No module named trainer

完整命令是:

^{pr2}$

据我所知,这三个变量的设置都是正确的,尽管现在还没有。该教程没有具体说明下载培训师文件或如何引用,过去一个小时的谷歌搜索也没有找到任何可行的解决方案。找到了这样一个普遍的解释:

--module-name specifies the name of your application's main module, using your package's namespace dot notation. This is the Python file that you run to start your application. For example, if your main module is .../my_application/trainer/task.py (see the recommended project structure), then the module name is trainer.task

任何信息都将不胜感激。在


Tags: thename引擎taskyourapplicationismain
1条回答
网友
1楼 · 发布于 2024-05-16 15:19:21

多亏了来自达斯汀的信息,在评论中找到了解决办法。在

只是下载了云Shell上的trainer目录,而不是我的本地环境。在

现在文件结构如下:

estimator
    |  data
    |   |  adult_data.csv
    |   |  adult_test.csv
    |  output
    |  trainer
    |   |  __init__.py
    |   |  model.py
    |   |  task.ipynb
    |   |  task.py

相关问题 更多 >