Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #311: use [=map/exist=] instead of exist #313

Merged
merged 1 commit into from
Dec 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -2468,12 +2468,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