@albanD
I tried to convert the Tensor to numpy with the var[0].numpy(), but I get this error .
“RuntimeError: Can’t call numpy() on Variable that requires grad. Use var.detach().numpy() instead.”
Even when I am using torch.no_grad(), that did not solved the issue. do you know if, is there a way to eliminate the grad when converting from Tensor to Numpy?