File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -104,20 +104,10 @@ enum MLDataType {
104104};
105105
106106dictionary 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-
121111dictionary 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
161152const modelUrl = 'https://path/to/model/file' ;
162153const modelBuffer = await fetch(modelUrl)
163154 .then(response => response.arrayBuffer());
You can’t perform that action at this time.
0 commit comments