Skip to content

Commit ff7870f

Browse files
committed
Update TensorExtensions.cs
1 parent 4e11020 commit ff7870f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/System.Numerics.Tensors/src/System/Numerics/Tensors/netcore/TensorExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3500,7 +3500,7 @@ public static ref readonly TensorSpan<T> StackAlongDimension<T>(scoped ReadOnlyS
35003500
Tensor<T>[] outputs = new Tensor<T>[tensors.Length];
35013501
for (int i = 0; i < tensors.Length; i++)
35023502
{
3503-
outputs[i] = Tensor.Unsqueeze(tensors[0], dimension);
3503+
outputs[i] = Tensor.Unsqueeze(tensors[i], dimension);
35043504
}
35053505
return ref Tensor.ConcatenateOnDimension<T>(dimension, tensors, destination);
35063506
}

0 commit comments

Comments
 (0)