首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >tf numpy 与 Keras Functional API 的使用问题?

tf numpy 与 Keras Functional API 的使用问题?

提问于 2021-10-05 09:12:39
回答 0关注 0查看 125
代码语言:js
复制
inp1 = keras.layers.Input(shape=(1,), name="inp1")
 inp2 = keras.layers.Input(shape=(1,), name="inp2")
out = tf.experimental.numpy.add(inp1, inp2)
m = keras.Model([inp1, inp2], out)
代码语言:js
复制

 Cannot interpret '<KerasTensor: shape=(None, 1) dtype=float32 (created by layer 'inp1')>' as a data type

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档