阅读背景:

InvalidArgumentError:在[0] .dim(0)和In [1]中.dim(0)必须相同:[1,125,150] vs [32,150,125]

来源:互联网 

I'm trying to create a custom layer merging 2 sources. I am receiving the error "InvalidArgumentError: In[0].dim(0) and In[1].dim(0) must be the same: [1,125,150] vs [32,150,125]." The code runs if I set the batch_size to 1 so then have [1,125,150] vs [1,150,125]; however, the loss then doesn't change so still not root cause. I think that I need to use batch size instead of just expand dimsI'm trying to create a custom layer merging 2 s




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: