Skip to content

Commit 0af64f8

Browse files
committed
Move as input to the build() steps, remove from dispatch()
Signed-off-by: Zoltan Kis <[email protected]>
1 parent cb5213c commit 0af64f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@ Note: `dispatch()` itself provides no signal that graph execution has completed.
11921192
1. If [=validating tensors with descriptors=] given |outputs| and |graph|.{{MLGraph/[[outputDescriptors]]}} returns false, then [=exception/throw=] a {{TypeError}}.
11931193
1. Enqueue the following steps to |graph|.{{MLGraph/[[context]]}}.{{MLContext/[[timeline]]}}:
11941194
1. Run these steps, but [=/abort when=] [=this=] [=MLContext/is lost=]:
1195-
1. Issue a compute request to |graph|.{{MLGraph/[[implementation]]}} given |inputs| and |outputs|, as well as |graph|.{{MLGraph/[[context]]}}.{{MLContext/[[powerPreference]]}} and |graph|.{{MLGraph/[[context]]}}.{{MLContext/[[accelerated]]}}.
1195+
1. Issue a compute request to |graph|.{{MLGraph/[[implementation]]}} given |inputs| and |outputs|.
11961196

11971197
Issue(778): Add a mechanism for reporting errors during graph execution.
11981198

@@ -2189,7 +2189,7 @@ Build a composed graph up to a given output operand into a computational graph a
21892189
1. Let |promise| be [=a new promise=] in |realm|.
21902190
1. Enqueue the following steps to |graph|.{{MLGraph/[[context]]}}.{{MLContext/[[timeline]]}}:
21912191
1. Run these steps, but [=/abort when=] |graph|.{{MLGraph/[[context]]}} [=MLContext/is lost=]:
2192-
1. Let |graphImpl| be the result of converting [=this=]'s [=MLGraphBuilder/graph=] with |operands|, |operators|, |inputs|, and |outputs|'s [=map/values=] into an [=implementation-defined=] format which can be interpreted by the underlying platform.
2192+
1. Let |graphImpl| be the result of converting [=this=]'s [=MLGraphBuilder/graph=] with |operands|, |operators|, |inputs|, and |outputs|'s [=map/values=], as well as |graph|.{{MLGraph/[[context]]}}.{{MLContext/[[powerPreference]]}} and |graph|.{{MLGraph/[[context]]}}.{{MLContext/[[accelerated]]}} into an [=implementation-defined=] format which can be interpreted by the underlying platform.
21932193
1. If the previous step failed, then [=queue an ML task=] with |global| to [=reject=] |promise| with an "{{OperationError}}" {{DOMException}}, and abort these steps.
21942194
1. Set |graph|.{{MLGraph/[[implementation]]}} to |graphImpl|.
21952195
1. [=Queue an ML task=] with |global| to [=resolve=] |promise| with |graph|.

0 commit comments

Comments
 (0)