@webref/idl 3.52.0 → 3.52.2
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/EXT_disjoint_timer_query.idl +1 -1
- package/OES_vertex_array_object.idl +1 -1
- package/crash-reporting.idl +1 -0
- package/css-font-loading.idl +1 -3
- package/dom.idl +6 -6
- package/package.json +1 -1
- package/payment-handler.idl +0 -35
- package/payment-request.idl +61 -1
- package/pointerevents.idl +2 -0
- package/scheduling-apis.idl +1 -17
- package/turtledove.idl +19 -2
- package/webauthn.idl +5 -23
- package/webgl1.idl +5 -5
- package/webgl2.idl +4 -4
- package/webgpu.idl +1 -0
- package/webnn.idl +104 -74
|
@@ -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
|
|
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
|
|
14
|
+
WebGLVertexArrayObjectOES createVertexArrayOES();
|
|
15
15
|
undefined deleteVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject);
|
|
16
16
|
[WebGLHandlesContextLoss] GLboolean isVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject);
|
|
17
17
|
undefined bindVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject);
|
package/crash-reporting.idl
CHANGED
package/css-font-loading.idl
CHANGED
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
// (https://github.com/w3c/webref)
|
|
4
4
|
// Source: CSS Font Loading Module Level 3 (https://drafts.csswg.org/css-font-loading-3/)
|
|
5
5
|
|
|
6
|
-
typedef (ArrayBuffer or ArrayBufferView) BinaryData;
|
|
7
|
-
|
|
8
6
|
dictionary FontFaceDescriptors {
|
|
9
7
|
CSSOMString style = "normal";
|
|
10
8
|
CSSOMString weight = "normal";
|
|
@@ -22,7 +20,7 @@ enum FontFaceLoadStatus { "unloaded", "loading", "loaded", "error" };
|
|
|
22
20
|
|
|
23
21
|
[Exposed=(Window,Worker)]
|
|
24
22
|
interface FontFace {
|
|
25
|
-
constructor(CSSOMString family, (CSSOMString or
|
|
23
|
+
constructor(CSSOMString family, (CSSOMString or BufferSource) source,
|
|
26
24
|
optional FontFaceDescriptors descriptors = {});
|
|
27
25
|
attribute CSSOMString family;
|
|
28
26
|
attribute CSSOMString style;
|
package/dom.idl
CHANGED
|
@@ -120,9 +120,9 @@ interface mixin ParentNode {
|
|
|
120
120
|
readonly attribute Element? lastElementChild;
|
|
121
121
|
readonly attribute unsigned long childElementCount;
|
|
122
122
|
|
|
123
|
-
[CEReactions, Unscopable] undefined prepend((Node or
|
|
124
|
-
[CEReactions, Unscopable] undefined append((Node or
|
|
125
|
-
[CEReactions, Unscopable] undefined replaceChildren((Node or
|
|
123
|
+
[CEReactions, Unscopable] undefined prepend((Node or DOMString)... nodes);
|
|
124
|
+
[CEReactions, Unscopable] undefined append((Node or DOMString)... nodes);
|
|
125
|
+
[CEReactions, Unscopable] undefined replaceChildren((Node or DOMString)... nodes);
|
|
126
126
|
|
|
127
127
|
Element? querySelector(DOMString selectors);
|
|
128
128
|
[NewObject] NodeList querySelectorAll(DOMString selectors);
|
|
@@ -139,9 +139,9 @@ Element includes NonDocumentTypeChildNode;
|
|
|
139
139
|
CharacterData includes NonDocumentTypeChildNode;
|
|
140
140
|
|
|
141
141
|
interface mixin ChildNode {
|
|
142
|
-
[CEReactions, Unscopable] undefined before((Node or
|
|
143
|
-
[CEReactions, Unscopable] undefined after((Node or
|
|
144
|
-
[CEReactions, Unscopable] undefined replaceWith((Node or
|
|
142
|
+
[CEReactions, Unscopable] undefined before((Node or DOMString)... nodes);
|
|
143
|
+
[CEReactions, Unscopable] undefined after((Node or DOMString)... nodes);
|
|
144
|
+
[CEReactions, Unscopable] undefined replaceWith((Node or DOMString)... nodes);
|
|
145
145
|
[CEReactions, Unscopable] undefined remove();
|
|
146
146
|
};
|
|
147
147
|
DocumentType includes ChildNode;
|
package/package.json
CHANGED
package/payment-handler.idl
CHANGED
|
@@ -94,38 +94,3 @@ dictionary AddressInit {
|
|
|
94
94
|
DOMString recipient = "";
|
|
95
95
|
DOMString phone = "";
|
|
96
96
|
};
|
|
97
|
-
|
|
98
|
-
dictionary PaymentOptions {
|
|
99
|
-
boolean requestPayerName = false;
|
|
100
|
-
boolean requestBillingAddress = false;
|
|
101
|
-
boolean requestPayerEmail = false;
|
|
102
|
-
boolean requestPayerPhone = false;
|
|
103
|
-
boolean requestShipping = false;
|
|
104
|
-
PaymentShippingType shippingType = "shipping";
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
dictionary PaymentShippingOption {
|
|
108
|
-
required DOMString id;
|
|
109
|
-
required DOMString label;
|
|
110
|
-
required PaymentCurrencyAmount amount;
|
|
111
|
-
boolean selected = false;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
enum PaymentShippingType {
|
|
115
|
-
"shipping",
|
|
116
|
-
"delivery",
|
|
117
|
-
"pickup"
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
dictionary AddressErrors {
|
|
121
|
-
DOMString addressLine;
|
|
122
|
-
DOMString city;
|
|
123
|
-
DOMString country;
|
|
124
|
-
DOMString dependentLocality;
|
|
125
|
-
DOMString organization;
|
|
126
|
-
DOMString phone;
|
|
127
|
-
DOMString postalCode;
|
|
128
|
-
DOMString recipient;
|
|
129
|
-
DOMString region;
|
|
130
|
-
DOMString sortingCode;
|
|
131
|
-
};
|
package/payment-request.idl
CHANGED
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
interface PaymentRequest : EventTarget {
|
|
8
8
|
constructor(
|
|
9
9
|
sequence<PaymentMethodData> methodData,
|
|
10
|
-
PaymentDetailsInit details
|
|
10
|
+
PaymentDetailsInit details,
|
|
11
|
+
optional PaymentOptions options = {}
|
|
11
12
|
);
|
|
12
13
|
[NewObject]
|
|
13
14
|
Promise<PaymentResponse> show(optional Promise<PaymentDetailsUpdate> detailsPromise);
|
|
@@ -17,7 +18,12 @@ interface PaymentRequest : EventTarget {
|
|
|
17
18
|
Promise<boolean> canMakePayment();
|
|
18
19
|
|
|
19
20
|
readonly attribute DOMString id;
|
|
21
|
+
readonly attribute ContactAddress? shippingAddress;
|
|
22
|
+
readonly attribute DOMString? shippingOption;
|
|
23
|
+
readonly attribute PaymentShippingType? shippingType;
|
|
20
24
|
|
|
25
|
+
attribute EventHandler onshippingaddresschange;
|
|
26
|
+
attribute EventHandler onshippingoptionchange;
|
|
21
27
|
attribute EventHandler onpaymentmethodchange;
|
|
22
28
|
};
|
|
23
29
|
|
|
@@ -33,6 +39,7 @@ dictionary PaymentCurrencyAmount {
|
|
|
33
39
|
|
|
34
40
|
dictionary PaymentDetailsBase {
|
|
35
41
|
sequence<PaymentItem> displayItems;
|
|
42
|
+
sequence<PaymentShippingOption> shippingOptions;
|
|
36
43
|
sequence<PaymentDetailsModifier> modifiers;
|
|
37
44
|
};
|
|
38
45
|
|
|
@@ -42,7 +49,10 @@ dictionary PaymentDetailsInit : PaymentDetailsBase {
|
|
|
42
49
|
};
|
|
43
50
|
|
|
44
51
|
dictionary PaymentDetailsUpdate : PaymentDetailsBase {
|
|
52
|
+
DOMString error;
|
|
45
53
|
PaymentItem total;
|
|
54
|
+
AddressErrors shippingAddressErrors;
|
|
55
|
+
PayerErrors payerErrors;
|
|
46
56
|
object paymentMethodErrors;
|
|
47
57
|
};
|
|
48
58
|
|
|
@@ -53,6 +63,21 @@ dictionary PaymentDetailsModifier {
|
|
|
53
63
|
object data;
|
|
54
64
|
};
|
|
55
65
|
|
|
66
|
+
enum PaymentShippingType {
|
|
67
|
+
"shipping",
|
|
68
|
+
"delivery",
|
|
69
|
+
"pickup"
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
dictionary PaymentOptions {
|
|
73
|
+
boolean requestPayerName = false;
|
|
74
|
+
boolean requestBillingAddress = false;
|
|
75
|
+
boolean requestPayerEmail = false;
|
|
76
|
+
boolean requestPayerPhone = false;
|
|
77
|
+
boolean requestShipping = false;
|
|
78
|
+
PaymentShippingType shippingType = "shipping";
|
|
79
|
+
};
|
|
80
|
+
|
|
56
81
|
dictionary PaymentItem {
|
|
57
82
|
required DOMString label;
|
|
58
83
|
required PaymentCurrencyAmount amount;
|
|
@@ -69,6 +94,13 @@ enum PaymentComplete {
|
|
|
69
94
|
"unknown"
|
|
70
95
|
};
|
|
71
96
|
|
|
97
|
+
dictionary PaymentShippingOption {
|
|
98
|
+
required DOMString id;
|
|
99
|
+
required DOMString label;
|
|
100
|
+
required PaymentCurrencyAmount amount;
|
|
101
|
+
boolean selected = false;
|
|
102
|
+
};
|
|
103
|
+
|
|
72
104
|
[SecureContext, Exposed=Window]
|
|
73
105
|
interface PaymentResponse : EventTarget {
|
|
74
106
|
[Default] object toJSON();
|
|
@@ -76,6 +108,11 @@ interface PaymentResponse : EventTarget {
|
|
|
76
108
|
readonly attribute DOMString requestId;
|
|
77
109
|
readonly attribute DOMString methodName;
|
|
78
110
|
readonly attribute object details;
|
|
111
|
+
readonly attribute ContactAddress? shippingAddress;
|
|
112
|
+
readonly attribute DOMString? shippingOption;
|
|
113
|
+
readonly attribute DOMString? payerName;
|
|
114
|
+
readonly attribute DOMString? payerEmail;
|
|
115
|
+
readonly attribute DOMString? payerPhone;
|
|
79
116
|
|
|
80
117
|
[NewObject]
|
|
81
118
|
Promise<undefined> complete(
|
|
@@ -84,13 +121,36 @@ interface PaymentResponse : EventTarget {
|
|
|
84
121
|
);
|
|
85
122
|
[NewObject]
|
|
86
123
|
Promise<undefined> retry(optional PaymentValidationErrors errorFields = {});
|
|
124
|
+
|
|
125
|
+
attribute EventHandler onpayerdetailchange;
|
|
87
126
|
};
|
|
88
127
|
|
|
89
128
|
dictionary PaymentValidationErrors {
|
|
129
|
+
PayerErrors payer;
|
|
130
|
+
AddressErrors shippingAddress;
|
|
90
131
|
DOMString error;
|
|
91
132
|
object paymentMethod;
|
|
92
133
|
};
|
|
93
134
|
|
|
135
|
+
dictionary PayerErrors {
|
|
136
|
+
DOMString email;
|
|
137
|
+
DOMString name;
|
|
138
|
+
DOMString phone;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
dictionary AddressErrors {
|
|
142
|
+
DOMString addressLine;
|
|
143
|
+
DOMString city;
|
|
144
|
+
DOMString country;
|
|
145
|
+
DOMString dependentLocality;
|
|
146
|
+
DOMString organization;
|
|
147
|
+
DOMString phone;
|
|
148
|
+
DOMString postalCode;
|
|
149
|
+
DOMString recipient;
|
|
150
|
+
DOMString region;
|
|
151
|
+
DOMString sortingCode;
|
|
152
|
+
};
|
|
153
|
+
|
|
94
154
|
[SecureContext, Exposed=Window]
|
|
95
155
|
interface PaymentMethodChangeEvent : PaymentRequestUpdateEvent {
|
|
96
156
|
constructor(DOMString type, optional PaymentMethodChangeEventInit eventInitDict = {});
|
package/pointerevents.idl
CHANGED
|
@@ -16,6 +16,7 @@ dictionary PointerEventInit : MouseEventInit {
|
|
|
16
16
|
double azimuthAngle;
|
|
17
17
|
DOMString pointerType = "";
|
|
18
18
|
boolean isPrimary = false;
|
|
19
|
+
long persistentDeviceId = 0;
|
|
19
20
|
sequence<PointerEvent> coalescedEvents = [];
|
|
20
21
|
sequence<PointerEvent> predictedEvents = [];
|
|
21
22
|
};
|
|
@@ -35,6 +36,7 @@ interface PointerEvent : MouseEvent {
|
|
|
35
36
|
readonly attribute double azimuthAngle;
|
|
36
37
|
readonly attribute DOMString pointerType;
|
|
37
38
|
readonly attribute boolean isPrimary;
|
|
39
|
+
readonly attribute long persistentDeviceId;
|
|
38
40
|
[SecureContext] sequence<PointerEvent> getCoalescedEvents();
|
|
39
41
|
sequence<PointerEvent> getPredictedEvents();
|
|
40
42
|
};
|
package/scheduling-apis.idl
CHANGED
|
@@ -9,35 +9,19 @@ enum TaskPriority {
|
|
|
9
9
|
"background"
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
enum ContinuationPriority {
|
|
13
|
-
"user-blocking",
|
|
14
|
-
"user-visible",
|
|
15
|
-
"background",
|
|
16
|
-
"inherit"
|
|
17
|
-
};
|
|
18
|
-
|
|
19
12
|
dictionary SchedulerPostTaskOptions {
|
|
20
13
|
AbortSignal signal;
|
|
21
14
|
TaskPriority priority;
|
|
22
15
|
[EnforceRange] unsigned long long delay = 0;
|
|
23
16
|
};
|
|
24
17
|
|
|
25
|
-
enum SchedulerSignalInherit {
|
|
26
|
-
"inherit"
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
dictionary SchedulerYieldOptions {
|
|
30
|
-
(AbortSignal or SchedulerSignalInherit) signal;
|
|
31
|
-
ContinuationPriority priority;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
18
|
callback SchedulerPostTaskCallback = any ();
|
|
35
19
|
|
|
36
20
|
[Exposed=(Window, Worker)]
|
|
37
21
|
interface Scheduler {
|
|
38
22
|
Promise<any> postTask(SchedulerPostTaskCallback callback,
|
|
39
23
|
optional SchedulerPostTaskOptions options = {});
|
|
40
|
-
Promise<undefined> yield(
|
|
24
|
+
Promise<undefined> yield();
|
|
41
25
|
};
|
|
42
26
|
|
|
43
27
|
[Exposed=(Window, Worker)]
|
package/turtledove.idl
CHANGED
|
@@ -20,7 +20,6 @@ dictionary AuctionAd {
|
|
|
20
20
|
dictionary GenerateBidInterestGroup {
|
|
21
21
|
required USVString owner;
|
|
22
22
|
required USVString name;
|
|
23
|
-
required double lifetimeMs;
|
|
24
23
|
|
|
25
24
|
boolean enableBiddingSignalsPrioritization = false;
|
|
26
25
|
record<DOMString, double> priorityVector;
|
|
@@ -42,6 +41,7 @@ dictionary GenerateBidInterestGroup {
|
|
|
42
41
|
dictionary AuctionAdInterestGroup : GenerateBidInterestGroup {
|
|
43
42
|
double priority = 0.0;
|
|
44
43
|
record<DOMString, double> prioritySignalsOverrides;
|
|
44
|
+
required double lifetimeMs;
|
|
45
45
|
DOMString additionalBidKey;
|
|
46
46
|
};
|
|
47
47
|
|
|
@@ -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/webauthn.idl
CHANGED
|
@@ -19,7 +19,7 @@ typedef DOMString Base64URLString;
|
|
|
19
19
|
typedef object PublicKeyCredentialJSON;
|
|
20
20
|
|
|
21
21
|
dictionary RegistrationResponseJSON {
|
|
22
|
-
required
|
|
22
|
+
required DOMString id;
|
|
23
23
|
required Base64URLString rawId;
|
|
24
24
|
required AuthenticatorAttestationResponseJSON response;
|
|
25
25
|
DOMString authenticatorAttachment;
|
|
@@ -45,7 +45,7 @@ dictionary AuthenticatorAttestationResponseJSON {
|
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
dictionary AuthenticationResponseJSON {
|
|
48
|
-
required
|
|
48
|
+
required DOMString id;
|
|
49
49
|
required Base64URLString rawId;
|
|
50
50
|
required AuthenticatorAssertionResponseJSON response;
|
|
51
51
|
DOMString authenticatorAttachment;
|
|
@@ -106,8 +106,8 @@ dictionary PublicKeyCredentialUserEntityJSON {
|
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
dictionary PublicKeyCredentialDescriptorJSON {
|
|
109
|
-
required Base64URLString id;
|
|
110
109
|
required DOMString type;
|
|
110
|
+
required Base64URLString id;
|
|
111
111
|
sequence<DOMString> transports;
|
|
112
112
|
};
|
|
113
113
|
|
|
@@ -211,7 +211,7 @@ enum AttestationConveyancePreference {
|
|
|
211
211
|
dictionary PublicKeyCredentialRequestOptions {
|
|
212
212
|
required BufferSource challenge;
|
|
213
213
|
unsigned long timeout;
|
|
214
|
-
|
|
214
|
+
DOMString rpId;
|
|
215
215
|
sequence<PublicKeyCredentialDescriptor> allowCredentials = [];
|
|
216
216
|
DOMString userVerification = "preferred";
|
|
217
217
|
sequence<DOMString> hints = [];
|
|
@@ -228,8 +228,8 @@ dictionary CollectedClientData {
|
|
|
228
228
|
required DOMString type;
|
|
229
229
|
required DOMString challenge;
|
|
230
230
|
required DOMString origin;
|
|
231
|
-
DOMString topOrigin;
|
|
232
231
|
boolean crossOrigin;
|
|
232
|
+
DOMString topOrigin;
|
|
233
233
|
};
|
|
234
234
|
|
|
235
235
|
dictionary TokenBinding {
|
|
@@ -357,21 +357,3 @@ dictionary AuthenticationExtensionsLargeBlobOutputs {
|
|
|
357
357
|
ArrayBuffer blob;
|
|
358
358
|
boolean written;
|
|
359
359
|
};
|
|
360
|
-
|
|
361
|
-
dictionary AuthenticationExtensionsSupplementalPubKeysInputs {
|
|
362
|
-
required sequence<DOMString> scopes;
|
|
363
|
-
DOMString attestation = "indirect";
|
|
364
|
-
sequence<DOMString> attestationFormats = [];
|
|
365
|
-
};
|
|
366
|
-
|
|
367
|
-
partial dictionary AuthenticationExtensionsClientInputs {
|
|
368
|
-
AuthenticationExtensionsSupplementalPubKeysInputs supplementalPubKeys;
|
|
369
|
-
};
|
|
370
|
-
|
|
371
|
-
dictionary AuthenticationExtensionsSupplementalPubKeysOutputs {
|
|
372
|
-
required sequence<ArrayBuffer> signatures;
|
|
373
|
-
};
|
|
374
|
-
|
|
375
|
-
partial dictionary AuthenticationExtensionsClientOutputs {
|
|
376
|
-
AuthenticationExtensionsSupplementalPubKeysOutputs supplementalPubKeys;
|
|
377
|
-
};
|
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
|
|
565
|
-
WebGLFramebuffer
|
|
566
|
-
WebGLProgram
|
|
567
|
-
WebGLRenderbuffer
|
|
564
|
+
WebGLBuffer createBuffer();
|
|
565
|
+
WebGLFramebuffer createFramebuffer();
|
|
566
|
+
WebGLProgram createProgram();
|
|
567
|
+
WebGLRenderbuffer createRenderbuffer();
|
|
568
568
|
WebGLShader? createShader(GLenum type);
|
|
569
|
-
WebGLTexture
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
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,
|
|
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,
|
|
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,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
MLOperand
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
MLOperand
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
MLOperand
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
MLOperand
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
MLOperand
|
|
218
|
-
MLOperand
|
|
219
|
-
MLOperand
|
|
220
|
-
};
|
|
221
|
-
|
|
222
|
-
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
584
|
+
MLOperand where(MLOperand condition,
|
|
585
|
+
MLOperand trueValue,
|
|
586
|
+
MLOperand falseValue,
|
|
587
|
+
optional MLOperatorOptions options = {});
|
|
558
588
|
};
|