gpt4 book ai didi

tensorflow - tensorflow.python.framework.errors_impl.NotFoundError : Failed to create a directory: ; No such file or directory

转载 作者:行者123 更新时间:2023-12-04 12:27:45 27 4
gpt4 key购买 nike

是否进行了一些测试以训练一些数据并遇到这种错误,并且想知道“tf_jenkins”文件夹的用途是什么?检查环境后,在我的PC上确实没有此类目录,我应该手动创建文件夹还是安装其他插件并自动创建目录。

2018-03-01 02:31:02.958773:WC:\tf_jenkins\workspace\rel-win\M\windows\PY\36\tensorflow\core\framework\op_kernel.cc:1198]未找到:无法创建目录:;没有相应的文件和目录

追溯(最近一次通话):

File "C:\Programs\Python\Python36\lib\site-packages\tensorflow\python\client\session.py", line 1350, in _do_call
return fn(*args)
File "C:\Programs\Python\Python36\lib\site-packages\tensorflow\python\client\session.py", line 1329, in _run_fn
status, run_metadata)
File "C:\Programs\Python\Python36\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 473, in __exit__
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.NotFoundError: Failed to create a directory: ; No such file or directory

在处理上述异常期间,发生了另一个异常:

追溯(最近一次通话):
File "C:\Programs\Python\Python36\lib\site-packages\tensorflow\python\training\saver.py", line 1593, in save
{self.saver_def.filename_tensor_name: checkpoint_file})
File "C:\Programs\Python\Python36\lib\site-packages\tensorflow\python\client\session.py", line 895, in run
run_metadata_ptr)
File "C:\Programs\Python\Python36\lib\site-packages\tensorflow\python\client\session.py", line 1128, in _run
feed_dict_tensor, options, run_metadata)
File "C:\Programs\Python\Python36\lib\site-packages\tensorflow\python\client\session.py", line 1344, in _do_run
options, run_metadata)
File "C:\Programs\Python\Python36\lib\site-packages\tensorflow\python\client\session.py", line 1363, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.NotFoundError: Failed to create a directory: ; No such file or directory

最佳答案

将“/”更改为“\\”有助于我修复Windows 10中的错误。

错误路径示例:

log_dir="logs/fit/" + datetime.datetime.now().strftime("%Y%m%d-%H%M%S")

好的路径示例:
log_dir="logs\\fit\\" + datetime.datetime.now().strftime("%Y%m%d-%H%M%S")

关于tensorflow - tensorflow.python.framework.errors_impl.NotFoundError : Failed to create a directory: ; No such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49043393/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com