From bb94f01bf65db4b92edea601ea691c82490faf58 Mon Sep 17 00:00:00 2001 From: Zoltan Kis Date: Wed, 12 Jul 2023 19:17:40 +0300 Subject: [PATCH] Add the command finish steps Signed-off-by: Zoltan Kis --- index.bs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/index.bs b/index.bs index 5708ca76..ef879dd6 100644 --- a/index.bs +++ b/index.bs @@ -1489,13 +1489,27 @@ partial interface MLCommandEncoder { }; -
+
**Arguments:** - *descriptor*: an optional {{GPUCommandBufferDescriptor}}. Descriptor of the command buffer. **Returns:** {{GPUCommandBuffer}}.
+
+ + The {{MLCommandEncoder/finish(descriptor)}} method steps are: + +
+ 1. If any of the following sub-steps fail, throw an "{{OperationError}}" {{DOMException}} and stop. + 1. Make a request to the underlying platform to complete the recording of the ML workload, given |descriptor|. +
+ See the related WebGPU steps. +
+ 1. Return a {{GPUCommandBuffer}} containing the recorded workload. +
+
+ ## The MLGraphBuilder interface ## {#api-mlgraphbuilder} The {{MLGraphBuilder}} interface defines a set of operations as identified by the [[#usecases]] that can be composed into a computational graph. It also represents the intermediate state of a graph building session.