sync c928d21e6cc1
Browse files
build/webgpu/metadata.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"name": "ai.onnx.ReduceMin",
|
| 3 |
-
"id": "
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"backend": { "type": "webgpu" },
|
|
@@ -18,11 +18,11 @@
|
|
| 18 |
"reduce-narrow-empty-identity.wgsl.jinja": "S6UnLW+6dyCb9ciRezkgXE9mlYmqdfBCjPRO9iPm3Jk=",
|
| 19 |
"reduce-noop-empty-axes.wgsl.jinja": "IO2MEzyBGJr3Z8AVP7ELJXqfhwcG/vtBfa0wCdkbuwo=",
|
| 20 |
"reduce-row-subgroup.wgsl.jinja": "szYjtA6TUPJ/I4mbVX7WZUoXiseQ3JfulzqgGb6fdt4=",
|
| 21 |
-
"reduce-row-tree.wgsl.jinja": "
|
| 22 |
"reduce-serial-axis.wgsl.jinja": "cLrTc0ite8YZmx/wn7PBwaxTp9dLWWUIUdQQ3tH8+4o=",
|
| 23 |
"test.json": "G8Sv1RfEOyXjQTYVWqiWogZbCuoav1pCHqswBcjcM6E="
|
| 24 |
}
|
| 25 |
},
|
| 26 |
-
"provenance": { "kernel": { "sha": "
|
| 27 |
"webgpu": { "manifestSpec": "1.0", "specialized": true, "opPath": "ops/ai.onnx.ReduceMin" }
|
| 28 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"name": "ai.onnx.ReduceMin",
|
| 3 |
+
"id": "_ai_onnx_reducemin_webgpu_dfa003d",
|
| 4 |
"version": 1,
|
| 5 |
"license": "Apache-2.0",
|
| 6 |
"backend": { "type": "webgpu" },
|
|
|
|
| 18 |
"reduce-narrow-empty-identity.wgsl.jinja": "S6UnLW+6dyCb9ciRezkgXE9mlYmqdfBCjPRO9iPm3Jk=",
|
| 19 |
"reduce-noop-empty-axes.wgsl.jinja": "IO2MEzyBGJr3Z8AVP7ELJXqfhwcG/vtBfa0wCdkbuwo=",
|
| 20 |
"reduce-row-subgroup.wgsl.jinja": "szYjtA6TUPJ/I4mbVX7WZUoXiseQ3JfulzqgGb6fdt4=",
|
| 21 |
+
"reduce-row-tree.wgsl.jinja": "flhq6QZkgMeHyb1b5enejKpaLEoys2Wnqn9qm1a3Tr8=",
|
| 22 |
"reduce-serial-axis.wgsl.jinja": "cLrTc0ite8YZmx/wn7PBwaxTp9dLWWUIUdQQ3tH8+4o=",
|
| 23 |
"test.json": "G8Sv1RfEOyXjQTYVWqiWogZbCuoav1pCHqswBcjcM6E="
|
| 24 |
}
|
| 25 |
},
|
| 26 |
+
"provenance": { "kernel": { "sha": "c928d21e6cc1310861cba3bafb75f5f679ecf5f3", "dirty": false } },
|
| 27 |
"webgpu": { "manifestSpec": "1.0", "specialized": true, "opPath": "ops/ai.onnx.ReduceMin" }
|
| 28 |
}
|
build/webgpu/reduce-row-tree.wgsl.jinja
CHANGED
|
@@ -39,7 +39,8 @@ fn {{ name }}() -> {{ scalar }} {
|
|
| 39 |
const WG: u32 = {{ workgroupSize }}u;
|
| 40 |
|
| 41 |
{% set is_int = scalar == "i32" or scalar == "u32" %}
|
| 42 |
-
{% set intAdditive = is_int and (source.op == "sum" or source.op == "l1" or source.op == "sumsquare"
|
|
|
|
| 43 |
{% set accType = scalar if source.op == "max" or source.op == "min" or source.op == "prod" or intAdditive else "f32" %}
|
| 44 |
{{ wgsl_minmax_identity("identity", source.op, accType) }}
|
| 45 |
|
|
|
|
| 39 |
const WG: u32 = {{ workgroupSize }}u;
|
| 40 |
|
| 41 |
{% set is_int = scalar == "i32" or scalar == "u32" %}
|
| 42 |
+
{% set intAdditive = is_int and (source.op == "sum" or source.op == "l1" or source.op == "sumsquare"
|
| 43 |
+
or source.op == "l2" or source.op == "mean") %}
|
| 44 |
{% set accType = scalar if source.op == "max" or source.op == "min" or source.op == "prod" or intAdditive else "f32" %}
|
| 45 |
{{ wgsl_minmax_identity("identity", source.op, accType) }}
|
| 46 |
|