onnxruntime/js/web/test/data/ops
Yulong Wang 4385602386
[js/web] fix test runner with optional input/output (#20399)
### Description
fix test runner with optional input/output.

This change fixes the OP test runner (.jsonc format test) with optional
input(s) and/or output(s).

this fix reveals a problem of dealing with optional outputs:

> Take SkipSimplifiedLayerNorm as example: 
>
> if in the ONNX model, the node's outputs are: [ 'output_0', '' ]
instead of [ 'output_0' ], the current implementation will fail. The
difference is, in the first case, context.outputCount == 2, and then the
typescript implementation will try to create a tensor for output[1]. It
will eventually call to C++ function (OpKernelContext::Output), and the
output.DataRaw() will be nullptr. WebGPU backend will fail because it
cannot deal with a TensorView with data == 0.
>

This problem may need to be fixed or workaround in separated PR. This PR
does not fix this problem. Failed test cases are modified to work -
please note this PR does not break those test cases as they never work.
2024-04-22 12:53:10 -07:00
..
_example.jsonc
abs-int32.jsonc
abs.jsonc
absr.jsonc
abss.jsonc
acos.jsonc
add.jsonc
add_int32.jsonc
add_zero-sized.jsonc
and.jsonc
asin.jsonc
attention.jsonc
batch-norm.jsonc
bias-add.jsonc
bias-split-gelu.jsonc
cast.jsonc
ceil.jsonc
concat.jsonc
concat_int32.jsonc
concat_zero-sized.jsonc
conv-transpose.jsonc [JS/WebGPU] Use non-matmul implementation for ConvTranspose in channel-first case. (#20022) 2024-03-23 11:19:14 -07:00
conv.jsonc
cos.jsonc
cumsum.jsonc
depth-to-space.jsonc
div.jsonc
div_int32.jsonc
einsum.jsonc
equal.jsonc
exp.jsonc
expand.jsonc
fast-gelu.jsonc
floor.jsonc
fused-conv.jsonc
gather-elements.jsonc
gather.jsonc
gelu.jsonc
gemm.jsonc
global-average-pool.jsonc
greater.jsonc
identity.jsonc
image-scaler.jsonc
instance-norm.jsonc [js/webgpu] Fix NAN caused by un-initialized buffer in instance-norm (#19387) 2024-03-18 22:59:32 -07:00
layer-norm.jsonc
leaky-relu.jsonc
less.jsonc
log.jsonc
matmul-broadcast.jsonc
matmul.jsonc
matmulnbits.jsonc [JS/WebGPU] Improve MatMulNBits perf (#19974) 2024-04-12 11:03:05 -07:00
mul.jsonc
mul_int32.jsonc
multi-head-attention.jsonc
neg-int32.jsonc
neg.jsonc
not.jsonc
or.jsonc
pad-big.jsonc
pad.jsonc
pow-big-number.jsonc
pow.jsonc
pow_int32.jsonc
reduce-min.jsonc
relu.jsonc
reshape-int32.jsonc
reshape-pack.jsonc
reshape.jsonc
resize-pack.jsonc
resize.jsonc
rotary-embedding.jsonc [js/webgpu] Implement com.microsoft.RotaryEmbedding (#20209) 2024-04-08 09:11:26 -07:00
shape.jsonc
simplified-layer-norm.jsonc [js/web] fix test runner with optional input/output (#20399) 2024-04-22 12:53:10 -07:00
sin.jsonc
skip-layer-norm.jsonc [js/web] fix test runner with optional input/output (#20399) 2024-04-22 12:53:10 -07:00
skip-simplified-layer-norm.jsonc [js/web] fix test runner with optional input/output (#20399) 2024-04-22 12:53:10 -07:00
slice.jsonc
softmax.jsonc
split.jsonc
sqrt.jsonc
sub.jsonc
sub_int32.jsonc
tan.jsonc
tanh.jsonc
tile.jsonc
transpose.jsonc
transpose_int32_uint32.jsonc
upsample.jsonc
where.jsonc
where_broadcast.jsonc
xor.jsonc