Skip to content

Commit e55aa41

Browse files
committed
[js/webgpu] Fix activation_params in FusedConv
Bug: #18899
1 parent f3402de commit e55aa41

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

Diff for: js/web/test/data/ops/fused-conv.jsonc

+68
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,73 @@
108108
]
109109
}
110110
]
111+
},
112+
{
113+
"name": "fused conv with clip",
114+
"operator": "FusedConv",
115+
"attributes": [
116+
{ "name": "activation", "data": "Clip", "type": "string" },
117+
{ "name": "kernel_shape", "data": [2, 2], "type": "ints" },
118+
{ "name": "activation_params", "data": [0.0, 600.0], "type": "floats" }
119+
],
120+
"opset": { "domain": "com.microsoft", "version": 1 },
121+
"cases": [
122+
{
123+
"name": "T[0]",
124+
"inputs": [
125+
{
126+
"data": [10, 20, 30, 40, 50, 60, 70, 80, 90],
127+
"dims": [1, 1, 3, 3],
128+
"type": "float32"
129+
},
130+
{
131+
"data": [1, 2, 3, 4],
132+
"dims": [1, 1, 2, 2],
133+
"type": "float32"
134+
}
135+
],
136+
"outputs": [
137+
{
138+
"data": [370, 470, 600, 600],
139+
"dims": [1, 1, 2, 2],
140+
"type": "float32"
141+
}
142+
]
143+
}
144+
]
145+
},
146+
{
147+
"name": "fused conv with clip",
148+
"operator": "FusedConv",
149+
"attributes": [
150+
{ "name": "activation", "data": "Clip", "type": "string" },
151+
{ "name": "kernel_shape", "data": [2, 2], "type": "ints" },
152+
{ "name": "activation_params", "data": [400.0, 600.0], "type": "floats" }
153+
],
154+
"opset": { "domain": "com.microsoft", "version": 1 },
155+
"cases": [
156+
{
157+
"name": "T[0]",
158+
"inputs": [
159+
{
160+
"data": [10, 20, 30, 40, 50, 60, 70, 80, 90],
161+
"dims": [1, 1, 3, 3],
162+
"type": "float32"
163+
},
164+
{
165+
"data": [1, 2, 3, 4],
166+
"dims": [1, 1, 2, 2],
167+
"type": "float32"
168+
}
169+
],
170+
"outputs": [
171+
{
172+
"data": [400, 470, 600, 600],
173+
"dims": [1, 1, 2, 2],
174+
"type": "float32"
175+
}
176+
]
177+
}
178+
]
111179
}
112180
]

0 commit comments

Comments
 (0)