From e3b77c6ad79ab55f7122e652a21f195817c82e3f Mon Sep 17 00:00:00 2001 From: Wanming Lin Date: Thu, 31 Oct 2024 08:54:49 +0800 Subject: [PATCH] [WebNN] Convert MLOperand methods into readonly attributes (#22653) 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;