You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/TorchSharp/LinearAlgebra.cs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -136,8 +136,8 @@ public static (Tensor, Tensor) slogdet(Tensor input)
136
136
/// </summary>
137
137
/// <param name="input">The input tensor</param>
138
138
/// <param name="offset">Which diagonal to consider. Default: 0 (main diagonal).</param>
139
-
/// <param name="dim1">First dimension with respect to which to take diagonal. Default: -1.</param>
140
-
/// <param name="dim2">Second dimension with respect to which to take diagonal. Default: -2.</param>
139
+
/// <param name="dim1">First dimension with respect to which to take diagonal. Default: -2.</param>
140
+
/// <param name="dim2">Second dimension with respect to which to take diagonal. Default: -1.</param>
141
141
/// <remarks>
142
142
/// Applying torch.diag_embed() to the output of this function with the same arguments yields a diagonal matrix with the diagonal entries of the input.
143
143
/// However, torch.diag_embed() has different default dimensions, so those need to be explicitly specified.
Copy file name to clipboardExpand all lines: src/TorchSharp/Tensor/Tensor.cs
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3329,8 +3329,9 @@ public Tensor diagflat(long offset = 0)
3329
3329
/// Applying torch.diag_embed() to the output of this function with the same arguments yields a diagonal matrix with the diagonal entries of the input.
3330
3330
/// However, torch.diag_embed() has different default dimensions, so those need to be explicitly specified.
Copy file name to clipboardExpand all lines: src/TorchSharp/Tensor/torch.OtherOperations.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -313,7 +313,7 @@ public static Tensor diag_embed(Tensor input, long offset = 0L, long dim1 = -2L,
313
313
/// Applying torch.diag_embed() to the output of this function with the same arguments yields a diagonal matrix with the diagonal entries of the input.
314
314
/// However, torch.diag_embed() has different default dimensions, so those need to be explicitly specified.
0 commit comments