首页
技术
登录
6mi
u
盘
搜
搜 索
技术
tensorflow 和keras 转化的时候
tensorflow 和keras 转化的时候
技术
2022-07-16
72
keras :
a = Input( shape=(1,))
a 的shape为(?,1)
tensorflow :
a = tf.placeholder( shape=(1,), name=prefix + fc.name, dtype=fc.dtype)
生成的a 为 (1,)
应该转化为
a = tf.placeholder( shape=(None,1), name=prefix + fc.name, dtype=fc.dtype)
转载请注明原文地址:https://ipadbbs.8miu.com/read-27843.html
最新回复
(
0
)