@webref/idl 3.23.0 → 3.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{contact-api.idl → contact-picker.idl} +0 -0
- package/fs.idl +1 -1
- package/package.json +1 -1
- package/webnn.idl +72 -26
|
File without changes
|
package/fs.idl
CHANGED
package/package.json
CHANGED
package/webnn.idl
CHANGED
|
@@ -82,7 +82,7 @@ dictionary MLOperandDescriptor {
|
|
|
82
82
|
interface MLOperand {};
|
|
83
83
|
|
|
84
84
|
[SecureContext, Exposed=(Window, DedicatedWorker)]
|
|
85
|
-
interface
|
|
85
|
+
interface MLActivation {};
|
|
86
86
|
|
|
87
87
|
typedef record<DOMString, MLOperand> MLNamedOperands;
|
|
88
88
|
|
|
@@ -121,7 +121,7 @@ dictionary MLBatchNormalizationOptions {
|
|
|
121
121
|
MLOperand bias;
|
|
122
122
|
long axis = 1;
|
|
123
123
|
float epsilon = 1e-5;
|
|
124
|
-
|
|
124
|
+
MLActivation activation;
|
|
125
125
|
};
|
|
126
126
|
|
|
127
127
|
partial interface MLGraphBuilder {
|
|
@@ -136,7 +136,7 @@ dictionary MLClampOptions {
|
|
|
136
136
|
|
|
137
137
|
partial interface MLGraphBuilder {
|
|
138
138
|
MLOperand clamp(MLOperand x, optional MLClampOptions options = {});
|
|
139
|
-
|
|
139
|
+
MLActivation clamp(optional MLClampOptions options = {});
|
|
140
140
|
};
|
|
141
141
|
|
|
142
142
|
partial interface MLGraphBuilder {
|
|
@@ -165,7 +165,7 @@ dictionary MLConv2dOptions {
|
|
|
165
165
|
MLInputOperandLayout inputLayout = "nchw";
|
|
166
166
|
MLConv2dFilterOperandLayout filterLayout = "oihw";
|
|
167
167
|
MLOperand bias;
|
|
168
|
-
|
|
168
|
+
MLActivation activation;
|
|
169
169
|
};
|
|
170
170
|
|
|
171
171
|
partial interface MLGraphBuilder {
|
|
@@ -189,7 +189,7 @@ dictionary MLConvTranspose2dOptions {
|
|
|
189
189
|
MLInputOperandLayout inputLayout = "nchw";
|
|
190
190
|
MLConvTranspose2dFilterOperandLayout filterLayout = "iohw";
|
|
191
191
|
MLOperand bias;
|
|
192
|
-
|
|
192
|
+
MLActivation activation;
|
|
193
193
|
};
|
|
194
194
|
|
|
195
195
|
partial interface MLGraphBuilder {
|
|
@@ -225,7 +225,7 @@ dictionary MLEluOptions {
|
|
|
225
225
|
|
|
226
226
|
partial interface MLGraphBuilder {
|
|
227
227
|
MLOperand elu(MLOperand x, optional MLEluOptions options = {});
|
|
228
|
-
|
|
228
|
+
MLActivation elu(optional MLEluOptions options = {});
|
|
229
229
|
};
|
|
230
230
|
|
|
231
231
|
dictionary MLGemmOptions {
|
|
@@ -240,7 +240,7 @@ partial interface MLGraphBuilder {
|
|
|
240
240
|
MLOperand gemm(MLOperand a, MLOperand b, optional MLGemmOptions options = {});
|
|
241
241
|
};
|
|
242
242
|
|
|
243
|
-
enum
|
|
243
|
+
enum MLGruWeightLayout {
|
|
244
244
|
"zrn", // update-reset-new gate ordering
|
|
245
245
|
"rzn" // reset-update-new gate ordering
|
|
246
246
|
};
|
|
@@ -258,26 +258,31 @@ dictionary MLGruOptions {
|
|
|
258
258
|
boolean resetAfter = true;
|
|
259
259
|
boolean returnSequence = false;
|
|
260
260
|
MLRecurrentNetworkDirection direction = "forward";
|
|
261
|
-
|
|
262
|
-
sequence<
|
|
261
|
+
MLGruWeightLayout layout = "zrn";
|
|
262
|
+
sequence<MLActivation> activations;
|
|
263
263
|
};
|
|
264
264
|
|
|
265
265
|
partial interface MLGraphBuilder {
|
|
266
266
|
sequence<MLOperand> gru(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
|
|
267
|
-
|
|
267
|
+
|
|
268
|
+
unsigned long steps, unsigned long hiddenSize,
|
|
269
|
+
|
|
270
|
+
optional MLGruOptions options = {});
|
|
268
271
|
};
|
|
269
272
|
|
|
270
273
|
dictionary MLGruCellOptions {
|
|
271
274
|
MLOperand bias;
|
|
272
275
|
MLOperand recurrentBias;
|
|
273
276
|
boolean resetAfter = true;
|
|
274
|
-
|
|
275
|
-
sequence<
|
|
277
|
+
MLGruWeightLayout layout = "zrn";
|
|
278
|
+
sequence<MLActivation> activations;
|
|
276
279
|
};
|
|
277
280
|
|
|
278
281
|
partial interface MLGraphBuilder {
|
|
279
282
|
MLOperand gruCell(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
|
|
280
|
-
|
|
283
|
+
MLOperand hiddenState, unsigned long hiddenSize,
|
|
284
|
+
|
|
285
|
+
optional MLGruCellOptions options = {});
|
|
281
286
|
};
|
|
282
287
|
|
|
283
288
|
dictionary MLHardSigmoidOptions {
|
|
@@ -287,12 +292,12 @@ dictionary MLHardSigmoidOptions {
|
|
|
287
292
|
|
|
288
293
|
partial interface MLGraphBuilder {
|
|
289
294
|
MLOperand hardSigmoid(MLOperand x, optional MLHardSigmoidOptions options = {});
|
|
290
|
-
|
|
295
|
+
MLActivation hardSigmoid(optional MLHardSigmoidOptions options = {});
|
|
291
296
|
};
|
|
292
297
|
|
|
293
298
|
partial interface MLGraphBuilder {
|
|
294
299
|
MLOperand hardSwish(MLOperand x);
|
|
295
|
-
|
|
300
|
+
MLActivation hardSwish();
|
|
296
301
|
};
|
|
297
302
|
|
|
298
303
|
dictionary MLInstanceNormalizationOptions {
|
|
@@ -313,11 +318,7 @@ dictionary MLLeakyReluOptions {
|
|
|
313
318
|
|
|
314
319
|
partial interface MLGraphBuilder {
|
|
315
320
|
MLOperand leakyRelu(MLOperand x, optional MLLeakyReluOptions options = {});
|
|
316
|
-
|
|
317
|
-
};
|
|
318
|
-
|
|
319
|
-
partial interface MLGraphBuilder {
|
|
320
|
-
MLOperand matmul(MLOperand a, MLOperand b);
|
|
321
|
+
MLActivation leakyRelu(optional MLLeakyReluOptions options = {});
|
|
321
322
|
};
|
|
322
323
|
|
|
323
324
|
dictionary MLLinearOptions {
|
|
@@ -327,7 +328,51 @@ dictionary MLLinearOptions {
|
|
|
327
328
|
|
|
328
329
|
partial interface MLGraphBuilder {
|
|
329
330
|
MLOperand linear(MLOperand x, optional MLLinearOptions options = {});
|
|
330
|
-
|
|
331
|
+
MLActivation linear(optional MLLinearOptions options = {});
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
enum MLLstmWeightLayout {
|
|
335
|
+
"iofg", // input-output-forget-cell gate ordering
|
|
336
|
+
"ifgo" // input-forget-cell-output gate ordering
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
dictionary MLLstmOptions {
|
|
340
|
+
MLOperand bias;
|
|
341
|
+
MLOperand recurrentBias;
|
|
342
|
+
MLOperand peepholeWeight;
|
|
343
|
+
MLOperand initialHiddenState;
|
|
344
|
+
MLOperand initialCellState;
|
|
345
|
+
boolean returnSequence = false;
|
|
346
|
+
MLRecurrentNetworkDirection direction = "forward";
|
|
347
|
+
MLLstmWeightLayout layout = "iofg";
|
|
348
|
+
sequence<MLActivation> activations;
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
partial interface MLGraphBuilder {
|
|
352
|
+
sequence<MLOperand> lstm(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
|
|
353
|
+
|
|
354
|
+
unsigned long steps, unsigned long hiddenSize,
|
|
355
|
+
|
|
356
|
+
optional MLLstmOptions options = {});
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
dictionary MLLstmCellOptions {
|
|
360
|
+
MLOperand bias;
|
|
361
|
+
MLOperand recurrentBias;
|
|
362
|
+
MLOperand peepholeWeight;
|
|
363
|
+
MLLstmWeightLayout layout = "iofg";
|
|
364
|
+
sequence<MLActivation> activations;
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
partial interface MLGraphBuilder {
|
|
368
|
+
sequence<MLOperand> lstmCell(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
|
|
369
|
+
MLOperand hiddenState, MLOperand cellState, unsigned long hiddenSize,
|
|
370
|
+
|
|
371
|
+
optional MLLstmCellOptions options = {});
|
|
372
|
+
};
|
|
373
|
+
|
|
374
|
+
partial interface MLGraphBuilder {
|
|
375
|
+
MLOperand matmul(MLOperand a, MLOperand b);
|
|
331
376
|
};
|
|
332
377
|
|
|
333
378
|
enum MLPaddingMode {
|
|
@@ -388,7 +433,7 @@ partial interface MLGraphBuilder {
|
|
|
388
433
|
|
|
389
434
|
partial interface MLGraphBuilder {
|
|
390
435
|
MLOperand relu(MLOperand x);
|
|
391
|
-
|
|
436
|
+
MLActivation relu();
|
|
392
437
|
};
|
|
393
438
|
|
|
394
439
|
enum MLInterpolationMode {
|
|
@@ -413,7 +458,7 @@ partial interface MLGraphBuilder {
|
|
|
413
458
|
|
|
414
459
|
partial interface MLGraphBuilder {
|
|
415
460
|
MLOperand sigmoid(MLOperand x);
|
|
416
|
-
|
|
461
|
+
MLActivation sigmoid();
|
|
417
462
|
};
|
|
418
463
|
|
|
419
464
|
dictionary MLSliceOptions {
|
|
@@ -427,6 +472,7 @@ partial interface MLGraphBuilder {
|
|
|
427
472
|
|
|
428
473
|
partial interface MLGraphBuilder {
|
|
429
474
|
MLOperand softmax(MLOperand x);
|
|
475
|
+
MLActivation softmax();
|
|
430
476
|
};
|
|
431
477
|
|
|
432
478
|
dictionary MLSoftplusOptions {
|
|
@@ -435,12 +481,12 @@ dictionary MLSoftplusOptions {
|
|
|
435
481
|
|
|
436
482
|
partial interface MLGraphBuilder {
|
|
437
483
|
MLOperand softplus(MLOperand x, optional MLSoftplusOptions options = {});
|
|
438
|
-
|
|
484
|
+
MLActivation softplus(optional MLSoftplusOptions options = {});
|
|
439
485
|
};
|
|
440
486
|
|
|
441
487
|
partial interface MLGraphBuilder {
|
|
442
488
|
MLOperand softsign(MLOperand x);
|
|
443
|
-
|
|
489
|
+
MLActivation softsign();
|
|
444
490
|
};
|
|
445
491
|
|
|
446
492
|
dictionary MLSplitOptions {
|
|
@@ -463,7 +509,7 @@ partial interface MLGraphBuilder {
|
|
|
463
509
|
|
|
464
510
|
partial interface MLGraphBuilder {
|
|
465
511
|
MLOperand tanh(MLOperand x);
|
|
466
|
-
|
|
512
|
+
MLActivation tanh();
|
|
467
513
|
};
|
|
468
514
|
|
|
469
515
|
dictionary MLTransposeOptions {
|