I want to compute exp() of each item of a cuda tensor out_adj = torch.exp(out_adj) where out_adj is a 1D tensor with 60 values.
I get the error message RuntimeError: "exp_cuda" not implemented for 'Long'
I tried to change the type of the tensor to torch.cuda.IntTensor and to torch.cuda.ShortTensor, but nothing works.
Iād be happy to get help on this
The exp function is only implemented for continuous dtypes Iām afraid.
You can convert your Tensor to float for example before evaluating it for it to work: out_adj = torch.exp(out_adj.float())