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 ankitm3k committed Dec 11, 2024
1 parent 052624b commit e3b77c6
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 e3b77c6

Please sign in to comment.