We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e11020 commit ff7870fCopy full SHA for ff7870f
src/libraries/System.Numerics.Tensors/src/System/Numerics/Tensors/netcore/TensorExtensions.cs
@@ -3500,7 +3500,7 @@ public static ref readonly TensorSpan<T> StackAlongDimension<T>(scoped ReadOnlyS
3500
Tensor<T>[] outputs = new Tensor<T>[tensors.Length];
3501
for (int i = 0; i < tensors.Length; i++)
3502
{
3503
- outputs[i] = Tensor.Unsqueeze(tensors[0], dimension);
+ outputs[i] = Tensor.Unsqueeze(tensors[i], dimension);
3504
}
3505
return ref Tensor.ConcatenateOnDimension<T>(dimension, tensors, destination);
3506
0 commit comments