Skip to content

Commit

Permalink
tensor backward function signature dotnet#1376
Browse files Browse the repository at this point in the history
  • Loading branch information
haytham2597 committed Oct 21, 2024
1 parent 16aba79 commit 441bbdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TorchSharp/Tensor/Tensor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -726,8 +726,8 @@ public bool is_sparse {
}
}

public void backward(IList<Tensor>? grad_tensors = null, bool create_graph = false, bool retain_graph = false, IList<Tensor>? inputs = null) =>
torch.autograd.backward(new[] { this }, grad_tensors, create_graph, retain_graph, inputs);
public void backward(IList<Tensor>? grad_tensors = null, bool retain_graph = false, bool create_graph = false, IList<Tensor>? inputs = null) =>
torch.autograd.backward(new[] { this }, grad_tensors, retain_graph, create_graph, inputs);


/// <summary>
Expand Down

0 comments on commit 441bbdd

Please sign in to comment.