提交培训作业失败,因为它找不到自定义文件

时间:2019-06-19 14:49:53

标签: google-cloud-platform

我想提交一个自定义的Keras模型。我的文件夹是

trainer
  -- model.py
  -- task.py
  -- training_data.json

在本地进行培训是可行的,但是由于(来自日志),提交到AI云失败了:

master-replica-0
Traceback (most recent call last): File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.5/runpy.py", line 85, in _run_code exec(code, run_globals) File "/root/.local/lib/python3.5/site-packages/trainer/task.py", line 162, in <module> with io.open('tokenizer.json',encoding='utf-8') as f: FileNotFoundError: [Errno 2] No such file or directory: 'training_data.json'

如何处理task.py中所需的数据?

0 个答案:

没有答案