File tree 1 file changed +2
-11
lines changed
1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -104,20 +104,10 @@ enum MLDataType {
104
104
};
105
105
106
106
dictionary MLTensor {
107
- required MLResource data;
107
+ required ArrayBufferView data;
108
108
required sequence<unsigned long> dimensions;
109
109
};
110
110
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
-
121
111
dictionary MLTensorInfo {
122
112
required DOMString name;
123
113
required MLDataType type;
@@ -158,6 +148,7 @@ loader = new MLModelLoader(context);
158
148
// believe this covers most of the usage cases. Web developers can download the
159
149
// model, e.g., by the fetch API. We can add new "load" functions in the future
160
150
// if they are really needed.
151
+ // Issue(123): blah
161
152
const modelUrl = 'https://path/to/model/file' ;
162
153
const modelBuffer = await fetch(modelUrl)
163
154
.then(response => response.arrayBuffer());
You can’t perform that action at this time.
0 commit comments