Skip to content

Commit 4007e4b

Browse files
committed
Remove MLBufferResourceView
Follow-up to webmachinelearning#546. MLBufferResourceView is not relevant without MLCommandEncoder
1 parent c9d2dd7 commit 4007e4b

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

index.bs

+1-22
Original file line numberDiff line numberDiff line change
@@ -1404,13 +1404,7 @@ The {{MLGraphBuilder}} interface defines a set of operations as identified by th
14041404
<script type=idl>
14051405
typedef record<DOMString, MLOperand> MLNamedOperands;
14061406

1407-
dictionary MLBufferResourceView {
1408-
required GPUBuffer resource;
1409-
unsigned long long offset = 0;
1410-
unsigned long long size;
1411-
};
1412-
1413-
typedef (ArrayBufferView or MLBufferResourceView) MLBufferView;
1407+
typedef ArrayBufferView MLBufferView;
14141408

14151409
[SecureContext, Exposed=(Window, DedicatedWorker)]
14161410
interface MLGraphBuilder {
@@ -1439,21 +1433,6 @@ interface MLGraphBuilder {
14391433
Both {{MLGraphBuilder}}.{{MLGraphBuilder/build()}} and {{MLGraphBuilder}}.{{MLGraphBuilder/buildSync()}} methods compile the graph builder state up to the specified output operands into a compiled graph according to the type of {{MLContext}} that creates it. Since this operation can be costly in some machine configurations, the calling thread of the {{MLGraphBuilder}}.{{MLGraphBuilder/buildSync()}} method must only be a worker thread to avoid potential disruption of the user experience. When the {{[[contextType]]}} of the {{MLContext}} is set to "[=context type/default=]", the compiled graph is initialized right before the {{MLGraph}} is returned. This graph initialization stage is important for optimal performance of the subsequent graph executions. See [[#api-mlcommandencoder-graph-initialization]] for more detail.
14401434
</div>
14411435

1442-
{{MLBufferResourceView}} has the following members:
1443-
<dl dfn-type=dict-member dfn-for=MLBufferResourceView>
1444-
: <dfn>resource</dfn>
1445-
::
1446-
The GPU buffer source.
1447-
1448-
: <dfn>offset</dfn>
1449-
::
1450-
The offset in the buffer source.
1451-
1452-
: <dfn>size</dfn>
1453-
::
1454-
The size of the buffer view.
1455-
</dl>
1456-
14571436
<div class=internal-slots>
14581437
{{MLGraphBuilder}} has the following internal slots:
14591438
<dl dfn-type=attribute dfn-for="MLGraphBuilder">

0 commit comments

Comments
 (0)