mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-18 21:21:17 +00:00
add missing file for pr20791 (#20811)
this file should have been in pr20791 to allow fp16 in the tile implementation
This commit is contained in:
parent
10c425a4d5
commit
33a68d221f
1 changed files with 3 additions and 3 deletions
|
|
@ -17,9 +17,9 @@ const validateInputs = (inputs: readonly TensorView[]): void => {
|
|||
throw new Error('Tile requires 2 inputs.');
|
||||
}
|
||||
|
||||
if (inputs[0].dataType !== DataType.float && inputs[0].dataType !== DataType.int32 &&
|
||||
inputs[0].dataType !== DataType.uint32) {
|
||||
throw new Error('Tile only support float, int32, and uint32 data types');
|
||||
if (inputs[0].dataType !== DataType.float && inputs[0].dataType !== DataType.float16 &&
|
||||
inputs[0].dataType !== DataType.int32 && inputs[0].dataType !== DataType.uint32) {
|
||||
throw new Error('Tile only support float, float16, int32, and uint32 data types');
|
||||
}
|
||||
|
||||
if (inputs[1].dataType !== DataType.int64) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue