loss.backward()

File “/anaconda3/envs/pytorch0.4/lib/python3.6/site-packages/torch/tensor.py”, line 102, in backward
torch.autograd.backward(self, gradient, retain_graph, create_graph)
File “/anaconda3/envs/pytorch0.4/lib/python3.6/site-packages/torch/autograd/init.py”, line 90, in backward
allow_unreachable=True)  # allow_unreachable flag
RuntimeError: “add” not implemented for ‘torch.HalfTensor’
I tried to use HalfTensor to reduce memory overhead.
when i call loss.backward(), an error occurs which indicates ‘add’ operator not implemented for HalfTensor.