Toybrick

rknn.load_tensorflow的predef_file如何生成?

whxhngns200

注册会员

积分
174
发表于 2019-5-23 14:44:48    查看: 6166|回复: 3 | [复制链接]    打印 | 显示全部楼层
按照文档里面np.savez(‘prd.npz’, [placeholder name]=prd_value),好像没效果, 比如is_train = tf.placeholder(dtype=tf.bool,name='is_training‘) 怎么   is_train生成到prd.npz文件?哪位大佬给说明一下,不胜感激

回复

使用道具 举报

zht

注册会员

积分
74
发表于 2019-5-23 16:58:05 | 显示全部楼层
试一下: np.savez('predef.npz',  is_training=False)
回复

使用道具 举报

whxhngns200

注册会员

积分
174
 楼主| 发表于 2019-5-23 19:16:51 | 显示全部楼层
zht 发表于 2019-5-23 16:58
试一下: np.savez('predef.npz',  is_training=False)

np.savez('predef.npz',  is_train=False)出错,SyntaxError: invalid character in identifier
有谁知道怎么弄
回复

使用道具 举报

whxhngns200

注册会员

积分
174
 楼主| 发表于 2019-5-23 19:23:45 | 显示全部楼层
whxhngns200 发表于 2019-5-23 19:16
np.savez('predef.npz',  is_train=False)出错,SyntaxError: invalid character in identifier
有谁知 ...

可以了,全角字符的原因
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表