how can i convert variable that require grad. to numpy array? i use var.detach().numpy() but also get the error:
RuntimeError: Can't call numpy() on Variable that requires grad. Use var.detach().numpy() instead.