diff --git a/src/TorchSharp/Tensor/Tensor.cs b/src/TorchSharp/Tensor/Tensor.cs index 8a51d5d5..2e64d0d6 100644 --- a/src/TorchSharp/Tensor/Tensor.cs +++ b/src/TorchSharp/Tensor/Tensor.cs @@ -726,8 +726,8 @@ public bool is_sparse { } } - public void backward(IList? grad_tensors = null, bool create_graph = false, bool retain_graph = false, IList? inputs = null) => - torch.autograd.backward(new[] { this }, grad_tensors, create_graph, retain_graph, inputs); + public void backward(IList? grad_tensors = null, bool retain_graph = false, bool create_graph = false, IList? inputs = null) => + torch.autograd.backward(new[] { this }, grad_tensors, retain_graph, create_graph, inputs); ///