美文网首页
ValueError: Shape mismatch: The

ValueError: Shape mismatch: The

作者: 无畏绽放 | 来源:发表于2019-12-08 10:54 被阅读0次

    ValueError: Shape mismatch: The shape of labels (received (19200,)) should equal the shape of logits except for the last dimension (received (6144, 50)).

    解决:use of sparse_softmax_cross_entropy. feed it one hot encoded labels which it doesn't want.

    Switch to just normal softmax_cross_entropy and see if that works.

    https://stackoverflow.com/a/37317322/7431458

    相关文章

      网友评论

          本文标题:ValueError: Shape mismatch: The

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