mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-30 03:37:44 +00:00
[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:
parent
fc375a6f58
commit
eb66bfa7b4
1 changed files with 2 additions and 2 deletions
4
js/web/lib/wasm/jsep/webnn/webnn.d.ts
vendored
4
js/web/lib/wasm/jsep/webnn/webnn.d.ts
vendored
|
|
@ -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>;
|
||||
|
|
|
|||
Loading…
Reference in a new issue