Skip to content

Commit

Permalink
[WebNN] Convert MLOperand methods into readonly attributes (#22653)
Browse files Browse the repository at this point in the history
Adapt to spec change at
webmachinelearning/webnn#774
  • Loading branch information
Honry authored Oct 31, 2024
1 parent fc375a6 commit eb66bfa
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 eb66bfa

Please # to comment.