@@ -1422,9 +1422,9 @@ The {{MLOpSupportLimits}} has the following top level members, aside from these,
1422
1422
dictionary MLOpSupportLimits {
1423
1423
MLInputOperandLayout preferredInputLayout;
1424
1424
[EnforceRange] unsigned long long maxTensorByteLength;
1425
- MLDataTypeLimits input;
1426
- MLDataTypeLimits constant;
1427
- MLDataTypeLimits output;
1425
+ MLTensorLimits input;
1426
+ MLTensorLimits constant;
1427
+ MLTensorLimits output;
1428
1428
};
1429
1429
</script>
1430
1430
@@ -1440,18 +1440,6 @@ dictionary MLOpSupportLimits {
1440
1440
: <dfn>output</dfn>
1441
1441
:: Support limits for output {{MLOperand}}s for an {{MLGraph}}.
1442
1442
</dl>
1443
- #### {{MLDataTypeLimits}} dictionary #### {#api-mlcontext-datatypelimits-dictionary}
1444
- <script type="idl">
1445
- typedef sequence<MLOperandDataType> MLDataTypeList;
1446
-
1447
- dictionary MLDataTypeLimits {
1448
- MLDataTypeList dataTypes;
1449
- };
1450
- </script>
1451
- <dl dfn-type=dict-member dfn-for=MLDataTypeLimits>
1452
- : <dfn>dataTypes</dfn>
1453
- :: Supported data types.
1454
- </dl>
1455
1443
1456
1444
#### {{MLRankRange}} dictionary #### {#api-mlcontext-rankrange-dictionary}
1457
1445
<script type="idl">
@@ -1469,6 +1457,8 @@ dictionary MLRankRange {
1469
1457
1470
1458
#### {{MLTensorLimits}} dictionary #### {#api-mlcontext-tensorlimits-dictionary}
1471
1459
<script type="idl">
1460
+ typedef sequence<MLOperandDataType> MLDataTypeList;
1461
+
1472
1462
dictionary MLTensorLimits {
1473
1463
MLDataTypeList dataTypes;
1474
1464
MLRankRange rankRange;
@@ -1486,7 +1476,7 @@ dictionary MLTensorLimits {
1486
1476
dictionary MLBinarySupportLimits {
1487
1477
MLTensorLimits a;
1488
1478
MLTensorLimits b;
1489
- MLDataTypeLimits output;
1479
+ MLTensorLimits output;
1490
1480
};
1491
1481
</script>
1492
1482
@@ -1496,22 +1486,22 @@ dictionary MLBinarySupportLimits {
1496
1486
: <dfn>b</dfn>
1497
1487
:: {{MLTensorLimits}} for b operand.
1498
1488
: <dfn>output</dfn>
1499
- :: {{MLDataTypeLimits }} for output operand.
1489
+ :: {{MLTensorLimits }} for output operand.
1500
1490
</dl>
1501
1491
1502
1492
#### {{MLSingleInputSupportLimits}} dictionary #### {#api-mlcontext-singleinputsupportlimits-dictionary}
1503
1493
<script type="idl">
1504
1494
dictionary MLSingleInputSupportLimits {
1505
1495
MLTensorLimits input;
1506
- MLDataTypeLimits output;
1496
+ MLTensorLimits output;
1507
1497
};
1508
1498
</script>
1509
1499
1510
1500
<dl dfn-type=dict-member dfn-for=MLSingleInputSupportLimits>
1511
1501
: <dfn>input</dfn>
1512
1502
:: {{MLTensorLimits}} for input operand.
1513
1503
: <dfn>output</dfn>
1514
- :: {{MLDataTypeLimits }} for output operand.
1504
+ :: {{MLTensorLimits }} for output operand.
1515
1505
</dl>
1516
1506
1517
1507
### {{MLContext/destroy()}} ### {#api-mlcontext-destroy}
@@ -1755,7 +1745,7 @@ Since the {{MLOperand/[[builder]]}} object is bound by the {{MLGraphBuilder/cons
1755
1745
1756
1746
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}}.
1757
1747
1758
- 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.
1748
+ 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.
1759
1749
1760
1750
Issue: Should we specify the subset of data types that must be supported for each operator?
1761
1751
@@ -2321,7 +2311,7 @@ dictionary MLBatchNormalizationSupportLimits {
2321
2311
MLTensorLimits variance;
2322
2312
MLTensorLimits scale;
2323
2313
MLTensorLimits bias;
2324
- MLDataTypeLimits output;
2314
+ MLTensorLimits output;
2325
2315
};
2326
2316
2327
2317
partial dictionary MLOpSupportLimits {
@@ -2722,7 +2712,7 @@ partial interface MLGraphBuilder {
2722
2712
2723
2713
dictionary MLConcatSupportLimits {
2724
2714
MLTensorLimits inputs;
2725
- MLDataTypeLimits output;
2715
+ MLTensorLimits output;
2726
2716
};
2727
2717
2728
2718
partial dictionary MLOpSupportLimits {
@@ -2768,7 +2758,7 @@ partial dictionary MLOpSupportLimits {
2768
2758
: <dfn>inputs</dfn>
2769
2759
:: {{MLTensorLimits}} for all input operands.
2770
2760
: <dfn>output</dfn>
2771
- :: {{MLDataTypeLimits }} for output operand.
2761
+ :: {{MLTensorLimits }} for output operand.
2772
2762
</dl>
2773
2763
2774
2764
{{MLOpSupportLimits}} has the following member for {{MLGraphBuilder/concat()}}:
@@ -2840,7 +2830,7 @@ dictionary MLConv2dSupportLimits {
2840
2830
MLTensorLimits input;
2841
2831
MLTensorLimits filter;
2842
2832
MLTensorLimits bias;
2843
- MLDataTypeLimits output;
2833
+ MLTensorLimits output;
2844
2834
};
2845
2835
2846
2836
partial dictionary MLOpSupportLimits {
@@ -2947,7 +2937,7 @@ partial dictionary MLOpSupportLimits {
2947
2937
: <dfn>bias</dfn>
2948
2938
:: {{MLTensorLimits}} for bias operand.
2949
2939
: <dfn>output</dfn>
2950
- :: {{MLDataTypeLimits }} for output operand.
2940
+ :: {{MLTensorLimits }} for output operand.
2951
2941
</dl>
2952
2942
2953
2943
{{MLOpSupportLimits}} has the following member for {{MLGraphBuilder/conv2d()}}:
@@ -3568,7 +3558,7 @@ partial interface MLGraphBuilder {
3568
3558
3569
3559
dictionary MLLogicalNotSupportLimits {
3570
3560
MLTensorLimits a;
3571
- MLDataTypeLimits output;
3561
+ MLTensorLimits output;
3572
3562
};
3573
3563
3574
3564
partial dictionary MLOpSupportLimits {
@@ -3628,7 +3618,7 @@ partial dictionary MLOpSupportLimits {
3628
3618
: <dfn>a</dfn>
3629
3619
:: {{MLTensorLimits}} for a operand.
3630
3620
: <dfn>output</dfn>
3631
- :: {{MLDataTypeLimits }} for output operand.
3621
+ :: {{MLTensorLimits }} for output operand.
3632
3622
</dl>
3633
3623
3634
3624
{{MLOpSupportLimits}} has the following members for element-wise logical operations:
@@ -4083,7 +4073,7 @@ dictionary MLQuantizeDequantizeLinearSupportLimits {
4083
4073
MLTensorLimits input;
4084
4074
MLTensorLimits scale;
4085
4075
MLTensorLimits zeroPoint;
4086
- MLDataTypeLimits output;
4076
+ MLTensorLimits output;
4087
4077
};
4088
4078
4089
4079
partial dictionary MLOpSupportLimits {
@@ -4141,7 +4131,7 @@ partial dictionary MLOpSupportLimits {
4141
4131
: <dfn>zeroPoint</dfn>
4142
4132
:: {{MLTensorLimits}} for zeroPoint operand.
4143
4133
: <dfn>output</dfn>
4144
- :: {{MLDataTypeLimits }} for output operand.
4134
+ :: {{MLTensorLimits }} for output operand.
4145
4135
</dl>
4146
4136
4147
4137
{{MLOpSupportLimits}} has the following member for {{MLGraphBuilder/dequantizeLinear()}}:
@@ -4540,7 +4530,7 @@ partial interface MLGraphBuilder {
4540
4530
dictionary MLGatherSupportLimits {
4541
4531
MLTensorLimits input;
4542
4532
MLTensorLimits indices;
4543
- MLDataTypeLimits output;
4533
+ MLTensorLimits output;
4544
4534
};
4545
4535
4546
4536
partial dictionary MLOpSupportLimits {
@@ -4601,7 +4591,7 @@ partial dictionary MLOpSupportLimits {
4601
4591
: <dfn>indices</dfn>
4602
4592
:: {{MLTensorLimits}} for indices operand.
4603
4593
: <dfn>output</dfn>
4604
- :: {{MLDataTypeLimits }} for output operand.
4594
+ :: {{MLTensorLimits }} for output operand.
4605
4595
</dl>
4606
4596
4607
4597
{{MLOpSupportLimits}} has the following members for {{MLGraphBuilder/gather()}}:
@@ -5168,7 +5158,7 @@ dictionary MLGemmSupportLimits {
5168
5158
MLTensorLimits a;
5169
5159
MLTensorLimits b;
5170
5160
MLTensorLimits c;
5171
- MLDataTypeLimits output;
5161
+ MLTensorLimits output;
5172
5162
};
5173
5163
5174
5164
partial dictionary MLOpSupportLimits {
@@ -5248,7 +5238,7 @@ partial dictionary MLOpSupportLimits {
5248
5238
: <dfn>c</dfn>
5249
5239
:: {{MLTensorLimits}} for c operand.
5250
5240
: <dfn>output</dfn>
5251
- :: {{MLDataTypeLimits }} for output operand.
5241
+ :: {{MLTensorLimits }} for output operand.
5252
5242
</dl>
5253
5243
5254
5244
{{MLOpSupportLimits}} has the following member for {{MLGraphBuilder/gemm()}}:
@@ -5359,7 +5349,7 @@ dictionary MLGruSupportLimits {
5359
5349
MLTensorLimits bias;
5360
5350
MLTensorLimits recurrentBias;
5361
5351
MLTensorLimits initialHiddenState;
5362
- MLDataTypeLimits outputs;
5352
+ MLTensorLimits outputs;
5363
5353
};
5364
5354
5365
5355
partial dictionary MLOpSupportLimits {
@@ -5481,7 +5471,7 @@ partial dictionary MLOpSupportLimits {
5481
5471
: <dfn>initialHiddenState</dfn>
5482
5472
:: {{MLTensorLimits}} for initialHiddenState operand.
5483
5473
: <dfn>outputs</dfn>
5484
- :: {{MLDataTypeLimits }} for all the output operands.
5474
+ :: {{MLTensorLimits }} for all the output operands.
5485
5475
</dl>
5486
5476
5487
5477
{{MLOpSupportLimits}} has the following member for {{MLGraphBuilder/gru()}}:
@@ -5700,7 +5690,7 @@ dictionary MLGruCellSupportLimits {
5700
5690
MLTensorLimits hiddenState;
5701
5691
MLTensorLimits bias;
5702
5692
MLTensorLimits recurrentBias;
5703
- MLDataTypeLimits output;
5693
+ MLTensorLimits output;
5704
5694
};
5705
5695
5706
5696
partial dictionary MLOpSupportLimits {
@@ -5799,7 +5789,7 @@ partial dictionary MLOpSupportLimits {
5799
5789
: <dfn>recurrentBias</dfn>
5800
5790
:: {{MLTensorLimits}} for recurrentBias operand.
5801
5791
: <dfn>output</dfn>
5802
- :: {{MLDataTypeLimits }} for output operand.
5792
+ :: {{MLTensorLimits }} for output operand.
5803
5793
</dl>
5804
5794
5805
5795
{{MLOpSupportLimits}} has the following member for {{MLGraphBuilder/gruCell()}}:
@@ -6159,7 +6149,7 @@ dictionary MLNormalizationSupportLimits {
6159
6149
MLTensorLimits input;
6160
6150
MLTensorLimits scale;
6161
6151
MLTensorLimits bias;
6162
- MLDataTypeLimits output;
6152
+ MLTensorLimits output;
6163
6153
};
6164
6154
6165
6155
partial dictionary MLOpSupportLimits {
@@ -6235,7 +6225,7 @@ partial dictionary MLOpSupportLimits {
6235
6225
: <dfn>bias</dfn>
6236
6226
:: {{MLTensorLimits}} for bias operand.
6237
6227
: <dfn>output</dfn>
6238
- :: {{MLDataTypeLimits }} for output operand.
6228
+ :: {{MLTensorLimits }} for output operand.
6239
6229
</dl>
6240
6230
6241
6231
{{MLOpSupportLimits}} has the following member for {{MLGraphBuilder/instanceNormalization()}}:
@@ -6680,7 +6670,7 @@ dictionary MLLstmSupportLimits {
6680
6670
MLTensorLimits peepholeWeight;
6681
6671
MLTensorLimits initialHiddenState;
6682
6672
MLTensorLimits initialCellState;
6683
- MLDataTypeLimits outputs;
6673
+ MLTensorLimits outputs;
6684
6674
};
6685
6675
6686
6676
partial dictionary MLOpSupportLimits {
@@ -6825,7 +6815,7 @@ partial dictionary MLOpSupportLimits {
6825
6815
: <dfn>initialCellState</dfn>
6826
6816
:: {{MLTensorLimits}} for initialCellState operand.
6827
6817
: <dfn>outputs</dfn>
6828
- :: {{MLDataTypeLimits }} for all the output operands.
6818
+ :: {{MLTensorLimits }} for all the output operands.
6829
6819
</dl>
6830
6820
6831
6821
{{MLOpSupportLimits}} has the following member for {{MLGraphBuilder/lstm()}}:
@@ -7089,7 +7079,7 @@ dictionary MLLstmCellSupportLimits {
7089
7079
MLTensorLimits bias;
7090
7080
MLTensorLimits recurrentBias;
7091
7081
MLTensorLimits peepholeWeight;
7092
- MLDataTypeLimits outputs;
7082
+ MLTensorLimits outputs;
7093
7083
};
7094
7084
7095
7085
partial dictionary MLOpSupportLimits {
@@ -7213,7 +7203,7 @@ partial dictionary MLOpSupportLimits {
7213
7203
: <dfn>peepholeWeight</dfn>
7214
7204
:: {{MLTensorLimits}} for peepholeWeight operand.
7215
7205
: <dfn>outputs</dfn>
7216
- :: {{MLDataTypeLimits }} for all the output operands.
7206
+ :: {{MLTensorLimits }} for all the output operands.
7217
7207
</dl>
7218
7208
7219
7209
{{MLOpSupportLimits}} has the following member for {{MLGraphBuilder/lstmCell()}}:
@@ -7894,7 +7884,7 @@ partial interface MLGraphBuilder {
7894
7884
dictionary MLPreluSupportLimits {
7895
7885
MLTensorLimits input;
7896
7886
MLTensorLimits slope;
7897
- MLDataTypeLimits output;
7887
+ MLTensorLimits output;
7898
7888
};
7899
7889
7900
7890
partial dictionary MLOpSupportLimits {
@@ -7944,7 +7934,7 @@ partial dictionary MLOpSupportLimits {
7944
7934
: <dfn>slope</dfn>
7945
7935
:: {{MLTensorLimits}} for slope operand.
7946
7936
: <dfn>output</dfn>
7947
- :: {{MLDataTypeLimits }} for output operand.
7937
+ :: {{MLTensorLimits }} for output operand.
7948
7938
</dl>
7949
7939
7950
7940
{{MLOpSupportLimits}} has the following member for {{MLGraphBuilder/prelu()}}:
@@ -8675,7 +8665,7 @@ dictionary MLScatterSupportLimits {
8675
8665
MLTensorLimits input;
8676
8666
MLTensorLimits indices;
8677
8667
MLTensorLimits updates;
8678
- MLDataTypeLimits output;
8668
+ MLTensorLimits output;
8679
8669
};
8680
8670
8681
8671
partial dictionary MLOpSupportLimits {
@@ -8740,7 +8730,7 @@ partial dictionary MLOpSupportLimits {
8740
8730
: <dfn>updates</dfn>
8741
8731
:: {{MLTensorLimits}} for updates operand.
8742
8732
: <dfn>output</dfn>
8743
- :: {{MLDataTypeLimits }} for output operand.
8733
+ :: {{MLTensorLimits }} for output operand.
8744
8734
</dl>
8745
8735
8746
8736
{{MLOpSupportLimits}} has the following members for {{MLGraphBuilder/scatterElements()}}:
@@ -9547,7 +9537,7 @@ partial interface MLGraphBuilder {
9547
9537
9548
9538
dictionary MLSplitSupportLimits {
9549
9539
MLTensorLimits input;
9550
- MLDataTypeLimits outputs;
9540
+ MLTensorLimits outputs;
9551
9541
};
9552
9542
9553
9543
partial dictionary MLOpSupportLimits {
@@ -9597,7 +9587,7 @@ partial dictionary MLOpSupportLimits {
9597
9587
: <dfn>input</dfn>
9598
9588
:: {{MLTensorLimits}} for input operand.
9599
9589
: <dfn>outputs</dfn>
9600
- :: {{MLDataTypeLimits }} for all the output operands.
9590
+ :: {{MLTensorLimits }} for all the output operands.
9601
9591
</dl>
9602
9592
9603
9593
{{MLOpSupportLimits}} has the following member for {{MLGraphBuilder/split()}}:
@@ -10063,7 +10053,7 @@ dictionary MLWhereSupportLimits {
10063
10053
MLTensorLimits condition;
10064
10054
MLTensorLimits trueValue;
10065
10055
MLTensorLimits falseValue;
10066
- MLDataTypeLimits output;
10056
+ MLTensorLimits output;
10067
10057
};
10068
10058
10069
10059
partial dictionary MLOpSupportLimits {
@@ -10121,7 +10111,7 @@ partial dictionary MLOpSupportLimits {
10121
10111
: <dfn>falseValue</dfn>
10122
10112
:: {{MLTensorLimits}} for falseValue operand.
10123
10113
: <dfn>output</dfn>
10124
- :: {{MLDataTypeLimits }} for output operand.
10114
+ :: {{MLTensorLimits }} for output operand.
10125
10115
</dl>
10126
10116
10127
10117
{{MLOpSupportLimits}} has the following member for {{MLGraphBuilder/where()}}:
0 commit comments