onnxruntime/js/web/test/data/ops/dequantize-linear_int4.jsonc
Yulong Wang ef2ccc477b
[js/web] Add support for int4/uint4 tensor (#21720)
### Description
Add support for int4/uint4 tensor.
2024-08-15 21:32:10 -07:00

72 lines
1.5 KiB
Text

[
{
"name": "DequantizeLinear int4",
"opset": { "domain": "", "version": 21 },
"operator": "DequantizeLinear",
"attributes": [{ "name": "axis", "data": 0, "type": "int" }],
"cases": [
{
"name": "T[2,3]",
"inputs": [
{
"data": [0, 1, 7, -4, -8],
"dims": [5],
"type": "int4"
},
{
"data": [2],
"dims": [],
"type": "float32"
},
{
"data": [1],
"dims": [1],
"type": "int4"
}
],
"outputs": [
{
"data": [-2, 0, 12, -10, -18],
"dims": [5],
"type": "float32"
}
]
}
]
},
{
"name": "DequantizeLinear uint4",
"opset": { "domain": "", "version": 21 },
"operator": "DequantizeLinear",
"attributes": [{ "name": "axis", "data": 0, "type": "int" }],
"cases": [
{
"name": "T[2,3]",
"inputs": [
{
"data": [0, 1, 7, 10, 15],
"dims": [5],
"type": "uint4"
},
{
"data": [2],
"dims": [],
"type": "float32"
},
{
"data": [1],
"dims": [1],
"type": "uint4"
}
],
"outputs": [
{
"data": [-2, 0, 12, 18, 28],
"dims": [5],
"type": "float32"
}
]
}
]
}
]