diff --git a/js/web/lib/wasm/jsep/init.ts b/js/web/lib/wasm/jsep/init.ts index 5dda7425bdb44..2f0e5da2b3f27 100644 --- a/js/web/lib/wasm/jsep/init.ts +++ b/js/web/lib/wasm/jsep/init.ts @@ -23,14 +23,6 @@ class TensorViewImpl implements TensorView { public readonly dims: readonly number[], ) {} - getUint16Array(): Uint16Array { - if (this.dataType !== DataType.float16 && this.dataType !== DataType.uint16) { - throw new Error('Invalid data type'); - } - const elementCount = ShapeUtil.size(this.dims); - return elementCount === 0 ? new Uint16Array() : new Uint16Array(this.module.HEAP8.buffer, this.data, elementCount); - } - getFloat32Array(): Float32Array { if (this.dataType !== DataType.float) { throw new Error('Invalid data type');