From 34fe6a5d2ed60044e7ee2558c7c283fd2782ac77 Mon Sep 17 00:00:00 2001 From: Wanming Lin Date: Wed, 30 Oct 2024 11:04:01 +0800 Subject: [PATCH] [WebNN] Convert MLOperand methods into readonly attributes Adapt to spec change at https://github.com/webmachinelearning/webnn/pull/774 --- js/web/lib/wasm/jsep/webnn/webnn.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/web/lib/wasm/jsep/webnn/webnn.d.ts b/js/web/lib/wasm/jsep/webnn/webnn.d.ts index 2620168738dac..ca06f5c695f8d 100644 --- a/js/web/lib/wasm/jsep/webnn/webnn.d.ts +++ b/js/web/lib/wasm/jsep/webnn/webnn.d.ts @@ -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;