Skip to content

Commit 8691ee5

Browse files
committed
remove MLBufferView and MLResource
See webmachinelearning/webnn#560
1 parent aab4dbf commit 8691ee5

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

index.bs

+2-11
Original file line numberDiff line numberDiff line change
@@ -104,20 +104,10 @@ enum MLDataType {
104104
};
105105

106106
dictionary MLTensor {
107-
required MLResource data;
107+
required ArrayBufferView data;
108108
required sequence<unsigned long> dimensions;
109109
};
110110

111-
// This should be aligned with WebNN. It is different from the spec of WebNN
112-
// because in the first version we do not involve any hardware acceleration. We
113-
// should update it later.
114-
typedef ArrayBufferView MLBufferView;
115-
116-
// This should be aligned with WebNN. It is different from the spec of WebNN
117-
// because in the first version we do not involve any hardware acceleration. We
118-
// should update it later.
119-
typedef MLBufferView MLResource;
120-
121111
dictionary MLTensorInfo {
122112
required DOMString name;
123113
required MLDataType type;
@@ -158,6 +148,7 @@ loader = new MLModelLoader(context);
158148
// believe this covers most of the usage cases. Web developers can download the
159149
// model, e.g., by the fetch API. We can add new "load" functions in the future
160150
// if they are really needed.
151+
// Issue(123): blah
161152
const modelUrl = 'https://path/to/model/file';
162153
const modelBuffer = await fetch(modelUrl)
163154
.then(response => response.arrayBuffer());

0 commit comments

Comments
 (0)