美文网首页
[Keras] [multiple inputs / outpu

[Keras] [multiple inputs / outpu

作者: 荷包蛋酱 | 来源:发表于2018-11-16 15:57 被阅读0次
    1. The input data does not have the same dimension as was declared in the first layer
    2. The input data includs missing values
    3. The input data is not a matrix (for example, a data frame)
    • 但我的问题不是这样,我的keras 使用了triplet loss,多个输入和输出,用dict描述,因此要注意,
      model = Model(inputs=[xx, xxx, xxxx], outputs=[y1,y2,y3])
      输入dict的key要和Input layer 的name一一对应,同理输出dict的key要和输出层的name一一对应。

    相关文章

      网友评论

          本文标题:[Keras] [multiple inputs / outpu

          本文链接:https://www.haomeiwen.com/subject/uapmfqtx.html