From f4a7f13264094f3ba118509a60ef909fcd63312b Mon Sep 17 00:00:00 2001 From: Zoltan Kis Date: Mon, 12 Dec 2022 21:05:41 +0200 Subject: [PATCH] Fix #311: use [=map/exist=] instead of exist Signed-off-by: Zoltan Kis --- index.bs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/index.bs b/index.bs index 2f2c6f3b..340077ae 100644 --- a/index.bs +++ b/index.bs @@ -693,12 +693,12 @@ partial interface MLContext { 1. If any of the following requirements are unmet, then throw a {{DataError}} {{DOMException}} and stop.
1. For each |key| -> |value| of |inputs|: - 1. |graph|.{{MLGraph/[[inputDescriptors]]}}[|key|] must exist. + 1. |graph|.{{MLGraph/[[inputDescriptors]]}}[|key|] must [=map/exist=]. 1. Let |inputDesc| be |graph|.{{MLGraph/[[inputDescriptors]]}}[|key|]. 1. The type of {{ArrayBufferView}} |value| must match |inputDesc|.{{MLOperandDescriptor/type}} according to [this table](#appendices-mloperandtype-arraybufferview-compatibility). 1. |value|.\[[ByteLength]] must equal to [=byte length=] of |inputDesc|. 1. For each |key| -> |value| of |outputs|: - 1. |graph|.{{MLGraph/[[outputDescriptors]]}}[|key|] must exist. + 1. |graph|.{{MLGraph/[[outputDescriptors]]}}[|key|] must [=map/exist=]. 1. Let |outputDesc| be |graph|.{{MLGraph/[[outputDescriptors]]}}[|key|]. 1. The type of {{ArrayBufferView}} |value| must match |outputDesc|.{{MLOperandDescriptor/type}} according to [this table](#appendices-mloperandtype-arraybufferview-compatibility). 1. |value|.\[[ByteLength]] must equal to [=byte length=] of |outputDesc|. @@ -783,12 +783,12 @@ partial interface MLContext { 1. If any of the following requirements are unmet, then throw a {{DataError}} {{DOMException}} and stop.
1. For each |key| -> |value| of |inputs|: - 1. |graph|.{{MLGraph/[[inputDescriptors]]}}[|key|] must exist. + 1. |graph|.{{MLGraph/[[inputDescriptors]]}}[|key|] must [=map/exist=]. 1. Let |inputDesc| be |graph|.{{MLGraph/[[inputDescriptors]]}}[|key|]. 1. The type of {{ArrayBufferView}} |value| must match |inputDesc|.{{MLOperandDescriptor/type}} according to [this table](#appendices-mloperandtype-arraybufferview-compatibility). 1. |value|.\[[ByteLength]] must equal to [=byte length=] of |inputDesc|. 1. For each |key| -> |value| of |outputs|: - 1. |graph|.{{MLGraph/[[outputDescriptors]]}}[|key|] must exist. + 1. |graph|.{{MLGraph/[[outputDescriptors]]}}[|key|] must [=map/exist=]. 1. Let |outputDesc| be |graph|.{{MLGraph/[[outputDescriptors]]}}[|key|]. 1. The type of {{ArrayBufferView}} |value| must match |outputDesc|.{{MLOperandDescriptor/type}} according to [this table](#appendices-mloperandtype-arraybufferview-compatibility). 1. |value|.\[[ByteLength]] must equal to [=byte length=] of |outputDesc|. @@ -2468,12 +2468,12 @@ partial interface MLCommandEncoder { 1. If any of the following requirements are unmet, then throw a {{DataError}} {{DOMException}} and stop.
1. For each |key| -> |value| of |inputs|: - 1. |graph|.{{MLGraph/[[inputDescriptors]]}}[|key|] must exist. + 1. |graph|.{{MLGraph/[[inputDescriptors]]}}[|key|] must [=map/exist=]. 1. Let |inputDesc| be |graph|.{{MLGraph/[[inputDescriptors]]}}[|key|]. 1. If |value| is a {{GPUBuffer}}, then: 1. |value|.{{GPUBuffer/size}} must equal to [=byte length=] of |inputDesc|. 1. For each |key| -> |value| of |outputs|: - 1. |graph|.{{MLGraph/[[outputDescriptors]]}}[|key|] must exist. + 1. |graph|.{{MLGraph/[[outputDescriptors]]}}[|key|] must [=map/exist=]. 1. Let |outputDesc| be |graph|.{{MLGraph/[[outputDescriptors]]}}[|key|]. 1. If |value| is a {{GPUBuffer}}, then: 1. |value|.{{GPUBuffer/size}} must equal to [=byte length=] of |outputDesc|.