Did you push the input data as well as the model to the GPU? If so, could you check if loss_landscapes creates new tensors in internal methods without specifying a device (the default would be CPU, which could create this issue)?