From 33a68d221f28bd8d412f2e9188e50bac8a255b71 Mon Sep 17 00:00:00 2001 From: Guenther Schmuelling Date: Fri, 24 May 2024 09:59:13 -0700 Subject: [PATCH] add missing file for pr20791 (#20811) this file should have been in pr20791 to allow fp16 in the tile implementation --- js/web/lib/wasm/jsep/webgpu/ops/tile.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/web/lib/wasm/jsep/webgpu/ops/tile.ts b/js/web/lib/wasm/jsep/webgpu/ops/tile.ts index d58d71a28c..5a8ecc0c63 100644 --- a/js/web/lib/wasm/jsep/webgpu/ops/tile.ts +++ b/js/web/lib/wasm/jsep/webgpu/ops/tile.ts @@ -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) {