Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
qjia7 committed Nov 18, 2024
1 parent 5880723 commit bf26787
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions js/web/test/data/ops/transpose.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,30 @@
}
]
},
{
"name": "Transpose as reshape - perms:[1, 0, 2, 4, 3]",
"operator": "Transpose",
"attributes": [{ "name": "perm", "data": [1, 0, 2, 4, 3], "type": "ints" }],
"cases": [
{
"name": "T[3, 1, 2, 1, 4]",
"inputs": [
{
"data": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24],
"dims": [3, 1, 2, 1, 4],
"type": "float32"
}
],
"outputs": [
{
"data": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24],
"dims": [1, 3, 2, 4, 1],
"type": "float32"
}
]
}
]
},
{
"name": "Transpose - perms:[1, 0]",
"operator": "Transpose",
Expand Down

0 comments on commit bf26787

Please sign in to comment.