Columns 2D tenson times rows 2D tensor equals a 3d pytorch tensor

前端 未结 0 1392
悲哀的现实
悲哀的现实 2021-01-19 18:01

Given 2 tensors 2-D in PyTorch A (a X m) and B(m X b), is there any efficient way to obtain a tensor C (m X a X b), where C[i,:,:] = A[:,i] @ B[i,:]?

Here I will give

相关标签:
回答
  • 消灭零回复
提交回复
热议问题