RuntimeError: size mismatch m1: [a x b], m2: [c x d]

前端 未结 2 2082
独厮守ぢ
独厮守ぢ 2020-12-11 03:14

Can anyone help me in this.? I am getting below error. I use Google Colab. How to Solve this error.?

size mismatch, m1: [64 x 100], m2: [784 x 128] at

2条回答
  •  暖寄归人
    2020-12-11 04:05

    All you have to care is b=c and you are done:

    m1: [a x b], m2: [c x d]
    

    m1 is [a x b] which is [batch size x in features]

    m2 is [c x d] which is [in features x out features]

提交回复
热议问题