Tensorflow :Unsuccessful TensorSliceReader constructor: Failed to find any matching files
2017-09-02 11:01
1086 查看
Tensorflow最新的版本,在使用Saver载入模型参数时会报错:
意思是说找不到模型保存的文件。
在Saver.save中我们传入sess,modelpath
例如:
dir=”D:\data\Iris\”
saver.save(sess,dir+”my-model.cpk”)
然后保存后,我们发现目录下的文件为:
D:\data\Iris\
都是有后缀的,也的确找不到my-model.cpt,根据github所说得这是tensorflow新版本的bug。
解决方法:
saver.restore(sess,dir+“.\\”+”my-model.cpk”)
即可
Tensorflow :Unsuccessful TensorSliceReader constructor: Failed to find any matching files
意思是说找不到模型保存的文件。
在Saver.save中我们传入sess,modelpath
例如:
dir=”D:\data\Iris\”
saver.save(sess,dir+”my-model.cpk”)
然后保存后,我们发现目录下的文件为:
D:\data\Iris\
my-model.cpt.data-0000-of-00001 #变量的键值对 my-model.cpt.index my-model.cpt.meta #模型的拓扑结构
都是有后缀的,也的确找不到my-model.cpt,根据github所说得这是tensorflow新版本的bug。
解决方法:
saver.restore(sess,dir+“.\\”+”my-model.cpk”)
即可
相关文章推荐
- NotFoundError: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for xxx
- ] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for model
- Unsuccessful TensorSliceReader constructor: Failed to get matching files
- Extjs 打包 failed to find any files
- tensorflow安装出现Failed to load the native TensorFlow runtime问题
- tensorflow出现Tried to convert 'min_object_covered' to a tensor and failed错误时
- hadoop集成kerberos错误排查-Failed to find any Kerberos tgt
- iOS Failed to find matching arch for 64-bit Mach-O input file
- TensorFlow的图像预处理报错ValueError: Tried to convert ‘min_object_covered’ to a tensor and failed.
- No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt
- iOS Failed to find matching arch for 64-bit Mach-O input file
- win10配置TensorFlow GPU出现Failed to load the native TensorFlow runtime."
- tensorflowGPU版出现"Failed to load the native TensorFlow"问题
- ADS编译出错“Error : (Fatal) L6015U: Could not find any input files to link.”
- 从2月14号开始,上传AppStore会碰到:Failed to locate or generate matching
- org.springframework.core.NestedIOException: ASM ClassReader failed to parse class file - probably du
- aircrack install Cannot find development files for any supported version of libnl. install either li
- This application failed to start because it could not find or load the Qt platform plugin “windows”错
- Unable to execute dex: Multiple dex files define.... ...Conversion to Dalvik format failed: Unable t
- 从2月14号開始,上传AppStore会碰到:Failed to locate or generate matching signing assets