sync 4385228f788d
Browse filesFiles changed (7)
- README.md+22-34
- build/webgpu/bench.json+10-10
- build/webgpu/datamove-split-n.wgsl.jinjaAdded+62
- build/webgpu/manifest.json+1-210
- build/webgpu/metadata.json+1-26
- build/webgpu/split-to-sequence.wgsl.jinjaDeleted-62
- build/webgpu/test.json+322-147
7 unmodified lines8910111213141516171819202122232425262728293031323334353637388 unmodified lines47484950515253545556575859606162636465666768697071727374757677787980818283848586878889907 unmodified lines---# ai.onnx.SplitToSequence`ai.onnx` · internal tensor lowering (non-standard) · reviewed against ONNX opset 11## DescriptionInternal fixed-output split lowering that returns two, three, four, or six tensors with invocation-supplied shapes. It does not construct an ONNX sequence value.See the [standard ONNX `SplitToSequence` spec](https://onnx.ai/onnx/operators/onnx__SplitToSequence.html) for the contract this internal lowering does not implement.## Inputs| Name | Logical dtype | Rank | Shape | Description | Presence || --- | --- | --- | --- | --- | --- || `input` | `T` | — | — | The tensor to split. | required || `split` | `S` | — | — | Length of each output slice: a scalar for uniform chunks or a 1-D tensor of per-output lengths. | optional |## Outputs| Name | Upstream name | Logical dtype | Rank | Shape | Description | Presence || --- | --- | --- | --- | --- | --- | --- || `y0` | `Y0` | `T` | derived | — | First output tensor slice. | required || `y1` | `Y1` | `T` | derived | — | Second output tensor slice. | required || `y2` | `Y2` | `T` | derived | — | Third output tensor slice. | optional || `y3` | `Y3` | `T` | derived | — | Fourth output tensor slice. | optional || `y4` | `Y4` | `T` | derived | — | Fifth output tensor slice. | optional || `y5` | `Y5` | `T` | derived | — | Sixth output tensor slice. | optional |## Attributes8 unmodified lines| Variable | Allowed dtypes || --- | --- || `T` | `float32`, `float16`, `bool` || `S` | `uint32` |## Files- [`metadata.json`](build/webgpu/metadata.json) — kernel metadata (id, digests, per-variant templates, provenance)- [`manifest.json`](build/webgpu/manifest.json) — the op contract (source of truth)- [`test.json`](build/webgpu/test.json) — correctness cases- [`bench.json`](build/webgpu/bench.json) — benchmark cases- [`split-to-sequence.wgsl.jinja`](build/webgpu/split-to-sequence.wgsl.jinja)## Use with `@huggingface/kernels````shnpm install --save-exact @huggingface/kernels@0.0.1-preview.3```Outputs with inferable metadata are allocated automatically. Explicit `outputs` entries request optional results or provide metadata that cannot be inferred from the supplied inputs and attributes.This example supplies explicit metadata for:- `y0`- `y1`The `version: 1` option selects the published kernel contract; it is independent of any operator opset, contrib `since_version`, or model version.It follows the `v1` branch as fixes land. To pin exact artifact bytes, pass a 40-character commit `revision` instead of `version`.Replace each `*Data` placeholder with a typed array containing the corresponding input data.```jsimport { getKernel } from "@huggingface/kernels";const kernel = await getKernel("webgpu-kernels/ai.onnx.SplitToSequence", { version: 1 });// Explicit destinations request optional results or supply metadata that cannot be inferred.const { y0, y1 } = await kernel({ input: { data: inputData, shape: [3, 2] } }, {outputs: {y0: { shape: [1, 2], dtype: "float32" },y1: { shape: [1, 2], dtype: "float32" },},});```7 unmodified lines891011121314151617181920212223242526272829303132338 unmodified lines424344454647484950515253545556575859606162636465666768697071727374757677787 unmodified lines---# ai.onnx.SplitToSequence`ai.onnx` · tensor-only contract (non-standard) · reviewed against ONNX opset 11## DescriptionSplits a tensor into a sequence of tensors along `axis`: chunks the size of a scalar `split`, the last smaller where the axis does not divide; parts the sizes a 1-D `split` lists; or, without `split`, parts of size 1, which `keepdims=0` squeezes. This tensor-only package returns the sequence's elements as its variadic output, one to six of them, rather than an ONNX sequence value.See the [standard ONNX `SplitToSequence` spec](https://onnx.ai/onnx/operators/onnx__SplitToSequence.html) for the graph semantics this tensor-only package does not implement.## Inputs| Name | Logical dtype | Rank | Shape | Description | Presence || --- | --- | --- | --- | --- | --- || `input` | `T` | — | — | The tensor to split. | required || `split` | `I` | — | — | Part length: a positive scalar for equal chunks, or a 1-D tensor of positive lengths that sum to the axis dimension. The kernel reads its shape, and its values only to work out the outputs' shapes. | optional |## Outputs| Name | Logical dtype | Rank | Shape | Description | Presence || --- | --- | --- | --- | --- | --- || `output_sequence` | `T` | derived | derived per tensor | Element i of the sequence. | 1 to 6 tensors |## Attributes8 unmodified lines| Variable | Allowed dtypes || --- | --- || `T` | `float32`, `float16`, `uint32`, `int32`, `int16`, `uint8`, `int8`, `bool`, `int64` || `I` | `int32`, `int64` |## Files- [`metadata.json`](https://huggingface.co/kernels/webgpu-kernels/ai.onnx.SplitToSequence/blob/v1/build/webgpu/metadata.json) — kernel metadata (id, file digests, manifest spec, provenance)- [`manifest.json`](https://huggingface.co/kernels/webgpu-kernels/ai.onnx.SplitToSequence/blob/v1/build/webgpu/manifest.json) — the op contract (source of truth)- [`test.json`](https://huggingface.co/kernels/webgpu-kernels/ai.onnx.SplitToSequence/blob/v1/build/webgpu/test.json) — correctness cases- [`bench.json`](https://huggingface.co/kernels/webgpu-kernels/ai.onnx.SplitToSequence/blob/v1/build/webgpu/bench.json) — benchmark cases- [`datamove-split-n.wgsl.jinja`](https://huggingface.co/kernels/webgpu-kernels/ai.onnx.SplitToSequence/blob/v1/build/webgpu/datamove-split-n.wgsl.jinja)## Use with `@huggingface/kernels````shnpm install --save-exact @huggingface/kernels@0.0.1-preview.4```Paste the example into a browser app that resolves npm imports. Serve the app over HTTPS or localhost with WebGPU available.Required output shapes and logical data types are inferred from the supplied inputs and attributes; result tensors are allocated automatically.The `version: 1` option selects the published kernel contract; it is independent of any operator opset, contrib `since_version`, or model version.It follows the `v1` branch as fixes land. To pin exact artifact bytes, pass a 40-character commit `revision` instead of `version`.```jsimport { getKernel } from "@huggingface/kernels";const kernel = await getKernel("webgpu-kernels/ai.onnx.SplitToSequence", { version: 1 });const inputData = Float32Array.of(0.27460325, 0.3411136, 0.3648526, 0.33739972, 0.2583308, 0.13555045);const { output_sequence } = await kernel({ input: { data: inputData, shape: [3, 2] } });console.log({ output_sequence });```
4 unmodified lines56789101112131415165 unmodified lines2223242526272829303132334 unmodified lines"attrs": { "axis": 0 },"inputs": {"input": { "dtype": "float32", "shape": [1536, 256] },"split": { "dtype": "uint32", "shape": [3], "data": { "kind": "values", "values": [512, 512, 512] } }},"outputs": {"y0": { "dtype": "float32", "shape": [512, 256] },"y1": { "dtype": "float32", "shape": [512, 256] },"y2": { "dtype": "float32", "shape": [512, 256] }},"preset": "smoke"},5 unmodified lines"input": { "dtype": "float32", "shape": [8, 6, 4, 4, 16, 64], "dist": "normal", "seed": 1234, "scale": 2 }},"outputs": {"y0": { "dtype": "float32", "shape": [8, 4, 4, 16, 64], "dist": "empty" },"y1": { "dtype": "float32", "shape": [8, 4, 4, 16, 64], "dist": "empty" },"y2": { "dtype": "float32", "shape": [8, 4, 4, 16, 64], "dist": "empty" },"y3": { "dtype": "float32", "shape": [8, 4, 4, 16, 64], "dist": "empty" },"y4": { "dtype": "float32", "shape": [8, 4, 4, 16, 64], "dist": "empty" },"y5": { "dtype": "float32", "shape": [8, 4, 4, 16, 64], "dist": "empty" }},"bench": {"primary": true,4 unmodified lines56789101112131415165 unmodified lines2223242526272829303132334 unmodified lines"attrs": { "axis": 0 },"inputs": {"input": { "dtype": "float32", "shape": [1536, 256] },"split": { "dtype": "int64", "shape": [3], "data": { "kind": "values", "values": [512, 512, 512] } }},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [512, 256] },"output_sequence1": { "dtype": "float32", "shape": [512, 256] },"output_sequence2": { "dtype": "float32", "shape": [512, 256] }},"preset": "smoke"},5 unmodified lines"input": { "dtype": "float32", "shape": [8, 6, 4, 4, 16, 64], "dist": "normal", "seed": 1234, "scale": 2 }},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [8, 4, 4, 16, 64], "dist": "empty" },"output_sequence1": { "dtype": "float32", "shape": [8, 4, 4, 16, 64], "dist": "empty" },"output_sequence2": { "dtype": "float32", "shape": [8, 4, 4, 16, 64], "dist": "empty" },"output_sequence3": { "dtype": "float32", "shape": [8, 4, 4, 16, 64], "dist": "empty" },"output_sequence4": { "dtype": "float32", "shape": [8, 4, 4, 16, 64], "dist": "empty" },"output_sequence5": { "dtype": "float32", "shape": [8, 4, 4, 16, 64], "dist": "empty" }},"bench": {"primary": true,
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162// Each output copies its input slice by remapping an output coordinate and// adding all preceding outputs' cumulative split-axis extent. One invocation// handles the same flat position across outputs, and each output writes only// when that position is within its own element count.{% macro flat_index_2d(workgroupSize, name="i", bound="params.count") %}{% set wgTerm = workgroupSize ~ "u" if workgroupSize is number else workgroupSize %} // 2D-folded flat index: gid.y carries the high bits past the dispatch's // per-axis workgroup fold width. let {{ name }} = gid.x + gid.y * {{ DISPATCH_FOLD_WIDTH }}u * {{ wgTerm }};{% endmacro %}{{ env.wgsl.resourceDeclarations }}
{% for output in outputs %}{% set shape = output.shape if output.shape | length == rank else output.shape[:axisSpec] + [1] + output.shape[axisSpec:] %}{% set out_count = namespace(value=1) %}{% for d in shape %}{% set out_count.value = out_count.value * d %}{% endfor %}{% set prefix = namespace(value=0) %}{% for prev in outputs[:loop.index0] %}{% set prefix.value = prefix.value + (prev.shape[axisSpec] if prev.shape | length == rank else 1) %}{% endfor %}fn input_offset_{{ output.name }}({% if out_count.value > 0 %}out_index: u32{% endif %}) -> u32 {{% if out_count.value == 0 %} return 0u;{% else %} var rem = out_index; var offset = 0u;{% for axis in range(rank) %}{% set out_stride = namespace(value=1) %}{% for j in range(axis + 1, rank) %}{% set out_stride.value = out_stride.value * shape[j] %}{% endfor %}{% set input_stride = namespace(value=1) %}{% for j in range(axis + 1, rank) %}{% set input_stride.value = input_stride.value * inputShape[j] %}{% endfor %} var coord{{ axis }} = rem / {{ out_stride.value }}u; rem = rem % {{ out_stride.value }}u;{% if axis == axisSpec and prefix.value > 0 %} coord{{ axis }} = coord{{ axis }} + {{ prefix.value }}u;{% endif %} offset = offset + coord{{ axis }} * {{ input_stride.value }}u;{% endfor %} return offset;{% endif %}}
{% endfor %}@compute @workgroup_size({{ workgroupSize }})fn main(@builtin(global_invocation_id) gid: vec3<u32>) {{{ flat_index_2d(workgroupSize, "i", "") }}{% for output in outputs %}{% set out_count = namespace(value=1) %}{% for d in output.shape %}{% set out_count.value = out_count.value * d %}{% endfor %} if (i < params.{{ output.name }}Count) { {{ output.name }}[i] = input[input_offset_{{ output.name }}({% if out_count.value > 0 %}i{% endif %})]; }{% endfor %}}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210{"domain": "ai.onnx","name": "SplitToSequence","conformance": "internal-lowering","sinceVersion": 11,"inputs": { "input": { "dtype": "T" }, "split": { "dtype": "S", "optional": true } },"outputs": {"y0": { "onnx": "Y0", "dtype": "T", "rank": "ranks.input if attrs.keepdims == 1 else ranks.input - 1" },"y1": { "onnx": "Y1", "dtype": "T", "rank": "ranks.input if attrs.keepdims == 1 else ranks.input - 1" },"y2": {"onnx": "Y2","dtype": "T","rank": "ranks.input if attrs.keepdims == 1 else ranks.input - 1","optional": true},"y3": {"onnx": "Y3","dtype": "T","rank": "ranks.input if attrs.keepdims == 1 else ranks.input - 1","optional": true},"y4": {"onnx": "Y4","dtype": "T","rank": "ranks.input if attrs.keepdims == 1 else ranks.input - 1","optional": true},"y5": {"onnx": "Y5","dtype": "T","rank": "ranks.input if attrs.keepdims == 1 else ranks.input - 1","optional": true}},"attributes": { "axis": { "default": 0 }, "keepdims": { "default": 1 } },"attributeConstraints": { "keepdims": { "values": [0, 1] } },"typeConstraints": { "T": ["float32", "float16", "bool"], "S": ["uint32"] },"tunables": { "WORKGROUP_SIZE": { "default": 256 } },"derive": {"baseContract": "ranks.input >= 1 and (attrs.axis if attrs.axis >= 0 else attrs.axis + ranks.input) >= 0 and (attrs.axis if attrs.axis >= 0 else attrs.axis + ranks.input) < ranks.input and f16Ok(dtypes.T)","outputRankContract": "ranks.y0 == ranks.input if present.split else (ranks.y0 == ranks.input if attrs.keepdims == 1 else ranks.y0 == ranks.input - 1)","twoOutputContract": "baseContract and not present.y2 and ranks.y0 == ranks.y1 and outputRankContract","threeOutputContract": "baseContract and present.y2 and not present.y3 and ranks.y0 == ranks.y1 and ranks.y0 == ranks.y2 and outputRankContract","fourOutputContract": "baseContract and present.y2 and present.y3 and not present.y4 and ranks.y0 == ranks.y1 and ranks.y0 == ranks.y2 and ranks.y0 == ranks.y3 and outputRankContract","sixOutputContract": "baseContract and present.y2 and present.y3 and present.y4 and present.y5 and ranks.y0 == ranks.y1 and ranks.y0 == ranks.y2 and ranks.y0 == ranks.y3 and ranks.y0 == ranks.y4 and ranks.y0 == ranks.y5 and outputRankContract"},"variants": [{"id": "two_outputs","when": ["twoOutputContract"],"passes": [{"id": "main","name": "SplitToSequence2","shader": "split-to-sequence.wgsl.jinja","derive": {"inputShape": "shapes.input","rank": "ranks.input","axisSpec": "attrs.axis if attrs.axis >= 0 else attrs.axis + ranks.input","squeeze": "ranks.y0 < ranks.input","numOutputs": "2","outShapes": ["shapes.y0", "shapes.y1"]},"bindings": ["input","y0","y1",{"name": "params","struct": [{ "name": "y0Count", "type": "u32", "value": "numel(shapes.y0)" },{ "name": "y1Count", "type": "u32", "value": "numel(shapes.y1)" }]}],"dispatch": {"x": "min(ceilDiv((max(numel(shapes.y0), numel(shapes.y1))), (tunables.WORKGROUP_SIZE)), 65535)","y": "ceilDiv(ceilDiv((max(numel(shapes.y0), numel(shapes.y1))), (tunables.WORKGROUP_SIZE)), 65535)","z": 1}}]},{"id": "three_outputs","priority": 20,"when": ["threeOutputContract"],"passes": [{"id": "main","name": "SplitToSequence3","shader": "split-to-sequence.wgsl.jinja","derive": {"inputShape": "shapes.input","rank": "ranks.input","axisSpec": "attrs.axis if attrs.axis >= 0 else attrs.axis + ranks.input","squeeze": "ranks.y0 < ranks.input","numOutputs": "3","outShapes": ["shapes.y0", "shapes.y1", "shapes.y2"]},"bindings": ["input","y0","y1","y2",{"name": "params","struct": [{ "name": "y0Count", "type": "u32", "value": "numel(shapes.y0)" },{ "name": "y1Count", "type": "u32", "value": "numel(shapes.y1)" },{ "name": "y2Count", "type": "u32", "value": "numel(shapes.y2)" }]}],"dispatch": {"x": "min(ceilDiv((max(max(numel(shapes.y0), numel(shapes.y1)), numel(shapes.y2))), (tunables.WORKGROUP_SIZE)), 65535)","y": "ceilDiv(ceilDiv((max(max(numel(shapes.y0), numel(shapes.y1)), numel(shapes.y2))), (tunables.WORKGROUP_SIZE)), 65535)","z": 1}}]},{"id": "four_outputs","priority": 30,"when": ["fourOutputContract"],"passes": [{"id": "main","name": "SplitToSequence4","shader": "split-to-sequence.wgsl.jinja","derive": {"inputShape": "shapes.input","rank": "ranks.input","axisSpec": "attrs.axis if attrs.axis >= 0 else attrs.axis + ranks.input","squeeze": "ranks.y0 < ranks.input","numOutputs": "4","outShapes": ["shapes.y0", "shapes.y1", "shapes.y2", "shapes.y3"]},"bindings": ["input","y0","y1","y2","y3",{"name": "params","struct": [{ "name": "y0Count", "type": "u32", "value": "numel(shapes.y0)" },{ "name": "y1Count", "type": "u32", "value": "numel(shapes.y1)" },{ "name": "y2Count", "type": "u32", "value": "numel(shapes.y2)" },{ "name": "y3Count", "type": "u32", "value": "numel(shapes.y3)" }]}],"dispatch": {"x": "min(ceilDiv((max(max(max(numel(shapes.y0), numel(shapes.y1)), numel(shapes.y2)), numel(shapes.y3))), (tunables.WORKGROUP_SIZE)), 65535)","y": "ceilDiv(ceilDiv((max(max(max(numel(shapes.y0), numel(shapes.y1)), numel(shapes.y2)), numel(shapes.y3))), (tunables.WORKGROUP_SIZE)), 65535)","z": 1}}]},{"id": "six_outputs","priority": 40,"when": ["sixOutputContract"],"passes": [{"id": "main","name": "SplitToSequence6","shader": "split-to-sequence.wgsl.jinja","derive": {"inputShape": "shapes.input","rank": "ranks.input","axisSpec": "attrs.axis if attrs.axis >= 0 else attrs.axis + ranks.input","squeeze": "ranks.y0 < ranks.input","numOutputs": "6","outShapes": ["shapes.y0", "shapes.y1", "shapes.y2", "shapes.y3", "shapes.y4", "shapes.y5"]},"bindings": ["input","y0","y1","y2","y3","y4","y5",{"name": "params","struct": [{ "name": "y0Count", "type": "u32", "value": "numel(shapes.y0)" },{ "name": "y1Count", "type": "u32", "value": "numel(shapes.y1)" },{ "name": "y2Count", "type": "u32", "value": "numel(shapes.y2)" },{ "name": "y3Count", "type": "u32", "value": "numel(shapes.y3)" },{ "name": "y4Count", "type": "u32", "value": "numel(shapes.y4)" },{ "name": "y5Count", "type": "u32", "value": "numel(shapes.y5)" }]}],"dispatch": {"x": "min(ceilDiv((max(max(max(max(max(numel(shapes.y0), numel(shapes.y1)), numel(shapes.y2)), numel(shapes.y3)), numel(shapes.y4)), numel(shapes.y5))), (tunables.WORKGROUP_SIZE)), 65535)","y": "ceilDiv(ceilDiv((max(max(max(max(max(numel(shapes.y0), numel(shapes.y1)), numel(shapes.y2)), numel(shapes.y3)), numel(shapes.y4)), numel(shapes.y5))), (tunables.WORKGROUP_SIZE)), 65535)","z": 1}}]}]}1{"domain":"ai.onnx","name":"SplitToSequence","conformance":"internal-lowering","sinceVersion":11,"inputs":{"input":{"dtype":"T"},"split":{"dtype":"I","optional":true}},"outputs":{"output_sequence":{"dtype":"T","rank":"ranks.input if present.split or attrs.keepdims == 1 else ranks.input - 1","variadic":{"min":1,"max":6,"count":"(dim(shapes.split, 0) if ranks.split == 1 else (ceilDiv(dim(shapes.input, attrs.axis if attrs.axis >= 0 else attrs.axis + ranks.input), values.split[0]) if values.split[0] > 0 else none)) if present.split else dim(shapes.input, attrs.axis if attrs.axis >= 0 else attrs.axis + ranks.input)"},"shape":"prefix(shapes.input, axis) + ([values.split[{index}]] if ranks.split == 1 else [min(values.split[0], dim(shapes.input, axis) - values.split[0] * {index})]) + suffix(shapes.input, axis + 1) if present.split else prefix(shapes.input, axis) + ([1] if attrs.keepdims == 1 else []) + suffix(shapes.input, axis + 1)"}},"attributes":{"axis":{"default":0},"keepdims":{"default":1}},"attributeConstraints":{"keepdims":{"values":[0,1]}},"typeConstraints":{"T":["float32","float16","uint32","int32","int16","uint8","int8","bool","int64"],"I":["int32","int64"]},"tunables":{"WORKGROUP_SIZE":{"default":256}},"derive":{"deviceWorkgroupCap":"min(device.limits.maxComputeInvocationsPerWorkgroup, device.limits.maxComputeWorkgroupSizeX)","axis":"attrs.axis if attrs.axis >= 0 else attrs.axis + ranks.input","workgroupSize":"min(tunables.WORKGROUP_SIZE, deviceWorkgroupCap)","outputCount":"1 + (1 if present.output_sequence1 else 0) + (1 if present.output_sequence2 else 0) + (1 if present.output_sequence3 else 0) + (1 if present.output_sequence4 else 0) + (1 if present.output_sequence5 else 0)","partRank":"ranks.input - 1 if not present.split and attrs.keepdims == 0 else ranks.input","partExtent":"[(dim(shapes.output_sequence0, axis) if ranks.output_sequence0 == ranks.input else 1), ((dim(shapes.output_sequence1, axis) if ranks.output_sequence1 == ranks.input else 1) if present.output_sequence1 else 0), ((dim(shapes.output_sequence2, axis) if ranks.output_sequence2 == ranks.input else 1) if present.output_sequence2 else 0), ((dim(shapes.output_sequence3, axis) if ranks.output_sequence3 == ranks.input else 1) if present.output_sequence3 else 0), ((dim(shapes.output_sequence4, axis) if ranks.output_sequence4 == ranks.input else 1) if present.output_sequence4 else 0), ((dim(shapes.output_sequence5, axis) if ranks.output_sequence5 == ranks.input else 1) if present.output_sequence5 else 0)]","baseContract":"ranks.input >= 1 and axis >= 0 and axis < ranks.input and (not present.split or ranks.split <= 1) and f16Ok(dtypes.T)","partsContract":"ranks.output_sequence0 == partRank and (not present.output_sequence1 or ranks.output_sequence1 == partRank) and (not present.output_sequence2 or present.output_sequence1 and ranks.output_sequence2 == partRank) and (not present.output_sequence3 or present.output_sequence2 and ranks.output_sequence3 == partRank) and (not present.output_sequence4 or present.output_sequence3 and ranks.output_sequence4 == partRank) and (not present.output_sequence5 or present.output_sequence4 and ranks.output_sequence5 == partRank) and partExtent[0] + partExtent[1] + partExtent[2] + partExtent[3] + partExtent[4] + partExtent[5] == dim(shapes.input, axis)"},"bindings":{"params_1":{"name":"params","when":"not present.output_sequence1","struct":[{"name":"y0Count","type":"u32","value":"numel(shapes.output_sequence0)"}]},"params_2":{"name":"params","when":"present.output_sequence1 and not present.output_sequence2","struct":[{"name":"y0Count","type":"u32","value":"numel(shapes.output_sequence0)"},{"name":"y1Count","type":"u32","value":"numel(shapes.output_sequence1)"}]},"params_3":{"name":"params","when":"present.output_sequence2 and not present.output_sequence3","struct":[{"name":"y0Count","type":"u32","value":"numel(shapes.output_sequence0)"},{"name":"y1Count","type":"u32","value":"numel(shapes.output_sequence1)"},{"name":"y2Count","type":"u32","value":"numel(shapes.output_sequence2)"}]},"params_4":{"name":"params","when":"present.output_sequence3 and not present.output_sequence4","struct":[{"name":"y0Count","type":"u32","value":"numel(shapes.output_sequence0)"},{"name":"y1Count","type":"u32","value":"numel(shapes.output_sequence1)"},{"name":"y2Count","type":"u32","value":"numel(shapes.output_sequence2)"},{"name":"y3Count","type":"u32","value":"numel(shapes.output_sequence3)"}]},"params_5":{"name":"params","when":"present.output_sequence4 and not present.output_sequence5","struct":[{"name":"y0Count","type":"u32","value":"numel(shapes.output_sequence0)"},{"name":"y1Count","type":"u32","value":"numel(shapes.output_sequence1)"},{"name":"y2Count","type":"u32","value":"numel(shapes.output_sequence2)"},{"name":"y3Count","type":"u32","value":"numel(shapes.output_sequence3)"},{"name":"y4Count","type":"u32","value":"numel(shapes.output_sequence4)"}]},"params_6":{"name":"params","when":"present.output_sequence5","struct":[{"name":"y0Count","type":"u32","value":"numel(shapes.output_sequence0)"},{"name":"y1Count","type":"u32","value":"numel(shapes.output_sequence1)"},{"name":"y2Count","type":"u32","value":"numel(shapes.output_sequence2)"},{"name":"y3Count","type":"u32","value":"numel(shapes.output_sequence3)"},{"name":"y4Count","type":"u32","value":"numel(shapes.output_sequence4)"},{"name":"y5Count","type":"u32","value":"numel(shapes.output_sequence5)"}]}},"variants":[{"id":"split_outputs","when":["baseContract","partsContract"],"passes":[{"id":"main","name":"SplitToSequence","shader":"datamove-split-n.wgsl.jinja","derive":{"inputShape":"shapes.input","rank":"ranks.input","axisSpec":"axis","outputs":"[ {\"name\": \"y0\", \"shape\": shapes.output_sequence0}, {\"name\": \"y1\", \"shape\": shapes.output_sequence1}, {\"name\": \"y2\", \"shape\": shapes.output_sequence2}, {\"name\": \"y3\", \"shape\": shapes.output_sequence3}, {\"name\": \"y4\", \"shape\": shapes.output_sequence4}, {\"name\": \"y5\", \"shape\": shapes.output_sequence5} ][:outputCount]"},"bindings":["input",{"arg":"output_sequence0","name":"y0"},{"arg":"output_sequence1","name":"y1","when":"present.output_sequence1"},{"arg":"output_sequence2","name":"y2","when":"present.output_sequence2"},{"arg":"output_sequence3","name":"y3","when":"present.output_sequence3"},{"arg":"output_sequence4","name":"y4","when":"present.output_sequence4"},{"arg":"output_sequence5","name":"y5","when":"present.output_sequence5"},"params_1","params_2","params_3","params_4","params_5","params_6"],"dispatch":{"x":"min(ceilDiv((max(numel(shapes.output_sequence0), numel(shapes.output_sequence1) if present.output_sequence1 else 0, numel(shapes.output_sequence2) if present.output_sequence2 else 0, numel(shapes.output_sequence3) if present.output_sequence3 else 0, numel(shapes.output_sequence4) if present.output_sequence4 else 0, numel(shapes.output_sequence5) if present.output_sequence5 else 0)), (workgroupSize)), 65535)","y":"ceilDiv(ceilDiv((max(numel(shapes.output_sequence0), numel(shapes.output_sequence1) if present.output_sequence1 else 0, numel(shapes.output_sequence2) if present.output_sequence2 else 0, numel(shapes.output_sequence3) if present.output_sequence3 else 0, numel(shapes.output_sequence4) if present.output_sequence4 else 0, numel(shapes.output_sequence5) if present.output_sequence5 else 0)), (workgroupSize)), 65535)","z":1}}]}]}
1234567891011121314151617181920212223242526{"name": "ai.onnx.SplitToSequence","id": "_ai_onnx_splittosequence_webgpu_e9c235d","version": 1,"license": "Apache-2.0","backend": { "type": "webgpu" },"digest": {"algorithm": "sha256","files": {"bench.json": "Zs84ZKi7bfjFdmtbBi7218N/ixgvCEbOJMXn6YS5yn4=","manifest.json": "KLNBWHNVH08iKjw2HfJ33n1lHvbg3fmdzBcp6ioyvgk=","split-to-sequence.wgsl.jinja": "GMGhxy1517EY/lb9BHhTdlhsu6/jinINkwFH9LLx0rE=","test.json": "FAy7gFEfxoFsB44fhBjHbN4cWZYYHKlVqz09kYcJMr0="}},"provenance": { "kernel": { "sha": "6fdf6301e2bbcc2f03bf1eaf493b7ad55ef33afc", "dirty": false } },"webgpu": {"manifestSpec": "2.1","variants": {"two_outputs": ["split-to-sequence.wgsl.jinja"],"three_outputs": ["split-to-sequence.wgsl.jinja"],"four_outputs": ["split-to-sequence.wgsl.jinja"],"six_outputs": ["split-to-sequence.wgsl.jinja"]}}}1{"name":"ai.onnx.SplitToSequence","id":"_ai_onnx_splittosequence_webgpu_8571731","version":1,"license":"Apache-2.0","backend":{"type":"webgpu"},"digest":{"algorithm":"sha256","files":{"bench.json":"Rf6FsYnVFOlpl/cB+ruRleidXOeFhzXeJeGav6iJ0QI=","datamove-split-n.wgsl.jinja":"PKTmzDa9OB1Xl8G1cJ7VYDjuKFzmxyvZ1UO9SVTC0Qg=","manifest.json":"9yreQDtXI/3+NrIlK7e4HjE0byTxadmixl5lipErw6k=","test.json":"BZYIMNWwjJywuEe7KLkyC2IeUCcqUSBZvsYtWCLyXmo="}},"provenance":{"kernel":{"sha":"4385228f788ddaa1bd7aec6a80a20f3ddffd8011","dirty":false}},"webgpu":{"manifestSpec":"2.2"}}
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162{% macro flat_index_2d(workgroupSize, name="i", bound="params.count", guardInline=false) %}{% set wgTerm = workgroupSize ~ "u" if workgroupSize is number else workgroupSize %} // 2D-folded flat index: gid.y carries the high bits past the dispatch's // per-axis workgroup fold width. let {{ name }} = gid.x + gid.y * {{ DISPATCH_FOLD_WIDTH }}u * {{ wgTerm }};{% endmacro %}{{ env.wgsl.resourceDeclarations }}
// This internal lowering moves contiguous slices along the split axis into// a fixed set of output tensors. For size-one slices with// keepdims=0, each output drops the axis dimension. The copy reconstructs the// full input coordinate by reinserting that axis position.{% set R = rank %}{% set ax = axisSpec %}{% set acc = namespace(offset=0) %}{% for k in range(numOutputs) %}{% set oShape = outShapes[k] %}fn input_offset_y{{ k }}(out_index: u32) -> u32 { var rem = out_index; var offset = 0u;{% if squeeze %}{% for d in range(R - 1) %}{% set out_stride = namespace(value=1) %}{% for j in range(d + 1, R - 1) %}{% set out_stride.value = out_stride.value * oShape[j] %}{% endfor %}{% set in_dim = d if d < ax else d + 1 %}{% set in_stride = namespace(value=1) %}{% for j in range(in_dim + 1, R) %}{% set in_stride.value = in_stride.value * inputShape[j] %}{% endfor %} let c{{ d }} = rem / {{ out_stride.value if out_stride.value > 0 else 1 }}u; rem = rem % {{ out_stride.value if out_stride.value > 0 else 1 }}u; offset = offset + c{{ d }} * {{ in_stride.value }}u;{% endfor %}{% set axis_stride = namespace(value=1) %}{% for j in range(ax + 1, R) %}{% set axis_stride.value = axis_stride.value * inputShape[j] %}{% endfor %} offset = offset + {{ acc.offset }}u * {{ axis_stride.value }}u;{% set acc.offset = acc.offset + 1 %}{% else %}{% for d in range(R) %}{% set out_stride = namespace(value=1) %}{% for j in range(d + 1, R) %}{% set out_stride.value = out_stride.value * oShape[j] %}{% endfor %}{% set in_stride = namespace(value=1) %}{% for j in range(d + 1, R) %}{% set in_stride.value = in_stride.value * inputShape[j] %}{% endfor %} var c{{ d }} = rem / {{ out_stride.value if out_stride.value > 0 else 1 }}u; rem = rem % {{ out_stride.value if out_stride.value > 0 else 1 }}u;{% if d == ax %} c{{ d }} = c{{ d }} + {{ acc.offset }}u;{% endif %} offset = offset + c{{ d }} * {{ in_stride.value }}u;{% endfor %}{% set acc.offset = acc.offset + oShape[ax] %}{% endif %} return offset;}{% endfor %}
@compute @workgroup_size({{ tunables.WORKGROUP_SIZE }})fn main(@builtin(global_invocation_id) gid: vec3<u32>) {{{ flat_index_2d(tunables.WORKGROUP_SIZE, "i", "") }}{% for k in range(numOutputs) %} if (i < params.y{{ k }}Count) { y{{ k }}[i] = input[input_offset_y{{ k }}(i)]; }{% endfor %}}12 unmodified lines13141516171819202122235 unmodified lines2930313233343536373839405 unmodified lines46474849505152535455565 unmodified lines62636465666768697071727 unmodified lines8081828384858687887 unmodified lines969798991001011021031045 unmodified lines1101111121131141151161171181191205 unmodified lines1261271281291301311321331341351361371381391401411421431441 unmodified line1461471481491501511521531541551561571581591601611621631 unmodified line1651661671681691701711721731741758 unmodified lines1841851861871881891901911921931948 unmodified lines20320420520620720820921021121221321412 unmodified lines2272282292302312322332342352362372389 unmodified lines24824925025125225325425525625725825914 unmodified lines27427527627727827928028111 unmodified lines2932942952962972982993001 unmodified line3023033043053063073084 unmodified lines3133143153163173183193203213223233243253263273283293303313323333343353363376 unmodified lines3443453463473483493503513523533543553563573583593601 unmodified line3623633643653663673687 unmodified lines37637737837938038138238338438512 unmodified lines3983994004014024034044054064074084094104114121 unmodified line4144154164174184194204 unmodified lines4254264274284294304314324334344354361 unmodified line4384394404414424434444 unmodified lines4494504514524534544554564574584591 unmodified line4614624634644654664674684694704714724 unmodified lines4774784794804814824834844854864874 unmodified lines49249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353410 unmodified lines5455465475485495505515525538 unmodified lines56256356456556656756856957057157257310 unmodified lines5845855865875885895905915925 unmodified lines5985996006016026036046056066076085 unmodified lines6146156166176186196206216226236245 unmodified lines63063163263363463563663763863964012 unmodified lines"shape": [16777217, 1],"data": { "kind": "linspace", "start": 0.0, "end": 1.0 }},"split": { "dtype": "uint32", "shape": [2], "data": { "kind": "values", "values": [16777216, 1] } }},"outputs": {"y0": { "dtype": "float32", "shape": [16777216, 1], "tolerance": 0 },"y1": { "dtype": "float32", "shape": [1, 1], "tolerance": 0 }}},{5 unmodified lines"shape": [6, 2],"data": { "kind": "fillFloat32", "sinStep": 0.21, "cosStep": 0.37 }},"split": { "dtype": "uint32", "shape": [3], "data": { "kind": "values", "values": [2, 2, 2] } }},"outputs": {"y0": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 },"y1": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 },"y2": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 }}},{5 unmodified lines"shape": [5, 3],"data": { "kind": "fillFloat32", "sinStep": 0.11, "cosStep": 0.29 }},"split": { "dtype": "uint32", "shape": [2], "data": { "kind": "values", "values": [2, 3] } }},"outputs": {"y0": { "dtype": "float32", "shape": [2, 3], "tolerance": 0.000001 },"y1": { "dtype": "float32", "shape": [3, 3], "tolerance": 0.000001 }}},{5 unmodified lines"shape": [4, 2],"data": { "kind": "fillFloat32", "sinStep": 0.33, "cosStep": 0.17 }},"split": { "dtype": "uint32", "shape": [], "data": { "kind": "values", "values": [3] } }},"outputs": {"y0": { "dtype": "float32", "shape": [3, 2], "tolerance": 0.000001 },"y1": { "dtype": "float32", "shape": [1, 2], "tolerance": 0.000001 }}},{7 unmodified lines}},"outputs": {"y0": { "dtype": "float32", "shape": [1, 2], "tolerance": 0.000001 },"y1": { "dtype": "float32", "shape": [1, 2], "tolerance": 0.000001 },"y2": { "dtype": "float32", "shape": [1, 2], "tolerance": 0.000001 }}},{7 unmodified lines}},"outputs": {"y0": { "dtype": "float32", "shape": [2], "tolerance": 0.000001 },"y1": { "dtype": "float32", "shape": [2], "tolerance": 0.000001 },"y2": { "dtype": "float32", "shape": [2], "tolerance": 0.000001 }}},{5 unmodified lines"shape": [2, 4],"data": { "kind": "fillFloat32", "sinStep": 0.19, "cosStep": 0.31 }},"split": { "dtype": "uint32", "shape": [2], "data": { "kind": "values", "values": [2, 2] } }},"outputs": {"y0": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 },"y1": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 }}},{5 unmodified lines"shape": [6, 2],"data": { "kind": "fillFloat32", "sinStep": 0.21, "cosStep": 0.37 }},"split": { "dtype": "uint32", "shape": [3], "data": { "kind": "values", "values": [2, 2, 2] } }},"outputs": {"y0": { "dtype": "float16", "shape": [2, 2], "tolerance": 0.002 },"y1": { "dtype": "float16", "shape": [2, 2], "tolerance": 0.002 },"y2": { "dtype": "float16", "shape": [2, 2], "tolerance": 0.002 }}},{"name": "ort_default_axis0_equal_split_float","provenance": {"source": "onnxruntime/test/providers/cpu/sequence/sequence_ops_test.cc","test": "SequenceOpsTest.SplitToSequence_DefaultAxis0EqualSplitFloat"},"inputs": {"input": {1 unmodified line"shape": [4, 2],"data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0] }},"split": { "dtype": "uint32", "shape": [1, 2], "data": { "kind": "values", "values": [2, 2] } }},"outputs": {"y0": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 },"y1": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 }}},{"name": "ort_default_axis0_equal_split_float16","provenance": {"source": "onnxruntime/test/providers/cpu/sequence/sequence_ops_test.cc","test": "SequenceOpsTest.SplitToSequence_DefaultAxis0EqualSplitMLFloat16"},"inputs": {"input": {1 unmodified line"shape": [4, 2],"data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0] }},"split": { "dtype": "uint32", "shape": [1, 2], "data": { "kind": "values", "values": [2, 2] } }},"outputs": {"y0": { "dtype": "float16", "shape": [2, 2], "tolerance": 0.002 },"y1": { "dtype": "float16", "shape": [2, 2], "tolerance": 0.002 }}},{8 unmodified lines"shape": [4, 2],"data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0] }},"split": { "dtype": "uint32", "shape": [], "data": { "kind": "values", "values": [2] } }},"outputs": {"y0": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 },"y1": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 }}},{8 unmodified lines"shape": [5, 2],"data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0] }},"split": { "dtype": "uint32", "shape": [], "data": { "kind": "values", "values": [2] } }},"outputs": {"y0": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 },"y1": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 },"y2": { "dtype": "float32", "shape": [1, 2], "tolerance": 0.000001 }}},{12 unmodified lines"values": { "$ref": "#/fixtureArrays/ort_positive_axis_scalar_split_rank3_input_input" }}},"split": { "dtype": "uint32", "shape": [], "data": { "kind": "values", "values": [2] } }},"outputs": {"y0": { "dtype": "float32", "shape": [2, 2, 2], "tolerance": 0.000001 },"y1": { "dtype": "float32", "shape": [2, 2, 2], "tolerance": 0.000001 },"y2": { "dtype": "float32", "shape": [2, 2, 2], "tolerance": 0.000001 }}},{9 unmodified lines"shape": [2, 5],"data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0] }},"split": { "dtype": "uint32", "shape": [], "data": { "kind": "values", "values": [2] } }},"outputs": {"y0": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 },"y1": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 },"y2": { "dtype": "float32", "shape": [2, 1], "tolerance": 0.000001 }}},{14 unmodified lines}},"outputs": {"y0": { "dtype": "float32", "shape": [3, 4], "tolerance": 0.000001 },"y1": { "dtype": "float32", "shape": [3, 4], "tolerance": 0.000001 }}},{11 unmodified lines}},"outputs": {"y0": { "dtype": "float32", "shape": [3], "tolerance": 0.000001 },"y1": { "dtype": "float32", "shape": [3], "tolerance": 0.000001 }}},{1 unmodified line"provenance": {"source": "onnxruntime/test/providers/cpu/sequence/sequence_ops_test.cc","test": "SequenceOpsTest.SplitToSequence_Axis0DefaultSplitFloatSetAxisExplicitly","notes": "The package's fixed-output lowering maps the four sequence elements to tensor outputs y0 through y3."},"attrs": { "axis": 0 },"inputs": {4 unmodified lines}},"outputs": {"y0": {"dtype": "float32","shape": [1, 2],"tolerance": 0.000001,"data": { "kind": "values", "values": [1.0, 2.0] }},"y1": {"dtype": "float32","shape": [1, 2],"tolerance": 0.000001,"data": { "kind": "values", "values": [3.0, 4.0] }},"y2": {"dtype": "float32","shape": [1, 2],"tolerance": 0.000001,"data": { "kind": "values", "values": [5.0, 6.0] }},"y3": {"dtype": "float32","shape": [1, 2],"tolerance": 0.000001,6 unmodified lines"provenance": {"source": "onnxruntime/test/providers/cpu/sequence/sequence_ops_test.cc","test": "SequenceOpsTest.SplitToSequence_BoolSplit","notes": "The package's fixed-output lowering maps the four boolean sequence elements to tensor outputs y0 through y3."},"attrs": { "axis": 0 },"inputs": {"input": { "dtype": "bool", "shape": [4, 2], "data": { "kind": "values", "values": [1, 1, 1, 1, 0, 0, 0, 0] } }},"outputs": {"y0": { "dtype": "bool", "shape": [1, 2], "tolerance": 0, "data": { "kind": "values", "values": [1, 1] } },"y1": { "dtype": "bool", "shape": [1, 2], "tolerance": 0, "data": { "kind": "values", "values": [1, 1] } },"y2": { "dtype": "bool", "shape": [1, 2], "tolerance": 0, "data": { "kind": "values", "values": [0, 0] } },"y3": { "dtype": "bool", "shape": [1, 2], "tolerance": 0, "data": { "kind": "values", "values": [0, 0] } }}},{1 unmodified line"provenance": {"source": "onnxruntime/test/providers/cpu/sequence/sequence_ops_test.cc","test": "SequenceOpsTest.SplitToSequence_PositiveAxisDontKeepDims","notes": "With keepdims=0, splitting axis 2 removes that axis from each chunk; the fixed-output lowering maps the four chunks to y0 through y3."},"attrs": { "axis": 2, "keepdims": 0 },"inputs": {7 unmodified lines}},"outputs": {"y0": { "dtype": "float32", "shape": [2, 3], "tolerance": 0.000001 },"y1": { "dtype": "float32", "shape": [2, 3], "tolerance": 0.000001 },"y2": { "dtype": "float32", "shape": [2, 3], "tolerance": 0.000001 },"y3": { "dtype": "float32", "shape": [2, 3], "tolerance": 0.000001 }}},{12 unmodified lines"values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0, 25.0, 26.0, 27.0, 28.0, 29.0, 30.0, 31.0, 32.0, 33.0, 34.0]}},"split": { "dtype": "uint32", "shape": [], "data": { "kind": "values", "values": [3] } }},"outputs": {"y0": { "dtype": "float32", "shape": [3, 2], "tolerance": 0.000001 },"y1": { "dtype": "float32", "shape": [3, 2], "tolerance": 0.000001 },"y2": { "dtype": "float32", "shape": [3, 2], "tolerance": 0.000001 },"y3": { "dtype": "float32", "shape": [3, 2], "tolerance": 0.000001 },"y4": { "dtype": "float32", "shape": [3, 2], "tolerance": 0.000001 },"y5": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 }}},{1 unmodified line"attrs": { "axis": 1 },"provenance": {"source": "cmake/external/onnx/onnx/backend/test/data/node/test_split_to_sequence_1","notes": "Official sequence output is represented as fixed tensor outputs y0/y1/y2; int64 split scalar is stored as uint32."},"inputs": {"input": {4 unmodified lines"values": { "$ref": "#/fixtureArrays/onnx_backend_split_scalar_axis1_three_outputs_input_input" }}},"split": { "dtype": "uint32", "shape": [], "data": { "kind": "values", "values": [2] } }},"outputs": {"y0": { "dtype": "float32", "shape": [3, 2], "tolerance": 0.000001 },"y1": { "dtype": "float32", "shape": [3, 2], "tolerance": 0.000001 },"y2": { "dtype": "float32", "shape": [3, 2], "tolerance": 0.000001 }}},{1 unmodified line"attrs": { "axis": 0 },"provenance": {"source": "cmake/external/onnx/onnx/backend/test/data/node/test_split_to_sequence_2","notes": "Official sequence output is represented as fixed tensor outputs y0/y1; int64 split vector is stored as uint32."},"inputs": {"input": {4 unmodified lines"values": { "$ref": "#/fixtureArrays/onnx_backend_split_scalar_axis1_three_outputs_input_input" }}},"split": { "dtype": "uint32", "shape": [2], "data": { "kind": "values", "values": [1, 2] } }},"outputs": {"y0": { "dtype": "float32", "shape": [1, 6], "tolerance": 0.000001 },"y1": { "dtype": "float32", "shape": [2, 6], "tolerance": 0.000001 }}},{1 unmodified line"attrs": { "axis": 0 },"inputs": {"input": { "dtype": "float32", "shape": [6, 0], "data": { "kind": "values", "values": [] } },"split": { "dtype": "uint32", "shape": [3], "data": { "kind": "values", "values": [2, 2, 2] } }},"outputs": {"y0": { "dtype": "float32", "shape": [2, 0], "tolerance": 0 },"y1": { "dtype": "float32", "shape": [2, 0], "tolerance": 0 },"y2": { "dtype": "float32", "shape": [2, 0], "tolerance": 0 }}},{4 unmodified lines"attrs": { "axis": 0 },"inputs": {"input": { "dtype": "float32", "shape": [4, 0], "data": { "kind": "values", "values": [] } },"split": { "dtype": "uint32", "shape": [2], "data": { "kind": "values", "values": [2, 2] } }},"outputs": {"y0": { "dtype": "float32", "shape": [2, 0], "tolerance": 0 },"y1": { "dtype": "float32", "shape": [2, 0], "tolerance": 0 }}},{4 unmodified lines"attrs": { "axis": 0, "keepdims": 0 },"inputs": { "input": { "dtype": "float32", "shape": [2, 3, 0], "data": { "kind": "values", "values": [] } } },"outputs": {"y0": { "dtype": "float32", "shape": [3, 0], "tolerance": 0 },"y1": { "dtype": "float32", "shape": [3, 0], "tolerance": 0 }}},{"name": "ort_caseB_empty","attrs": { "axis": 0 },"inputs": {"input": {"dtype": "float32","shape": [6, 2],"data": {"kind": "values","values": [0.15191493928432465, 0.14055313169956207, 0.12134978920221329, 0.10187792778015137, 0.08903708308935165, 0.08793208003044128, 0.1010342463850975, 0.1277448534965515, 0.1644245833158493, 0.20488715171813965, 0.24129025638103485, 0.2653009593486786]}},"split": { "dtype": "uint32", "shape": [0], "data": { "kind": "values", "values": [] } }},"outputs": {"y0": {"dtype": "float32","shape": [1, 2],"data": { "kind": "values", "values": [0.15191493928432465, 0.14055313169956207] },"tolerance": 0.001},"y1": {"dtype": "float32","shape": [1, 2],"data": { "kind": "values", "values": [0.12134978920221329, 0.10187792778015137] },"tolerance": 0.001},"y2": {"dtype": "float32","shape": [1, 2],"data": { "kind": "values", "values": [0.08903708308935165, 0.08793208003044128] },"tolerance": 0.001}}},{10 unmodified lines}},"outputs": {"y0": { "dtype": "float32", "shape": [2, 3], "tolerance": 0 },"y1": { "dtype": "float32", "shape": [2, 3], "tolerance": 0 },"y2": { "dtype": "float32", "shape": [2, 3], "tolerance": 0 }}},{8 unmodified lines"values": { "$ref": "#/fixtureArrays/ort_positive_axis_scalar_split_rank3_input_input" }}},"split": { "dtype": "uint32", "shape": [], "data": { "kind": "values", "values": [2] } }},"outputs": {"y0": { "dtype": "float32", "shape": [2, 2, 2], "tolerance": 0 },"y1": { "dtype": "float32", "shape": [2, 2, 2], "tolerance": 0 },"y2": { "dtype": "float32", "shape": [2, 2, 2], "tolerance": 0 }}},{10 unmodified lines}},"outputs": {"y0": { "dtype": "float32", "shape": [2, 4], "tolerance": 0 },"y1": { "dtype": "float32", "shape": [2, 4], "tolerance": 0 },"y2": { "dtype": "float32", "shape": [2, 4], "tolerance": 0 }}},{5 unmodified lines"shape": [2, 2, 4, 2, 2, 3],"data": { "kind": "linspace", "start": 0.0, "end": 1.0 }},"split": { "dtype": "uint32", "shape": [2], "data": { "kind": "values", "values": [3, 1] } }},"outputs": {"y0": { "dtype": "float32", "shape": [2, 2, 3, 2, 2, 3], "tolerance": 0 },"y1": { "dtype": "float32", "shape": [2, 2, 1, 2, 2, 3], "tolerance": 0 }}},{5 unmodified lines"shape": [1, 1, 1, 1, 1, 2, 3],"data": { "kind": "linspace", "start": 0.0, "end": 5.0 }},"split": { "dtype": "uint32", "shape": [2], "data": { "kind": "values", "values": [1, 1] } }},"outputs": {"y0": { "dtype": "float32", "shape": [1, 1, 1, 1, 1, 1, 3], "tolerance": 0 },"y1": { "dtype": "float32", "shape": [1, 1, 1, 1, 1, 1, 3], "tolerance": 0 }}},{5 unmodified lines"shape": [1, 1, 1, 1, 1, 1, 2, 3],"data": { "kind": "linspace", "start": 1.0, "end": 6.0 }},"split": { "dtype": "uint32", "shape": [2], "data": { "kind": "values", "values": [1, 1] } }},"outputs": {"y0": { "dtype": "float32", "shape": [1, 1, 1, 1, 1, 1, 1, 3], "tolerance": 0 },"y1": { "dtype": "float32", "shape": [1, 1, 1, 1, 1, 1, 1, 3], "tolerance": 0 }}}]12 unmodified lines13141516171819202122235 unmodified lines2930313233343536373839405 unmodified lines46474849505152535455565 unmodified lines62636465666768697071727 unmodified lines8081828384858687887 unmodified lines969798991001011021031045 unmodified lines1101111121131141151161171181191205 unmodified lines1261271281291301311321331341351361371381391401411421431441451 unmodified line1471481491501511521531541551561571581591601611621631641651 unmodified line1671681691701711721731741751761778 unmodified lines1861871881891901911921931941951968 unmodified lines20520620720820921021121221321421521612 unmodified lines2292302312322332342352362372382392409 unmodified lines25025125225325425525625725825926026114 unmodified lines27627727827928028128228311 unmodified lines2952962972982993003013021 unmodified line3043053063073083093104 unmodified lines3153163173183193203213223233243253263273283293303313323333343353363373383396 unmodified lines3463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813821 unmodified line3843853863873883893907 unmodified lines39839940040140240340440540640712 unmodified lines4204214224234244254264274284294304314324334341 unmodified line4364374384394404414424 unmodified lines4474484494504514524534544554564574581 unmodified line4604614624634644654664 unmodified lines4714724734744754764774784794804811 unmodified line4834844854864874884894904914924934944 unmodified lines4995005015025035045055065075085094 unmodified lines51451551651751851952052110 unmodified lines5325335345355365375385395408 unmodified lines54955055155255355455555655755855956010 unmodified lines5715725735745755765775785795 unmodified lines5855865875885895905915925935945955 unmodified lines6016026036046056066076086096106115 unmodified lines61761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481512 unmodified lines"shape": [16777217, 1],"data": { "kind": "linspace", "start": 0.0, "end": 1.0 }},"split": { "dtype": "int64", "shape": [2], "data": { "kind": "values", "values": [16777216, 1] } }},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [16777216, 1], "tolerance": 0 },"output_sequence1": { "dtype": "float32", "shape": [1, 1], "tolerance": 0 }}},{5 unmodified lines"shape": [6, 2],"data": { "kind": "fillFloat32", "sinStep": 0.21, "cosStep": 0.37 }},"split": { "dtype": "int64", "shape": [3], "data": { "kind": "values", "values": [2, 2, 2] } }},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 },"output_sequence1": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 },"output_sequence2": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 }}},{5 unmodified lines"shape": [5, 3],"data": { "kind": "fillFloat32", "sinStep": 0.11, "cosStep": 0.29 }},"split": { "dtype": "int64", "shape": [2], "data": { "kind": "values", "values": [2, 3] } }},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [2, 3], "tolerance": 0.000001 },"output_sequence1": { "dtype": "float32", "shape": [3, 3], "tolerance": 0.000001 }}},{5 unmodified lines"shape": [4, 2],"data": { "kind": "fillFloat32", "sinStep": 0.33, "cosStep": 0.17 }},"split": { "dtype": "int64", "shape": [], "data": { "kind": "values", "values": [3] } }},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [3, 2], "tolerance": 0.000001 },"output_sequence1": { "dtype": "float32", "shape": [1, 2], "tolerance": 0.000001 }}},{7 unmodified lines}},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [1, 2], "tolerance": 0.000001 },"output_sequence1": { "dtype": "float32", "shape": [1, 2], "tolerance": 0.000001 },"output_sequence2": { "dtype": "float32", "shape": [1, 2], "tolerance": 0.000001 }}},{7 unmodified lines}},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [2], "tolerance": 0.000001 },"output_sequence1": { "dtype": "float32", "shape": [2], "tolerance": 0.000001 },"output_sequence2": { "dtype": "float32", "shape": [2], "tolerance": 0.000001 }}},{5 unmodified lines"shape": [2, 4],"data": { "kind": "fillFloat32", "sinStep": 0.19, "cosStep": 0.31 }},"split": { "dtype": "int64", "shape": [2], "data": { "kind": "values", "values": [2, 2] } }},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 },"output_sequence1": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 }}},{5 unmodified lines"shape": [6, 2],"data": { "kind": "fillFloat32", "sinStep": 0.21, "cosStep": 0.37 }},"split": { "dtype": "int64", "shape": [3], "data": { "kind": "values", "values": [2, 2, 2] } }},"outputs": {"output_sequence0": { "dtype": "float16", "shape": [2, 2], "tolerance": 0.002 },"output_sequence1": { "dtype": "float16", "shape": [2, 2], "tolerance": 0.002 },"output_sequence2": { "dtype": "float16", "shape": [2, 2], "tolerance": 0.002 }}},{"name": "ort_default_axis0_equal_split_float","provenance": {"source": "onnxruntime/test/providers/cpu/sequence/sequence_ops_test.cc","test": "SequenceOpsTest.SplitToSequence_DefaultAxis0EqualSplitFloat","notes": "ONNX takes a scalar or 1-D split; the ORT test passes it with shape {1, 2}, so this case passes the 1-D [2, 2]."},"inputs": {"input": {1 unmodified line"shape": [4, 2],"data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0] }},"split": { "dtype": "int64", "shape": [2], "data": { "kind": "values", "values": [2, 2] } }},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 },"output_sequence1": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 }}},{"name": "ort_default_axis0_equal_split_float16","provenance": {"source": "onnxruntime/test/providers/cpu/sequence/sequence_ops_test.cc","test": "SequenceOpsTest.SplitToSequence_DefaultAxis0EqualSplitMLFloat16","notes": "ONNX takes a scalar or 1-D split; the ORT test passes it with shape {1, 2}, so this case passes the 1-D [2, 2]."},"inputs": {"input": {1 unmodified line"shape": [4, 2],"data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0] }},"split": { "dtype": "int64", "shape": [2], "data": { "kind": "values", "values": [2, 2] } }},"outputs": {"output_sequence0": { "dtype": "float16", "shape": [2, 2], "tolerance": 0.002 },"output_sequence1": { "dtype": "float16", "shape": [2, 2], "tolerance": 0.002 }}},{8 unmodified lines"shape": [4, 2],"data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0] }},"split": { "dtype": "int64", "shape": [], "data": { "kind": "values", "values": [2] } }},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 },"output_sequence1": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 }}},{8 unmodified lines"shape": [5, 2],"data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0] }},"split": { "dtype": "int64", "shape": [], "data": { "kind": "values", "values": [2] } }},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 },"output_sequence1": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 },"output_sequence2": { "dtype": "float32", "shape": [1, 2], "tolerance": 0.000001 }}},{12 unmodified lines"values": { "$ref": "#/fixtureArrays/ort_positive_axis_scalar_split_rank3_input_input" }}},"split": { "dtype": "int64", "shape": [], "data": { "kind": "values", "values": [2] } }},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [2, 2, 2], "tolerance": 0.000001 },"output_sequence1": { "dtype": "float32", "shape": [2, 2, 2], "tolerance": 0.000001 },"output_sequence2": { "dtype": "float32", "shape": [2, 2, 2], "tolerance": 0.000001 }}},{9 unmodified lines"shape": [2, 5],"data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0] }},"split": { "dtype": "int64", "shape": [], "data": { "kind": "values", "values": [2] } }},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 },"output_sequence1": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 },"output_sequence2": { "dtype": "float32", "shape": [2, 1], "tolerance": 0.000001 }}},{14 unmodified lines}},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [3, 4], "tolerance": 0.000001 },"output_sequence1": { "dtype": "float32", "shape": [3, 4], "tolerance": 0.000001 }}},{11 unmodified lines}},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [3], "tolerance": 0.000001 },"output_sequence1": { "dtype": "float32", "shape": [3], "tolerance": 0.000001 }}},{1 unmodified line"provenance": {"source": "onnxruntime/test/providers/cpu/sequence/sequence_ops_test.cc","test": "SequenceOpsTest.SplitToSequence_Axis0DefaultSplitFloatSetAxisExplicitly","notes": "The four sequence elements are returned as `output_sequence` elements 0 through 3."},"attrs": { "axis": 0 },"inputs": {4 unmodified lines}},"outputs": {"output_sequence0": {"dtype": "float32","shape": [1, 2],"tolerance": 0.000001,"data": { "kind": "values", "values": [1.0, 2.0] }},"output_sequence1": {"dtype": "float32","shape": [1, 2],"tolerance": 0.000001,"data": { "kind": "values", "values": [3.0, 4.0] }},"output_sequence2": {"dtype": "float32","shape": [1, 2],"tolerance": 0.000001,"data": { "kind": "values", "values": [5.0, 6.0] }},"output_sequence3": {"dtype": "float32","shape": [1, 2],"tolerance": 0.000001,6 unmodified lines"provenance": {"source": "onnxruntime/test/providers/cpu/sequence/sequence_ops_test.cc","test": "SequenceOpsTest.SplitToSequence_BoolSplit","notes": "The four boolean sequence elements are returned as `output_sequence` elements 0 through 3."},"attrs": { "axis": 0 },"inputs": {"input": { "dtype": "bool", "shape": [4, 2], "data": { "kind": "values", "values": [1, 1, 1, 1, 0, 0, 0, 0] } }},"outputs": {"output_sequence0": {"dtype": "bool","shape": [1, 2],"tolerance": 0,"data": { "kind": "values", "values": [1, 1] }},"output_sequence1": {"dtype": "bool","shape": [1, 2],"tolerance": 0,"data": { "kind": "values", "values": [1, 1] }},"output_sequence2": {"dtype": "bool","shape": [1, 2],"tolerance": 0,"data": { "kind": "values", "values": [0, 0] }},"output_sequence3": {"dtype": "bool","shape": [1, 2],"tolerance": 0,"data": { "kind": "values", "values": [0, 0] }}}},{1 unmodified line"provenance": {"source": "onnxruntime/test/providers/cpu/sequence/sequence_ops_test.cc","test": "SequenceOpsTest.SplitToSequence_PositiveAxisDontKeepDims","notes": "With keepdims=0, splitting axis 2 removes that axis from each chunk and returns the four chunks as `output_sequence` elements 0 through 3."},"attrs": { "axis": 2, "keepdims": 0 },"inputs": {7 unmodified lines}},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [2, 3], "tolerance": 0.000001 },"output_sequence1": { "dtype": "float32", "shape": [2, 3], "tolerance": 0.000001 },"output_sequence2": { "dtype": "float32", "shape": [2, 3], "tolerance": 0.000001 },"output_sequence3": { "dtype": "float32", "shape": [2, 3], "tolerance": 0.000001 }}},{12 unmodified lines"values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0, 25.0, 26.0, 27.0, 28.0, 29.0, 30.0, 31.0, 32.0, 33.0, 34.0]}},"split": { "dtype": "int64", "shape": [], "data": { "kind": "values", "values": [3] } }},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [3, 2], "tolerance": 0.000001 },"output_sequence1": { "dtype": "float32", "shape": [3, 2], "tolerance": 0.000001 },"output_sequence2": { "dtype": "float32", "shape": [3, 2], "tolerance": 0.000001 },"output_sequence3": { "dtype": "float32", "shape": [3, 2], "tolerance": 0.000001 },"output_sequence4": { "dtype": "float32", "shape": [3, 2], "tolerance": 0.000001 },"output_sequence5": { "dtype": "float32", "shape": [2, 2], "tolerance": 0.000001 }}},{1 unmodified line"attrs": { "axis": 1 },"provenance": {"source": "cmake/external/onnx/onnx/backend/test/data/node/test_split_to_sequence_1","notes": "The ONNX sequence output is returned as three `output_sequence` tensors; the int64 split is a scalar."},"inputs": {"input": {4 unmodified lines"values": { "$ref": "#/fixtureArrays/onnx_backend_split_scalar_axis1_three_outputs_input_input" }}},"split": { "dtype": "int64", "shape": [], "data": { "kind": "values", "values": [2] } }},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [3, 2], "tolerance": 0.000001 },"output_sequence1": { "dtype": "float32", "shape": [3, 2], "tolerance": 0.000001 },"output_sequence2": { "dtype": "float32", "shape": [3, 2], "tolerance": 0.000001 }}},{1 unmodified line"attrs": { "axis": 0 },"provenance": {"source": "cmake/external/onnx/onnx/backend/test/data/node/test_split_to_sequence_2","notes": "The ONNX sequence output is returned as two `output_sequence` tensors; the int64 split is the 1-D vector [1, 2]."},"inputs": {"input": {4 unmodified lines"values": { "$ref": "#/fixtureArrays/onnx_backend_split_scalar_axis1_three_outputs_input_input" }}},"split": { "dtype": "int64", "shape": [2], "data": { "kind": "values", "values": [1, 2] } }},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [1, 6], "tolerance": 0.000001 },"output_sequence1": { "dtype": "float32", "shape": [2, 6], "tolerance": 0.000001 }}},{1 unmodified line"attrs": { "axis": 0 },"inputs": {"input": { "dtype": "float32", "shape": [6, 0], "data": { "kind": "values", "values": [] } },"split": { "dtype": "int64", "shape": [3], "data": { "kind": "values", "values": [2, 2, 2] } }},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [2, 0], "tolerance": 0 },"output_sequence1": { "dtype": "float32", "shape": [2, 0], "tolerance": 0 },"output_sequence2": { "dtype": "float32", "shape": [2, 0], "tolerance": 0 }}},{4 unmodified lines"attrs": { "axis": 0 },"inputs": {"input": { "dtype": "float32", "shape": [4, 0], "data": { "kind": "values", "values": [] } },"split": { "dtype": "int64", "shape": [2], "data": { "kind": "values", "values": [2, 2] } }},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [2, 0], "tolerance": 0 },"output_sequence1": { "dtype": "float32", "shape": [2, 0], "tolerance": 0 }}},{4 unmodified lines"attrs": { "axis": 0, "keepdims": 0 },"inputs": { "input": { "dtype": "float32", "shape": [2, 3, 0], "data": { "kind": "values", "values": [] } } },"outputs": {"output_sequence0": { "dtype": "float32", "shape": [3, 0], "tolerance": 0 },"output_sequence1": { "dtype": "float32", "shape": [3, 0], "tolerance": 0 }}},{10 unmodified lines}},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [2, 3], "tolerance": 0 },"output_sequence1": { "dtype": "float32", "shape": [2, 3], "tolerance": 0 },"output_sequence2": { "dtype": "float32", "shape": [2, 3], "tolerance": 0 }}},{8 unmodified lines"values": { "$ref": "#/fixtureArrays/ort_positive_axis_scalar_split_rank3_input_input" }}},"split": { "dtype": "int64", "shape": [], "data": { "kind": "values", "values": [2] } }},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [2, 2, 2], "tolerance": 0 },"output_sequence1": { "dtype": "float32", "shape": [2, 2, 2], "tolerance": 0 },"output_sequence2": { "dtype": "float32", "shape": [2, 2, 2], "tolerance": 0 }}},{10 unmodified lines}},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [2, 4], "tolerance": 0 },"output_sequence1": { "dtype": "float32", "shape": [2, 4], "tolerance": 0 },"output_sequence2": { "dtype": "float32", "shape": [2, 4], "tolerance": 0 }}},{5 unmodified lines"shape": [2, 2, 4, 2, 2, 3],"data": { "kind": "linspace", "start": 0.0, "end": 1.0 }},"split": { "dtype": "int64", "shape": [2], "data": { "kind": "values", "values": [3, 1] } }},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [2, 2, 3, 2, 2, 3], "tolerance": 0 },"output_sequence1": { "dtype": "float32", "shape": [2, 2, 1, 2, 2, 3], "tolerance": 0 }}},{5 unmodified lines"shape": [1, 1, 1, 1, 1, 2, 3],"data": { "kind": "linspace", "start": 0.0, "end": 5.0 }},"split": { "dtype": "int64", "shape": [2], "data": { "kind": "values", "values": [1, 1] } }},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [1, 1, 1, 1, 1, 1, 3], "tolerance": 0 },"output_sequence1": { "dtype": "float32", "shape": [1, 1, 1, 1, 1, 1, 3], "tolerance": 0 }}},{5 unmodified lines"shape": [1, 1, 1, 1, 1, 1, 2, 3],"data": { "kind": "linspace", "start": 1.0, "end": 6.0 }},"split": { "dtype": "int64", "shape": [2], "data": { "kind": "values", "values": [1, 1] } }},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [1, 1, 1, 1, 1, 1, 1, 3], "tolerance": 0 },"output_sequence1": { "dtype": "float32", "shape": [1, 1, 1, 1, 1, 1, 1, 3], "tolerance": 0 }}},{"name": "scalar_split_covers_axis_one_output_f32","attrs": { "axis": 0 },"inputs": {"input": {"dtype": "float32","shape": [5, 3],"data": { "kind": "fillFloat32", "sinStep": 0.21, "cosStep": 0.13 }},"split": { "dtype": "int64", "shape": [], "data": { "kind": "values", "values": [7] } }},"outputs": { "output_sequence0": { "dtype": "float32", "shape": [5, 3], "tolerance": 0.000001 } }},{"name": "no_split_five_outputs_f32","attrs": { "axis": 0 },"inputs": {"input": {"dtype": "float32","shape": [5, 2],"data": { "kind": "fillFloat32", "sinStep": 0.29, "cosStep": 0.11 }}},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [1, 2], "tolerance": 0.000001 },"output_sequence1": { "dtype": "float32", "shape": [1, 2], "tolerance": 0.000001 },"output_sequence2": { "dtype": "float32", "shape": [1, 2], "tolerance": 0.000001 },"output_sequence3": { "dtype": "float32", "shape": [1, 2], "tolerance": 0.000001 },"output_sequence4": { "dtype": "float32", "shape": [1, 2], "tolerance": 0.000001 }}},{"name": "int32_split_two_chunks_f32","attrs": { "axis": 0 },"inputs": {"input": {"dtype": "float32","shape": [5, 3],"data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.23 }},"split": { "dtype": "int32", "shape": [2], "data": { "kind": "values", "values": [2, 3] } }},"outputs": {"output_sequence0": { "dtype": "float32", "shape": [2, 3], "tolerance": 0.000001 },"output_sequence1": { "dtype": "float32", "shape": [3, 3], "tolerance": 0.000001 }}},{"name": "scalar_split_two_chunks_uint32","attrs": { "axis": 1 },"inputs": {"input": { "dtype": "uint32", "shape": [2, 3], "data": { "kind": "values", "values": [1, 2, 3, 4, 5, 6] } },"split": { "dtype": "int64", "shape": [], "data": { "kind": "values", "values": [2] } }},"outputs": {"output_sequence0": {"dtype": "uint32","shape": [2, 2],"tolerance": 0,"data": { "kind": "values", "values": [1, 2, 4, 5] }},"output_sequence1": {"dtype": "uint32","shape": [2, 1],"tolerance": 0,"data": { "kind": "values", "values": [3, 6] }}}},{"name": "scalar_split_two_chunks_int32","attrs": { "axis": 1 },"inputs": {"input": { "dtype": "int32", "shape": [2, 3], "data": { "kind": "values", "values": [1, 2, 3, 4, 5, 6] } },"split": { "dtype": "int64", "shape": [], "data": { "kind": "values", "values": [2] } }},"outputs": {"output_sequence0": {"dtype": "int32","shape": [2, 2],"tolerance": 0,"data": { "kind": "values", "values": [1, 2, 4, 5] }},"output_sequence1": {"dtype": "int32","shape": [2, 1],"tolerance": 0,"data": { "kind": "values", "values": [3, 6] }}}},{"name": "scalar_split_two_chunks_int16","attrs": { "axis": 1 },"inputs": {"input": { "dtype": "int16", "shape": [2, 3], "data": { "kind": "values", "values": [1, 2, 3, 4, 5, 6] } },"split": { "dtype": "int64", "shape": [], "data": { "kind": "values", "values": [2] } }},"outputs": {"output_sequence0": {"dtype": "int16","shape": [2, 2],"tolerance": 0,"data": { "kind": "values", "values": [1, 2, 4, 5] }},"output_sequence1": {"dtype": "int16","shape": [2, 1],"tolerance": 0,"data": { "kind": "values", "values": [3, 6] }}}},{"name": "scalar_split_two_chunks_uint8","attrs": { "axis": 1 },"inputs": {"input": { "dtype": "uint8", "shape": [2, 3], "data": { "kind": "values", "values": [1, 2, 3, 4, 5, 6] } },"split": { "dtype": "int64", "shape": [], "data": { "kind": "values", "values": [2] } }},"outputs": {"output_sequence0": {"dtype": "uint8","shape": [2, 2],"tolerance": 0,"data": { "kind": "values", "values": [1, 2, 4, 5] }},"output_sequence1": {"dtype": "uint8","shape": [2, 1],"tolerance": 0,"data": { "kind": "values", "values": [3, 6] }}}},{"name": "scalar_split_two_chunks_int8","attrs": { "axis": 1 },"inputs": {"input": { "dtype": "int8", "shape": [2, 3], "data": { "kind": "values", "values": [1, 2, 3, 4, 5, 6] } },"split": { "dtype": "int64", "shape": [], "data": { "kind": "values", "values": [2] } }},"outputs": {"output_sequence0": {"dtype": "int8","shape": [2, 2],"tolerance": 0,"data": { "kind": "values", "values": [1, 2, 4, 5] }},"output_sequence1": {"dtype": "int8","shape": [2, 1],"tolerance": 0,"data": { "kind": "values", "values": [3, 6] }}}},{"name": "scalar_split_two_chunks_int64","attrs": { "axis": 1 },"inputs": {"input": {"dtype": "int64","shape": [2, 3],"data": {"kind": "values","values": ["0", "4294967296", "-1", "9223372036854775807", "-9223372036854775808", "8589934593"]}},"split": { "dtype": "int64", "shape": [], "data": { "kind": "values", "values": [2] } }},"outputs": {"output_sequence0": {"dtype": "int64","shape": [2, 2],"tolerance": 0,"relTolerance": 0,"data": { "kind": "values", "values": ["0", "4294967296", "9223372036854775807", "-9223372036854775808"] }},"output_sequence1": {"dtype": "int64","shape": [2, 1],"tolerance": 0,"relTolerance": 0,"data": { "kind": "values", "values": ["-1", "8589934593"] }}}}]
README.md+22-34
build/webgpu/bench.json+10-10
build/webgpu/datamove-split-n.wgsl.jinjaAdded+62
build/webgpu/manifest.json+1-210
build/webgpu/metadata.json+1-26
build/webgpu/split-to-sequence.wgsl.jinjaDeleted-62
build/webgpu/test.json+322-147