Skip to content

Commit

Permalink
add missing file for pr20791 (#20811)
Browse files Browse the repository at this point in the history
this file should have been in pr20791 to allow fp16 in the tile
implementation
  • Loading branch information
guschmue authored May 24, 2024
1 parent 10c425a commit 33a68d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/web/lib/wasm/jsep/webgpu/ops/tile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 33a68d2

Please sign in to comment.