StackAlongDimension does not return correct result #108615
Labels
area-System.Numerics.Tensors
in-pr
There is an active PR which will close this issue when it is merged
Milestone
Description
StackAlongDimension always use the first parameter to calculate. please see the [Other information] for detailed analyze.
Reproduction Steps
use the code as below
Expected behavior
output should be
[2x2x2], type = System.Int32, isPinned = False
{
{1,2}
{10,20}
{3,4}
{30,40}
}
Actual behavior
output is
Regression?
No response
Known Workarounds
No response
Configuration
VS 2022, .NET 8
Windows 11 [Version 10.0.26100.1742]
x64
Other information
by dive into the source code, I found the code is always using the first tensor for stacking.
I created a PoC version, this version works as exptected.
The text was updated successfully, but these errors were encountered: