[WebNN] Convert MLOperand methods into readonly attributes (#22653)

Adapt to spec change at
https://github.com/webmachinelearning/webnn/pull/774
This commit is contained in:
Wanming Lin 2024-10-31 08:54:49 +08:00 committed by GitHub
parent fc375a6f58
commit eb66bfa7b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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>;