@webref/idl 3.52.0 → 3.52.1

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.
@@ -19,7 +19,7 @@ interface EXT_disjoint_timer_query {
19
19
  const GLenum TIMESTAMP_EXT = 0x8E28;
20
20
  const GLenum GPU_DISJOINT_EXT = 0x8FBB;
21
21
 
22
- WebGLTimerQueryEXT? createQueryEXT();
22
+ WebGLTimerQueryEXT createQueryEXT();
23
23
  undefined deleteQueryEXT(WebGLTimerQueryEXT? query);
24
24
  [WebGLHandlesContextLoss] boolean isQueryEXT(WebGLTimerQueryEXT? query);
25
25
  undefined beginQueryEXT(GLenum target, WebGLTimerQueryEXT query);
@@ -11,7 +11,7 @@ interface WebGLVertexArrayObjectOES : WebGLObject {
11
11
  interface OES_vertex_array_object {
12
12
  const GLenum VERTEX_ARRAY_BINDING_OES = 0x85B5;
13
13
 
14
- WebGLVertexArrayObjectOES? createVertexArrayOES();
14
+ WebGLVertexArrayObjectOES createVertexArrayOES();
15
15
  undefined deleteVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject);
16
16
  [WebGLHandlesContextLoss] GLboolean isVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject);
17
17
  undefined bindVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webref/idl",
3
3
  "description": "Web IDL definitions of the web platform",
4
- "version": "3.52.0",
4
+ "version": "3.52.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
package/turtledove.idl CHANGED
@@ -67,6 +67,10 @@ partial interface Navigator {
67
67
  readonly attribute boolean deprecatedRunAdAuctionEnforcesKAnonymity;
68
68
  };
69
69
 
70
+ dictionary AuctionRealTimeReportingConfig {
71
+ required DOMString type;
72
+ };
73
+
70
74
  dictionary AuctionAdConfig {
71
75
  required USVString seller;
72
76
  required USVString decisionLogicURL;
@@ -95,6 +99,8 @@ dictionary AuctionAdConfig {
95
99
  sequence<record<DOMString, DOMString>> allSlotsRequestedSizes;
96
100
  Promise<undefined> additionalBids;
97
101
  DOMString auctionNonce;
102
+ AuctionRealTimeReportingConfig sellerRealTimeReportingConfig;
103
+ record<USVString, AuctionRealTimeReportingConfig> perBuyerRealTimeReportingConfig;
98
104
  sequence<AuctionAdConfig> componentAuctions = [];
99
105
  AbortSignal? signal;
100
106
  Promise<boolean> resolveToConfig;
@@ -120,11 +126,22 @@ interface ForDebuggingOnly {
120
126
  undefined reportAdAuctionLoss(USVString url);
121
127
  };
122
128
 
129
+ [Exposed=InterestGroupBiddingAndScoringScriptRunnerGlobalScope]
130
+ interface RealTimeReporting {
131
+ undefined contributeToHistogram(RealTimeContribution contribution);
132
+ };
133
+
134
+ dictionary RealTimeContribution {
135
+ required long bucket;
136
+ required double priorityWeight;
137
+ long latencyThreshold;
138
+ };
139
+
123
140
  [Exposed=InterestGroupBiddingAndScoringScriptRunnerGlobalScope,
124
141
  Global=InterestGroupBiddingAndScoringScriptRunnerGlobalScope]
125
142
  interface InterestGroupBiddingAndScoringScriptRunnerGlobalScope : InterestGroupScriptRunnerGlobalScope {
126
-
127
143
  readonly attribute ForDebuggingOnly forDebuggingOnly;
144
+ readonly attribute RealTimeReporting realTimeReporting;
128
145
  };
129
146
 
130
147
  [Exposed=InterestGroupBiddingScriptRunnerGlobalScope,
package/webgl1.idl CHANGED
@@ -561,12 +561,12 @@ interface mixin WebGLRenderingContextBase
561
561
  undefined copyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
562
562
  GLint x, GLint y, GLsizei width, GLsizei height);
563
563
 
564
- WebGLBuffer? createBuffer();
565
- WebGLFramebuffer? createFramebuffer();
566
- WebGLProgram? createProgram();
567
- WebGLRenderbuffer? createRenderbuffer();
564
+ WebGLBuffer createBuffer();
565
+ WebGLFramebuffer createFramebuffer();
566
+ WebGLProgram createProgram();
567
+ WebGLRenderbuffer createRenderbuffer();
568
568
  WebGLShader? createShader(GLenum type);
569
- WebGLTexture? createTexture();
569
+ WebGLTexture createTexture();
570
570
 
571
571
  undefined cullFace(GLenum mode);
572
572
 
package/webgl2.idl CHANGED
@@ -423,7 +423,7 @@ interface mixin WebGL2RenderingContextBase
423
423
  undefined clearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
424
424
 
425
425
  /* Query Objects */
426
- WebGLQuery? createQuery();
426
+ WebGLQuery createQuery();
427
427
  undefined deleteQuery(WebGLQuery? query);
428
428
  [WebGLHandlesContextLoss] GLboolean isQuery(WebGLQuery? query);
429
429
  undefined beginQuery(GLenum target, WebGLQuery query);
@@ -432,7 +432,7 @@ interface mixin WebGL2RenderingContextBase
432
432
  any getQueryParameter(WebGLQuery query, GLenum pname);
433
433
 
434
434
  /* Sampler Objects */
435
- WebGLSampler? createSampler();
435
+ WebGLSampler createSampler();
436
436
  undefined deleteSampler(WebGLSampler? sampler);
437
437
  [WebGLHandlesContextLoss] GLboolean isSampler(WebGLSampler? sampler);
438
438
  undefined bindSampler(GLuint unit, WebGLSampler? sampler);
@@ -449,7 +449,7 @@ interface mixin WebGL2RenderingContextBase
449
449
  any getSyncParameter(WebGLSync sync, GLenum pname);
450
450
 
451
451
  /* Transform Feedback */
452
- WebGLTransformFeedback? createTransformFeedback();
452
+ WebGLTransformFeedback createTransformFeedback();
453
453
  undefined deleteTransformFeedback(WebGLTransformFeedback? tf);
454
454
  [WebGLHandlesContextLoss] GLboolean isTransformFeedback(WebGLTransformFeedback? tf);
455
455
  undefined bindTransformFeedback (GLenum target, WebGLTransformFeedback? tf);
@@ -472,7 +472,7 @@ interface mixin WebGL2RenderingContextBase
472
472
  undefined uniformBlockBinding(WebGLProgram program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
473
473
 
474
474
  /* Vertex Array Objects */
475
- WebGLVertexArrayObject? createVertexArray();
475
+ WebGLVertexArrayObject createVertexArray();
476
476
  undefined deleteVertexArray(WebGLVertexArrayObject? vertexArray);
477
477
  [WebGLHandlesContextLoss] GLboolean isVertexArray(WebGLVertexArrayObject? vertexArray);
478
478
  undefined bindVertexArray(WebGLVertexArrayObject? array);
package/webgpu.idl CHANGED
@@ -109,6 +109,7 @@ enum GPUFeatureName {
109
109
  "depth-clip-control",
110
110
  "depth32float-stencil8",
111
111
  "texture-compression-bc",
112
+ "texture-compression-bc-sliced-3d",
112
113
  "texture-compression-etc2",
113
114
  "texture-compression-astc",
114
115
  "timestamp-query",
package/webnn.idl CHANGED
@@ -75,6 +75,10 @@ interface MLOperand {
75
75
  sequence<unsigned long> shape();
76
76
  };
77
77
 
78
+ dictionary MLOperatorOptions {
79
+ USVString label = "";
80
+ };
81
+
78
82
  typedef (bigint or unrestricted double) MLNumber;
79
83
 
80
84
  typedef record<USVString, MLOperand> MLNamedOperands;
@@ -97,7 +101,7 @@ interface MLGraphBuilder {
97
101
  Promise<MLGraph> build(MLNamedOperands outputs);
98
102
  };
99
103
 
100
- dictionary MLArgMinMaxOptions {
104
+ dictionary MLArgMinMaxOptions : MLOperatorOptions {
101
105
  boolean keepDimensions = false;
102
106
  MLOperandDataType outputDataType = "int32";
103
107
  };
@@ -109,7 +113,7 @@ partial interface MLGraphBuilder {
109
113
  optional MLArgMinMaxOptions options = {});
110
114
  };
111
115
 
112
- dictionary MLBatchNormalizationOptions {
116
+ dictionary MLBatchNormalizationOptions : MLOperatorOptions {
113
117
  MLOperand scale;
114
118
  MLOperand bias;
115
119
  [EnforceRange] unsigned long axis = 1;
@@ -122,10 +126,12 @@ partial interface MLGraphBuilder {
122
126
  };
123
127
 
124
128
  partial interface MLGraphBuilder {
125
- MLOperand cast(MLOperand input, MLOperandDataType type);
129
+ MLOperand cast(MLOperand input,
130
+ MLOperandDataType type,
131
+ optional MLOperatorOptions options = {});
126
132
  };
127
133
 
128
- dictionary MLClampOptions {
134
+ dictionary MLClampOptions : MLOperatorOptions {
129
135
  MLNumber minValue;
130
136
  MLNumber maxValue;
131
137
  };
@@ -135,7 +141,9 @@ partial interface MLGraphBuilder {
135
141
  };
136
142
 
137
143
  partial interface MLGraphBuilder {
138
- MLOperand concat(sequence<MLOperand> inputs, [EnforceRange] unsigned long axis);
144
+ MLOperand concat(sequence<MLOperand> inputs,
145
+ [EnforceRange] unsigned long axis,
146
+ optional MLOperatorOptions options = {});
139
147
  };
140
148
 
141
149
  enum MLConv2dFilterOperandLayout {
@@ -145,7 +153,7 @@ enum MLConv2dFilterOperandLayout {
145
153
  "ihwo"
146
154
  };
147
155
 
148
- dictionary MLConv2dOptions {
156
+ dictionary MLConv2dOptions : MLOperatorOptions {
149
157
  sequence<[EnforceRange] unsigned long> padding;
150
158
  sequence<[EnforceRange] unsigned long> strides;
151
159
  sequence<[EnforceRange] unsigned long> dilations;
@@ -167,7 +175,7 @@ enum MLConvTranspose2dFilterOperandLayout {
167
175
  "ohwi"
168
176
  };
169
177
 
170
- dictionary MLConvTranspose2dOptions {
178
+ dictionary MLConvTranspose2dOptions : MLOperatorOptions {
171
179
  sequence<[EnforceRange] unsigned long> padding;
172
180
  sequence<[EnforceRange] unsigned long> strides;
173
181
  sequence<[EnforceRange] unsigned long> dilations;
@@ -185,41 +193,51 @@ partial interface MLGraphBuilder {
185
193
  };
186
194
 
187
195
  partial interface MLGraphBuilder {
188
- MLOperand add(MLOperand a, MLOperand b);
189
- MLOperand sub(MLOperand a, MLOperand b);
190
- MLOperand mul(MLOperand a, MLOperand b);
191
- MLOperand div(MLOperand a, MLOperand b);
192
- MLOperand max(MLOperand a, MLOperand b);
193
- MLOperand min(MLOperand a, MLOperand b);
194
- MLOperand pow(MLOperand a, MLOperand b);
195
- };
196
-
197
- partial interface MLGraphBuilder {
198
- MLOperand equal(MLOperand a, MLOperand b);
199
- MLOperand greater(MLOperand a, MLOperand b);
200
- MLOperand greaterOrEqual(MLOperand a, MLOperand b);
201
- MLOperand lesser(MLOperand a, MLOperand b);
202
- MLOperand lesserOrEqual(MLOperand a, MLOperand b);
203
- MLOperand logicalNot(MLOperand a);
204
- };
205
-
206
- partial interface MLGraphBuilder {
207
- MLOperand abs(MLOperand input);
208
- MLOperand ceil(MLOperand input);
209
- MLOperand cos(MLOperand input);
210
- MLOperand erf(MLOperand input);
211
- MLOperand exp(MLOperand input);
212
- MLOperand floor(MLOperand input);
213
- MLOperand identity(MLOperand input);
214
- MLOperand log(MLOperand input);
215
- MLOperand neg(MLOperand input);
216
- MLOperand reciprocal(MLOperand input);
217
- MLOperand sin(MLOperand input);
218
- MLOperand sqrt(MLOperand input);
219
- MLOperand tan(MLOperand input);
220
- };
221
-
222
- dictionary MLEluOptions {
196
+ MLOperand add(MLOperand a, MLOperand b, optional MLOperatorOptions options = {});
197
+ MLOperand sub(MLOperand a, MLOperand b, optional MLOperatorOptions options = {});
198
+ MLOperand mul(MLOperand a, MLOperand b, optional MLOperatorOptions options = {});
199
+ MLOperand div(MLOperand a, MLOperand b, optional MLOperatorOptions options = {});
200
+ MLOperand max(MLOperand a, MLOperand b, optional MLOperatorOptions options = {});
201
+ MLOperand min(MLOperand a, MLOperand b, optional MLOperatorOptions options = {});
202
+ MLOperand pow(MLOperand a, MLOperand b, optional MLOperatorOptions options = {});
203
+ };
204
+
205
+ partial interface MLGraphBuilder {
206
+ MLOperand equal(MLOperand a,
207
+ MLOperand b,
208
+ optional MLOperatorOptions options = {});
209
+ MLOperand greater(MLOperand a,
210
+ MLOperand b,
211
+ optional MLOperatorOptions options = {});
212
+ MLOperand greaterOrEqual(MLOperand a,
213
+ MLOperand b,
214
+ optional MLOperatorOptions options = {});
215
+ MLOperand lesser(MLOperand a,
216
+ MLOperand b,
217
+ optional MLOperatorOptions options = {});
218
+ MLOperand lesserOrEqual(MLOperand a,
219
+ MLOperand b,
220
+ optional MLOperatorOptions options = {});
221
+ MLOperand logicalNot(MLOperand a, optional MLOperatorOptions options = {});
222
+ };
223
+
224
+ partial interface MLGraphBuilder {
225
+ MLOperand abs(MLOperand input, optional MLOperatorOptions options = {});
226
+ MLOperand ceil(MLOperand input, optional MLOperatorOptions options = {});
227
+ MLOperand cos(MLOperand input, optional MLOperatorOptions options = {});
228
+ MLOperand erf(MLOperand input, optional MLOperatorOptions options = {});
229
+ MLOperand exp(MLOperand input, optional MLOperatorOptions options = {});
230
+ MLOperand floor(MLOperand input, optional MLOperatorOptions options = {});
231
+ MLOperand identity(MLOperand input, optional MLOperatorOptions options = {});
232
+ MLOperand log(MLOperand input, optional MLOperatorOptions options = {});
233
+ MLOperand neg(MLOperand input, optional MLOperatorOptions options = {});
234
+ MLOperand reciprocal(MLOperand input, optional MLOperatorOptions options = {});
235
+ MLOperand sin(MLOperand input, optional MLOperatorOptions options = {});
236
+ MLOperand sqrt(MLOperand input, optional MLOperatorOptions options = {});
237
+ MLOperand tan(MLOperand input, optional MLOperatorOptions options = {});
238
+ };
239
+
240
+ dictionary MLEluOptions : MLOperatorOptions {
223
241
  double alpha = 1;
224
242
  };
225
243
 
@@ -228,10 +246,12 @@ partial interface MLGraphBuilder {
228
246
  };
229
247
 
230
248
  partial interface MLGraphBuilder {
231
- MLOperand expand(MLOperand input, sequence<[EnforceRange] unsigned long> newShape);
249
+ MLOperand expand(MLOperand input,
250
+ sequence<[EnforceRange] unsigned long> newShape,
251
+ optional MLOperatorOptions options = {});
232
252
  };
233
253
 
234
- dictionary MLGatherOptions {
254
+ dictionary MLGatherOptions : MLOperatorOptions {
235
255
  [EnforceRange] unsigned long axis = 0;
236
256
  };
237
257
 
@@ -242,10 +262,10 @@ partial interface MLGraphBuilder {
242
262
  };
243
263
 
244
264
  partial interface MLGraphBuilder {
245
- MLOperand gelu(MLOperand input);
265
+ MLOperand gelu(MLOperand input, optional MLOperatorOptions options = {});
246
266
  };
247
267
 
248
- dictionary MLGemmOptions {
268
+ dictionary MLGemmOptions : MLOperatorOptions {
249
269
  MLOperand c;
250
270
  double alpha = 1.0;
251
271
  double beta = 1.0;
@@ -274,7 +294,7 @@ enum MLRecurrentNetworkDirection {
274
294
  "both"
275
295
  };
276
296
 
277
- dictionary MLGruOptions {
297
+ dictionary MLGruOptions : MLOperatorOptions {
278
298
  MLOperand bias;
279
299
  MLOperand recurrentBias;
280
300
  MLOperand initialHiddenState;
@@ -294,7 +314,7 @@ partial interface MLGraphBuilder {
294
314
  optional MLGruOptions options = {});
295
315
  };
296
316
 
297
- dictionary MLGruCellOptions {
317
+ dictionary MLGruCellOptions : MLOperatorOptions {
298
318
  MLOperand bias;
299
319
  MLOperand recurrentBias;
300
320
  boolean resetAfter = true;
@@ -311,7 +331,7 @@ partial interface MLGraphBuilder {
311
331
  optional MLGruCellOptions options = {});
312
332
  };
313
333
 
314
- dictionary MLHardSigmoidOptions {
334
+ dictionary MLHardSigmoidOptions : MLOperatorOptions {
315
335
  double alpha = 0.2;
316
336
  double beta = 0.5;
317
337
  };
@@ -321,10 +341,10 @@ partial interface MLGraphBuilder {
321
341
  };
322
342
 
323
343
  partial interface MLGraphBuilder {
324
- MLOperand hardSwish(MLOperand input);
344
+ MLOperand hardSwish(MLOperand input, optional MLOperatorOptions options = {});
325
345
  };
326
346
 
327
- dictionary MLInstanceNormalizationOptions {
347
+ dictionary MLInstanceNormalizationOptions : MLOperatorOptions {
328
348
  MLOperand scale;
329
349
  MLOperand bias;
330
350
  double epsilon = 1e-5;
@@ -336,7 +356,7 @@ partial interface MLGraphBuilder {
336
356
  optional MLInstanceNormalizationOptions options = {});
337
357
  };
338
358
 
339
- dictionary MLLayerNormalizationOptions {
359
+ dictionary MLLayerNormalizationOptions : MLOperatorOptions {
340
360
  MLOperand scale;
341
361
  MLOperand bias;
342
362
  sequence<[EnforceRange] unsigned long> axes;
@@ -348,7 +368,7 @@ partial interface MLGraphBuilder {
348
368
  optional MLLayerNormalizationOptions options = {});
349
369
  };
350
370
 
351
- dictionary MLLeakyReluOptions {
371
+ dictionary MLLeakyReluOptions : MLOperatorOptions {
352
372
  double alpha = 0.01;
353
373
  };
354
374
 
@@ -356,7 +376,7 @@ partial interface MLGraphBuilder {
356
376
  MLOperand leakyRelu(MLOperand input, optional MLLeakyReluOptions options = {});
357
377
  };
358
378
 
359
- dictionary MLLinearOptions {
379
+ dictionary MLLinearOptions : MLOperatorOptions {
360
380
  double alpha = 1;
361
381
  double beta = 0;
362
382
  };
@@ -370,7 +390,7 @@ enum MLLstmWeightLayout {
370
390
  "ifgo" // input-forget-cell-output gate ordering
371
391
  };
372
392
 
373
- dictionary MLLstmOptions {
393
+ dictionary MLLstmOptions : MLOperatorOptions {
374
394
  MLOperand bias;
375
395
  MLOperand recurrentBias;
376
396
  MLOperand peepholeWeight;
@@ -391,7 +411,7 @@ partial interface MLGraphBuilder {
391
411
  optional MLLstmOptions options = {});
392
412
  };
393
413
 
394
- dictionary MLLstmCellOptions {
414
+ dictionary MLLstmCellOptions : MLOperatorOptions {
395
415
  MLOperand bias;
396
416
  MLOperand recurrentBias;
397
417
  MLOperand peepholeWeight;
@@ -410,7 +430,7 @@ partial interface MLGraphBuilder {
410
430
  };
411
431
 
412
432
  partial interface MLGraphBuilder {
413
- MLOperand matmul(MLOperand a, MLOperand b);
433
+ MLOperand matmul(MLOperand a, MLOperand b, optional MLOperatorOptions options = {});
414
434
  };
415
435
 
416
436
  enum MLPaddingMode {
@@ -420,7 +440,7 @@ enum MLPaddingMode {
420
440
  "symmetric"
421
441
  };
422
442
 
423
- dictionary MLPadOptions {
443
+ dictionary MLPadOptions : MLOperatorOptions {
424
444
  MLPaddingMode mode = "constant";
425
445
  MLNumber value = 0;
426
446
  };
@@ -437,7 +457,7 @@ enum MLRoundingType {
437
457
  "ceil"
438
458
  };
439
459
 
440
- dictionary MLPool2dOptions {
460
+ dictionary MLPool2dOptions : MLOperatorOptions {
441
461
  sequence<[EnforceRange] unsigned long> windowDimensions;
442
462
  sequence<[EnforceRange] unsigned long> padding;
443
463
  sequence<[EnforceRange] unsigned long> strides;
@@ -454,10 +474,12 @@ partial interface MLGraphBuilder {
454
474
  };
455
475
 
456
476
  partial interface MLGraphBuilder {
457
- MLOperand prelu(MLOperand input, MLOperand slope);
477
+ MLOperand prelu(MLOperand input,
478
+ MLOperand slope,
479
+ optional MLOperatorOptions options = {});
458
480
  };
459
481
 
460
- dictionary MLReduceOptions {
482
+ dictionary MLReduceOptions : MLOperatorOptions {
461
483
  sequence<[EnforceRange] unsigned long> axes;
462
484
  boolean keepDimensions = false;
463
485
  };
@@ -476,7 +498,7 @@ partial interface MLGraphBuilder {
476
498
  };
477
499
 
478
500
  partial interface MLGraphBuilder {
479
- MLOperand relu(MLOperand input);
501
+ MLOperand relu(MLOperand input, optional MLOperatorOptions options = {});
480
502
  };
481
503
 
482
504
  enum MLInterpolationMode {
@@ -484,7 +506,7 @@ enum MLInterpolationMode {
484
506
  "linear"
485
507
  };
486
508
 
487
- dictionary MLResample2dOptions {
509
+ dictionary MLResample2dOptions : MLOperatorOptions {
488
510
  MLInterpolationMode mode = "nearest-neighbor";
489
511
  sequence<float> scales;
490
512
  sequence<[EnforceRange] unsigned long> sizes;
@@ -496,32 +518,37 @@ partial interface MLGraphBuilder {
496
518
  };
497
519
 
498
520
  partial interface MLGraphBuilder {
499
- MLOperand reshape(MLOperand input, sequence<[EnforceRange] unsigned long> newShape);
521
+ MLOperand reshape(MLOperand input,
522
+ sequence<[EnforceRange] unsigned long> newShape,
523
+ optional MLOperatorOptions options = {});
500
524
  };
501
525
 
502
526
  partial interface MLGraphBuilder {
503
- MLOperand sigmoid(MLOperand input);
527
+ MLOperand sigmoid(MLOperand input, optional MLOperatorOptions options = {});
504
528
  };
505
529
 
506
530
  partial interface MLGraphBuilder {
507
531
  MLOperand slice(MLOperand input,
508
532
  sequence<[EnforceRange] unsigned long> starts,
509
- sequence<[EnforceRange] unsigned long> sizes);
533
+ sequence<[EnforceRange] unsigned long> sizes,
534
+ optional MLOperatorOptions options = {});
510
535
  };
511
536
 
512
537
  partial interface MLGraphBuilder {
513
- MLOperand softmax(MLOperand input, unsigned long axis);
538
+ MLOperand softmax(MLOperand input,
539
+ [EnforceRange] unsigned long axis,
540
+ optional MLOperatorOptions options = {});
514
541
  };
515
542
 
516
543
  partial interface MLGraphBuilder {
517
- MLOperand softplus(MLOperand input);
544
+ MLOperand softplus(MLOperand input, optional MLOperatorOptions options = {});
518
545
  };
519
546
 
520
547
  partial interface MLGraphBuilder {
521
- MLOperand softsign(MLOperand input);
548
+ MLOperand softsign(MLOperand input, optional MLOperatorOptions options = {});
522
549
  };
523
550
 
524
- dictionary MLSplitOptions {
551
+ dictionary MLSplitOptions : MLOperatorOptions {
525
552
  [EnforceRange] unsigned long axis = 0;
526
553
  };
527
554
 
@@ -533,10 +560,10 @@ partial interface MLGraphBuilder {
533
560
  };
534
561
 
535
562
  partial interface MLGraphBuilder {
536
- MLOperand tanh(MLOperand input);
563
+ MLOperand tanh(MLOperand input, optional MLOperatorOptions options = {});
537
564
  };
538
565
 
539
- dictionary MLTransposeOptions {
566
+ dictionary MLTransposeOptions : MLOperatorOptions {
540
567
  sequence<[EnforceRange] unsigned long> permutation;
541
568
  };
542
569
 
@@ -544,7 +571,7 @@ partial interface MLGraphBuilder {
544
571
  MLOperand transpose(MLOperand input, optional MLTransposeOptions options = {});
545
572
  };
546
573
 
547
- dictionary MLTriangularOptions {
574
+ dictionary MLTriangularOptions : MLOperatorOptions {
548
575
  boolean upper = true;
549
576
  [EnforceRange] long diagonal = 0;
550
577
  };
@@ -554,5 +581,8 @@ partial interface MLGraphBuilder {
554
581
  };
555
582
 
556
583
  partial interface MLGraphBuilder {
557
- MLOperand where(MLOperand condition, MLOperand trueValue, MLOperand falseValue);
584
+ MLOperand where(MLOperand condition,
585
+ MLOperand trueValue,
586
+ MLOperand falseValue,
587
+ optional MLOperatorOptions options = {});
558
588
  };