@@ -1223,9 +1223,9 @@ The {{MLOpSupportLimits}} has the following top level members, aside from these,
1223
1223
dictionary MLOpSupportLimits {
1224
1224
MLInputOperandLayout preferredInputLayout;
1225
1225
[EnforceRange] unsigned long long maxTensorByteLength;
1226
- MLDataTypeLimits input;
1227
- MLDataTypeLimits constant;
1228
- MLDataTypeLimits output;
1226
+ MLTensorLimits input;
1227
+ MLTensorLimits constant;
1228
+ MLTensorLimits output;
1229
1229
};
1230
1230
</script>
1231
1231
@@ -1241,18 +1241,6 @@ dictionary MLOpSupportLimits {
1241
1241
: <dfn>output</dfn>
1242
1242
:: Support limits for output {{MLOperand}}s for an {{MLGraph}}.
1243
1243
</dl>
1244
- #### {{MLDataTypeLimits}} dictionary #### {#api-mlcontext-datatypelimits-dictionary}
1245
- <script type="idl">
1246
- typedef sequence<MLOperandDataType> MLDataTypeList;
1247
-
1248
- dictionary MLDataTypeLimits {
1249
- MLDataTypeList dataTypes;
1250
- };
1251
- </script>
1252
- <dl dfn-type=dict-member dfn-for=MLDataTypeLimits>
1253
- : <dfn>dataTypes</dfn>
1254
- :: Supported data types.
1255
- </dl>
1256
1244
1257
1245
#### {{MLRankRange}} dictionary #### {#api-mlcontext-rankrange-dictionary}
1258
1246
<script type="idl">
@@ -1270,6 +1258,8 @@ dictionary MLRankRange {
1270
1258
1271
1259
#### {{MLTensorLimits}} dictionary #### {#api-mlcontext-tensorlimits-dictionary}
1272
1260
<script type="idl">
1261
+ typedef sequence<MLOperandDataType> MLDataTypeList;
1262
+
1273
1263
dictionary MLTensorLimits {
1274
1264
MLDataTypeList dataTypes;
1275
1265
MLRankRange rankRange;
@@ -1287,7 +1277,7 @@ dictionary MLTensorLimits {
1287
1277
dictionary MLBinarySupportLimits {
1288
1278
MLTensorLimits a;
1289
1279
MLTensorLimits b;
1290
- MLDataTypeLimits output;
1280
+ MLTensorLimits output;
1291
1281
};
1292
1282
</script>
1293
1283
@@ -1297,22 +1287,22 @@ dictionary MLBinarySupportLimits {
1297
1287
: <dfn>b</dfn>
1298
1288
:: {{MLTensorLimits}} for b operand.
1299
1289
: <dfn>output</dfn>
1300
- :: {{MLDataTypeLimits }} for output operand.
1290
+ :: {{MLTensorLimits }} for output operand.
1301
1291
</dl>
1302
1292
1303
1293
#### {{MLSingleInputSupportLimits}} dictionary #### {#api-mlcontext-singleinputsupportlimits-dictionary}
1304
1294
<script type="idl">
1305
1295
dictionary MLSingleInputSupportLimits {
1306
1296
MLTensorLimits input;
1307
- MLDataTypeLimits output;
1297
+ MLTensorLimits output;
1308
1298
};
1309
1299
</script>
1310
1300
1311
1301
<dl dfn-type=dict-member dfn-for=MLSingleInputSupportLimits>
1312
1302
: <dfn>input</dfn>
1313
1303
:: {{MLTensorLimits}} for input operand.
1314
1304
: <dfn>output</dfn>
1315
- :: {{MLDataTypeLimits }} for output operand.
1305
+ :: {{MLTensorLimits }} for output operand.
1316
1306
</dl>
1317
1307
1318
1308
### {{MLContext/destroy()}} ### {#api-mlcontext-destroy}
@@ -1556,7 +1546,7 @@ Since the {{MLOperand/[[builder]]}} object is bound by the {{MLGraphBuilder/cons
1556
1546
1557
1547
If an operation supports only a subset of {{MLOperandDataType}}s, the <dfn>allowed data types</dfn> for each of the operation's input operands, including both positional arguments and options, are given as either an explicit list of {{MLOperandDataType}}s, or a constraint that the operand's [=MLOperand/dataType=] must be the <dfn lt="same type as">same as</dfn> the [=MLOperand/dataType=] of another input operand, or <dfn lt="any data type">any</dfn> to allow any {{MLOperandDataType}}.
1558
1548
1559
- Implementations may support fewer data types for operands than specified. This can be queried for each operation using the {{MLContext/opSupportLimits()}} method on {{MLContext}} and inspecting the {{MLDataTypeLimits /dataTypes}} value of the corresponding member for the operation.
1549
+ Implementations may support fewer data types for operands than specified. This can be queried for each operation using the {{MLContext/opSupportLimits()}} method on {{MLContext}} and inspecting the {{MLTensorLimits /dataTypes}} value of the corresponding member for the operation.
1560
1550
1561
1551
Issue: Should we specify the subset of data types that must be supported for each operator?
1562
1552
@@ -2121,7 +2111,7 @@ dictionary MLBatchNormalizationSupportLimits {
2121
2111
MLTensorLimits variance;
2122
2112
MLTensorLimits scale;
2123
2113
MLTensorLimits bias;
2124
- MLDataTypeLimits output;
2114
+ MLTensorLimits output;
2125
2115
};
2126
2116
2127
2117
partial dictionary MLOpSupportLimits {
@@ -2522,7 +2512,7 @@ partial interface MLGraphBuilder {
2522
2512
2523
2513
dictionary MLConcatSupportLimits {
2524
2514
MLTensorLimits inputs;
2525
- MLDataTypeLimits output;
2515
+ MLTensorLimits output;
2526
2516
};
2527
2517
2528
2518
partial dictionary MLOpSupportLimits {
@@ -2568,7 +2558,7 @@ partial dictionary MLOpSupportLimits {
2568
2558
: <dfn>inputs</dfn>
2569
2559
:: {{MLTensorLimits}} for all input operands.
2570
2560
: <dfn>output</dfn>
2571
- :: {{MLDataTypeLimits }} for output operand.
2561
+ :: {{MLTensorLimits }} for output operand.
2572
2562
</dl>
2573
2563
2574
2564
{{MLOpSupportLimits}} has the following member for {{MLGraphBuilder/concat()}}:
@@ -2640,7 +2630,7 @@ dictionary MLConv2dSupportLimits {
2640
2630
MLTensorLimits input;
2641
2631
MLTensorLimits filter;
2642
2632
MLTensorLimits bias;
2643
- MLDataTypeLimits output;
2633
+ MLTensorLimits output;
2644
2634
};
2645
2635
2646
2636
partial dictionary MLOpSupportLimits {
@@ -2747,7 +2737,7 @@ partial dictionary MLOpSupportLimits {
2747
2737
: <dfn>bias</dfn>
2748
2738
:: {{MLTensorLimits}} for bias operand.
2749
2739
: <dfn>output</dfn>
2750
- :: {{MLDataTypeLimits }} for output operand.
2740
+ :: {{MLTensorLimits }} for output operand.
2751
2741
</dl>
2752
2742
2753
2743
{{MLOpSupportLimits}} has the following member for {{MLGraphBuilder/conv2d()}}:
@@ -3366,7 +3356,7 @@ partial interface MLGraphBuilder {
3366
3356
3367
3357
dictionary MLLogicalNotSupportLimits {
3368
3358
MLTensorLimits a;
3369
- MLDataTypeLimits output;
3359
+ MLTensorLimits output;
3370
3360
};
3371
3361
3372
3362
partial dictionary MLOpSupportLimits {
@@ -3424,7 +3414,7 @@ partial dictionary MLOpSupportLimits {
3424
3414
: <dfn>a</dfn>
3425
3415
:: {{MLTensorLimits}} for a operand.
3426
3416
: <dfn>output</dfn>
3427
- :: {{MLDataTypeLimits }} for output operand.
3417
+ :: {{MLTensorLimits }} for output operand.
3428
3418
</dl>
3429
3419
3430
3420
{{MLOpSupportLimits}} has the following members for element-wise logical operations:
@@ -3845,7 +3835,7 @@ dictionary MLQuantizeDequantizeLinearSupportLimits {
3845
3835
MLTensorLimits input;
3846
3836
MLTensorLimits scale;
3847
3837
MLTensorLimits zeroPoint;
3848
- MLDataTypeLimits output;
3838
+ MLTensorLimits output;
3849
3839
};
3850
3840
3851
3841
partial dictionary MLOpSupportLimits {
@@ -3903,7 +3893,7 @@ partial dictionary MLOpSupportLimits {
3903
3893
: <dfn>zeroPoint</dfn>
3904
3894
:: {{MLTensorLimits}} for zeroPoint operand.
3905
3895
: <dfn>output</dfn>
3906
- :: {{MLDataTypeLimits }} for output operand.
3896
+ :: {{MLTensorLimits }} for output operand.
3907
3897
</dl>
3908
3898
3909
3899
{{MLOpSupportLimits}} has the following member for {{MLGraphBuilder/dequantizeLinear()}}:
@@ -4303,7 +4293,7 @@ partial interface MLGraphBuilder {
4303
4293
dictionary MLGatherSupportLimits {
4304
4294
MLTensorLimits input;
4305
4295
MLTensorLimits indices;
4306
- MLDataTypeLimits output;
4296
+ MLTensorLimits output;
4307
4297
};
4308
4298
4309
4299
partial dictionary MLOpSupportLimits {
@@ -4364,7 +4354,7 @@ partial dictionary MLOpSupportLimits {
4364
4354
: <dfn>indices</dfn>
4365
4355
:: {{MLTensorLimits}} for indices operand.
4366
4356
: <dfn>output</dfn>
4367
- :: {{MLDataTypeLimits }} for output operand.
4357
+ :: {{MLTensorLimits }} for output operand.
4368
4358
</dl>
4369
4359
4370
4360
{{MLOpSupportLimits}} has the following members for {{MLGraphBuilder/gather()}}:
@@ -4931,7 +4921,7 @@ dictionary MLGemmSupportLimits {
4931
4921
MLTensorLimits a;
4932
4922
MLTensorLimits b;
4933
4923
MLTensorLimits c;
4934
- MLDataTypeLimits output;
4924
+ MLTensorLimits output;
4935
4925
};
4936
4926
4937
4927
partial dictionary MLOpSupportLimits {
@@ -5011,7 +5001,7 @@ partial dictionary MLOpSupportLimits {
5011
5001
: <dfn>c</dfn>
5012
5002
:: {{MLTensorLimits}} for c operand.
5013
5003
: <dfn>output</dfn>
5014
- :: {{MLDataTypeLimits }} for output operand.
5004
+ :: {{MLTensorLimits }} for output operand.
5015
5005
</dl>
5016
5006
5017
5007
{{MLOpSupportLimits}} has the following member for {{MLGraphBuilder/gemm()}}:
@@ -5122,7 +5112,7 @@ dictionary MLGruSupportLimits {
5122
5112
MLTensorLimits bias;
5123
5113
MLTensorLimits recurrentBias;
5124
5114
MLTensorLimits initialHiddenState;
5125
- MLDataTypeLimits outputs;
5115
+ MLTensorLimits outputs;
5126
5116
};
5127
5117
5128
5118
partial dictionary MLOpSupportLimits {
@@ -5244,7 +5234,7 @@ partial dictionary MLOpSupportLimits {
5244
5234
: <dfn>initialHiddenState</dfn>
5245
5235
:: {{MLTensorLimits}} for initialHiddenState operand.
5246
5236
: <dfn>outputs</dfn>
5247
- :: {{MLDataTypeLimits }} for all the output operands.
5237
+ :: {{MLTensorLimits }} for all the output operands.
5248
5238
</dl>
5249
5239
5250
5240
{{MLOpSupportLimits}} has the following member for {{MLGraphBuilder/gru()}}:
@@ -5463,7 +5453,7 @@ dictionary MLGruCellSupportLimits {
5463
5453
MLTensorLimits hiddenState;
5464
5454
MLTensorLimits bias;
5465
5455
MLTensorLimits recurrentBias;
5466
- MLDataTypeLimits output;
5456
+ MLTensorLimits output;
5467
5457
};
5468
5458
5469
5459
partial dictionary MLOpSupportLimits {
@@ -5562,7 +5552,7 @@ partial dictionary MLOpSupportLimits {
5562
5552
: <dfn>recurrentBias</dfn>
5563
5553
:: {{MLTensorLimits}} for recurrentBias operand.
5564
5554
: <dfn>output</dfn>
5565
- :: {{MLDataTypeLimits }} for output operand.
5555
+ :: {{MLTensorLimits }} for output operand.
5566
5556
</dl>
5567
5557
5568
5558
{{MLOpSupportLimits}} has the following member for {{MLGraphBuilder/gruCell()}}:
@@ -5922,7 +5912,7 @@ dictionary MLNormalizationSupportLimits {
5922
5912
MLTensorLimits input;
5923
5913
MLTensorLimits scale;
5924
5914
MLTensorLimits bias;
5925
- MLDataTypeLimits output;
5915
+ MLTensorLimits output;
5926
5916
};
5927
5917
5928
5918
partial dictionary MLOpSupportLimits {
@@ -5998,7 +5988,7 @@ partial dictionary MLOpSupportLimits {
5998
5988
: <dfn>bias</dfn>
5999
5989
:: {{MLTensorLimits}} for bias operand.
6000
5990
: <dfn>output</dfn>
6001
- :: {{MLDataTypeLimits }} for output operand.
5991
+ :: {{MLTensorLimits }} for output operand.
6002
5992
</dl>
6003
5993
6004
5994
{{MLOpSupportLimits}} has the following member for {{MLGraphBuilder/instanceNormalization()}}:
@@ -6443,7 +6433,7 @@ dictionary MLLstmSupportLimits {
6443
6433
MLTensorLimits peepholeWeight;
6444
6434
MLTensorLimits initialHiddenState;
6445
6435
MLTensorLimits initialCellState;
6446
- MLDataTypeLimits outputs;
6436
+ MLTensorLimits outputs;
6447
6437
};
6448
6438
6449
6439
partial dictionary MLOpSupportLimits {
@@ -6588,7 +6578,7 @@ partial dictionary MLOpSupportLimits {
6588
6578
: <dfn>initialCellState</dfn>
6589
6579
:: {{MLTensorLimits}} for initialCellState operand.
6590
6580
: <dfn>outputs</dfn>
6591
- :: {{MLDataTypeLimits }} for all the output operands.
6581
+ :: {{MLTensorLimits }} for all the output operands.
6592
6582
</dl>
6593
6583
6594
6584
{{MLOpSupportLimits}} has the following member for {{MLGraphBuilder/lstm()}}:
@@ -6852,7 +6842,7 @@ dictionary MLLstmCellSupportLimits {
6852
6842
MLTensorLimits bias;
6853
6843
MLTensorLimits recurrentBias;
6854
6844
MLTensorLimits peepholeWeight;
6855
- MLDataTypeLimits outputs;
6845
+ MLTensorLimits outputs;
6856
6846
};
6857
6847
6858
6848
partial dictionary MLOpSupportLimits {
@@ -6976,7 +6966,7 @@ partial dictionary MLOpSupportLimits {
6976
6966
: <dfn>peepholeWeight</dfn>
6977
6967
:: {{MLTensorLimits}} for peepholeWeight operand.
6978
6968
: <dfn>outputs</dfn>
6979
- :: {{MLDataTypeLimits }} for all the output operands.
6969
+ :: {{MLTensorLimits }} for all the output operands.
6980
6970
</dl>
6981
6971
6982
6972
{{MLOpSupportLimits}} has the following member for {{MLGraphBuilder/lstmCell()}}:
@@ -7657,7 +7647,7 @@ partial interface MLGraphBuilder {
7657
7647
dictionary MLPreluSupportLimits {
7658
7648
MLTensorLimits input;
7659
7649
MLTensorLimits slope;
7660
- MLDataTypeLimits output;
7650
+ MLTensorLimits output;
7661
7651
};
7662
7652
7663
7653
partial dictionary MLOpSupportLimits {
@@ -7707,7 +7697,7 @@ partial dictionary MLOpSupportLimits {
7707
7697
: <dfn>slope</dfn>
7708
7698
:: {{MLTensorLimits}} for slope operand.
7709
7699
: <dfn>output</dfn>
7710
- :: {{MLDataTypeLimits }} for output operand.
7700
+ :: {{MLTensorLimits }} for output operand.
7711
7701
</dl>
7712
7702
7713
7703
{{MLOpSupportLimits}} has the following member for {{MLGraphBuilder/prelu()}}:
@@ -8438,7 +8428,7 @@ dictionary MLScatterSupportLimits {
8438
8428
MLTensorLimits input;
8439
8429
MLTensorLimits indices;
8440
8430
MLTensorLimits updates;
8441
- MLDataTypeLimits output;
8431
+ MLTensorLimits output;
8442
8432
};
8443
8433
8444
8434
partial dictionary MLOpSupportLimits {
@@ -8503,7 +8493,7 @@ partial dictionary MLOpSupportLimits {
8503
8493
: <dfn>updates</dfn>
8504
8494
:: {{MLTensorLimits}} for updates operand.
8505
8495
: <dfn>output</dfn>
8506
- :: {{MLDataTypeLimits }} for output operand.
8496
+ :: {{MLTensorLimits }} for output operand.
8507
8497
</dl>
8508
8498
8509
8499
{{MLOpSupportLimits}} has the following members for {{MLGraphBuilder/scatterElements()}}:
@@ -9310,7 +9300,7 @@ partial interface MLGraphBuilder {
9310
9300
9311
9301
dictionary MLSplitSupportLimits {
9312
9302
MLTensorLimits input;
9313
- MLDataTypeLimits outputs;
9303
+ MLTensorLimits outputs;
9314
9304
};
9315
9305
9316
9306
partial dictionary MLOpSupportLimits {
@@ -9360,7 +9350,7 @@ partial dictionary MLOpSupportLimits {
9360
9350
: <dfn>input</dfn>
9361
9351
:: {{MLTensorLimits}} for input operand.
9362
9352
: <dfn>outputs</dfn>
9363
- :: {{MLDataTypeLimits }} for all the output operands.
9353
+ :: {{MLTensorLimits }} for all the output operands.
9364
9354
</dl>
9365
9355
9366
9356
{{MLOpSupportLimits}} has the following member for {{MLGraphBuilder/split()}}:
@@ -9826,7 +9816,7 @@ dictionary MLWhereSupportLimits {
9826
9816
MLTensorLimits condition;
9827
9817
MLTensorLimits trueValue;
9828
9818
MLTensorLimits falseValue;
9829
- MLDataTypeLimits output;
9819
+ MLTensorLimits output;
9830
9820
};
9831
9821
9832
9822
partial dictionary MLOpSupportLimits {
@@ -9884,7 +9874,7 @@ partial dictionary MLOpSupportLimits {
9884
9874
: <dfn>falseValue</dfn>
9885
9875
:: {{MLTensorLimits}} for falseValue operand.
9886
9876
: <dfn>output</dfn>
9887
- :: {{MLDataTypeLimits }} for output operand.
9877
+ :: {{MLTensorLimits }} for output operand.
9888
9878
</dl>
9889
9879
9890
9880
{{MLOpSupportLimits}} has the following member for {{MLGraphBuilder/where()}}:
0 commit comments