Skip to content

Commit

Permalink
Merge pull request #313 from zolkis/fix-exist-usage
Browse files Browse the repository at this point in the history
Fix #311: use [=map/exist=] instead of exist
  • Loading branch information
anssiko authored Dec 13, 2022
2 parents 70fc272 + f4a7f13 commit ad5d054
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -693,12 +693,12 @@ partial interface MLContext {
1. If any of the following requirements are unmet, then throw a {{DataError}} {{DOMException}} and stop.
<div class=validusage>
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|.
Expand Down Expand Up @@ -783,12 +783,12 @@ partial interface MLContext {
1. If any of the following requirements are unmet, then throw a {{DataError}} {{DOMException}} and stop.
<div class=validusage>
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|.
Expand Down Expand Up @@ -2484,12 +2484,12 @@ partial interface MLCommandEncoder {
1. If any of the following requirements are unmet, then throw a {{DataError}} {{DOMException}} and stop.
<div class=validusage>
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|.
Expand Down

0 comments on commit ad5d054

Please sign in to comment.