Solved by jubick in post #2 
              
              
                You can create gpu tensor from numpy array like this: 
array = torch.from_numpy(some_np_array).float().to(device)

and calculate like this: 
mean = torch.mean(array)
diffs = array - mean
var = torch.mean(torch.pow(diffs, 2.0))
std = torch.pow(var, 0.5)
zscores = diffs / std
skews = torch.mean(torch.…