Skip to content

Commit

Permalink
[js/web] fix suite test list for zero sized tensor (#19638)
Browse files Browse the repository at this point in the history
### Description

Fixes build break brought by #19614

Currently WebGL backend does not support zero sized tensor. This change
split test data into 2 parts, and only enable zero sized tensor tests
for WebGPU.
  • Loading branch information
fs-eire committed Feb 24, 2024
1 parent 9ccdc49 commit 0edb035
Show file tree
Hide file tree
Showing 4 changed files with 594 additions and 22 deletions.
22 changes: 0 additions & 22 deletions js/web/test/data/ops/add.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -157,28 +157,6 @@
"type": "float32"
}
]
},
{
"name": "T[2,0] T[2,1]",
"inputs": [
{
"data": [],
"dims": [2, 0],
"type": "float32"
},
{
"data": [1, 2],
"dims": [2, 1],
"type": "float32"
}
],
"outputs": [
{
"data": [],
"dims": [2, 0],
"type": "float32"
}
]
}
]
}
Expand Down
31 changes: 31 additions & 0 deletions js/web/test/data/ops/add_zero-sized.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[
{
"name": "Add with no attributes",
"operator": "Add",
"attributes": [],
"cases": [
{
"name": "T[2,0] T[2,1]",
"inputs": [
{
"data": [],
"dims": [2, 0],
"type": "float32"
},
{
"data": [1, 2],
"dims": [2, 1],
"type": "float32"
}
],
"outputs": [
{
"data": [],
"dims": [2, 0],
"type": "float32"
}
]
}
]
}
]

0 comments on commit 0edb035

Please sign in to comment.