Skip to content

Commit 6369d66

Browse files
committed
Set ord default as specified in docs
1 parent 1dd3ae5 commit 6369d66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TorchSharp/LinearAlgebra.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ public static Tensor tensorsolve(Tensor A, Tensor B, long[] dims)
703703
/// <param name="dims">Dimensions over which to compute the norm.</param>
704704
/// <param name="keepdim">If set to true, the reduced dimensions are retained in the result as dimensions with size one. </param>
705705
/// <returns></returns>
706-
public static Tensor vector_norm(Tensor input, double ord, long[]? dims = null, bool keepdim = false)
706+
public static Tensor vector_norm(Tensor input, double ord = 2d, long[]? dims = null, bool keepdim = false)
707707
{
708708
unsafe {
709709
fixed (long* pdims = dims) {

0 commit comments

Comments
 (0)