here 예제를 사용하여 두 개의 텐서의 요소 - 와이즈 곱셈을 시도했습니다.AttributeError : 모듈 'torch'에 'cmul'속성이 없습니다.
내 코드 :
import torch
x = torch.Tensor([2, 3])
y = torch.Tensor([2, 1])
z = torch.cmul(x, y)
print(z)
그것은 나에게 다음과 같은 오류를주고있다.
AttributeError: module 'torch' has no attribute 'cmul'
왜이 오류가 발생하는지 알려주실 수 있습니까?