wrapper code is missing.
import torch
import torch.cuda
a = torch.cuda.FloatTensor(100).half()
---------------------------------------------------------------------------
AttributeError: 'FloatTensor' object has no attribute 'half'
a = torch.cuda.HalfTensor(100)
a.float()
---------------------------------------------------------------------------
RuntimeError: Copy function from HalfTensor to FloatTensor isn't implemented!
print(a)
---------------------------------------------------------------------------
RuntimeError: Copy function from HalfTensor to DoubleTensor isn't implemented!