Skip to content

Commit

Permalink
[WebNN] Convert MLOperand methods into readonly attributes (microsoft…
Browse files Browse the repository at this point in the history
…#22653)

Adapt to spec change at
webmachinelearning/webnn#774
  • Loading branch information
Honry authored and Ishwar Raut committed Nov 19, 2024
1 parent 6530c20 commit 83a4880
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/web/lib/wasm/jsep/webnn/webnn.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ interface MLOperandDescriptor {
dimensions?: readonly number[];
}
interface MLOperand {
dataType(): MLOperandDataType;
shape(): number[];
dataType: MLOperandDataType;
shape: readonly number[];
}
interface MLActivation {}
type MLNamedOperands = Record<string, MLOperand>;
Expand Down

0 comments on commit 83a4880

Please sign in to comment.