Hi,
You can do either
with torch.no_grad():
w *= i
Or if you need cannot do it inplace directly:
with torch.no_grad():
w.copy_(w * i)
Hi,
You can do either
with torch.no_grad():
w *= i
Or if you need cannot do it inplace directly:
with torch.no_grad():
w.copy_(w * i)