Skip to content

Commit

Permalink
remove duplicate function definition (microsoft#21903)
Browse files Browse the repository at this point in the history
  • Loading branch information
guschmue authored Aug 28, 2024
1 parent 7df8776 commit 4fece04
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions js/web/lib/wasm/jsep/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 4fece04

Please sign in to comment.