Size([5, 1]) # mul_是按元素相乘,两个tensor的shape相同才可以相乘 # mm是矩阵相乘 >>> a.mul_(d) Traceback (most recent call last): File "<stdin>", line 1, ...
確定! 回上一頁