Skip to content

Commit 6bb07c2

Browse files
committed
Remove MLBufferResourceView
Follow-up to webmachinelearning#546. MLBufferResourceView is not relevant without MLCommandEncoder
1 parent d1a02f2 commit 6bb07c2

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
@@ -1401,13 +1401,7 @@ The {{MLGraphBuilder}} interface defines a set of operations as identified by th
14011401
<script type=idl>
14021402
typedef record<DOMString, MLOperand> MLNamedOperands;
14031403

1404-
dictionary MLBufferResourceView {
1405-
required GPUBuffer resource;
1406-
unsigned long long offset = 0;
1407-
unsigned long long size;
1408-
};
1409-
1410-
typedef (ArrayBufferView or MLBufferResourceView) MLBufferView;
1404+
typedef ArrayBufferView MLBufferView;
14111405

14121406
[SecureContext, Exposed=(Window, DedicatedWorker)]
14131407
interface MLGraphBuilder {
@@ -1436,21 +1430,6 @@ interface MLGraphBuilder {
14361430
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 {{MLContext/[[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.
14371431
</div>
14381432

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

0 commit comments

Comments
 (0)