@@ -7775,6 +7775,101 @@ function mlirUniformQuantizedPerAxisTypeIsFixedPoint(type)
7775
7775
@ccall mlir_c. mlirUniformQuantizedPerAxisTypeIsFixedPoint (type:: MlirType ):: Bool
7776
7776
end
7777
7777
7778
+ """
7779
+ mlirTypeIsAUniformQuantizedSubChannelType(type)
7780
+
7781
+ Returns `true` if the given type is a UniformQuantizedSubChannel.
7782
+ """
7783
+ function mlirTypeIsAUniformQuantizedSubChannelType (type)
7784
+ @ccall mlir_c. mlirTypeIsAUniformQuantizedSubChannelType (type:: MlirType ):: Bool
7785
+ end
7786
+
7787
+ """
7788
+ mlirUniformQuantizedSubChannelTypeGet(flags, storageType, expressedType, scalesAttr, zeroPointsAttr, blockSizeInfoLength, quantizedDimensions, blockSizes, storageTypeMin, storageTypeMax)
7789
+
7790
+ Creates a UniformQuantizedSubChannelType with the given parameters.
7791
+
7792
+ The type is owned by the context. `scalesAttr` and `zeroPointsAttr` must be DenseElementsAttrs. `quantizedDimensions` and `blockSizes` point to `blockSizeInfoLength` number of elements, describing respectively the quantization axis and corresponding block size.
7793
+ """
7794
+ function mlirUniformQuantizedSubChannelTypeGet (
7795
+ flags,
7796
+ storageType,
7797
+ expressedType,
7798
+ scalesAttr,
7799
+ zeroPointsAttr,
7800
+ blockSizeInfoLength,
7801
+ quantizedDimensions,
7802
+ blockSizes,
7803
+ storageTypeMin,
7804
+ storageTypeMax,
7805
+ )
7806
+ @ccall mlir_c. mlirUniformQuantizedSubChannelTypeGet (
7807
+ flags:: Cuint ,
7808
+ storageType:: MlirType ,
7809
+ expressedType:: MlirType ,
7810
+ scalesAttr:: MlirAttribute ,
7811
+ zeroPointsAttr:: MlirAttribute ,
7812
+ blockSizeInfoLength:: intptr_t ,
7813
+ quantizedDimensions:: Ptr{Int32} ,
7814
+ blockSizes:: Ptr{Int64} ,
7815
+ storageTypeMin:: Int64 ,
7816
+ storageTypeMax:: Int64 ,
7817
+ ):: MlirType
7818
+ end
7819
+
7820
+ """
7821
+ mlirUniformQuantizedSubChannelTypeGetNumBlockSizes(type)
7822
+
7823
+ Returns the number of block sizes provided in type.
7824
+ """
7825
+ function mlirUniformQuantizedSubChannelTypeGetNumBlockSizes (type)
7826
+ @ccall mlir_c. mlirUniformQuantizedSubChannelTypeGetNumBlockSizes (
7827
+ type:: MlirType
7828
+ ):: intptr_t
7829
+ end
7830
+
7831
+ """
7832
+ mlirUniformQuantizedSubChannelTypeGetQuantizedDimension(type, pos)
7833
+
7834
+ Returns the quantized dimension at the given position.
7835
+ """
7836
+ function mlirUniformQuantizedSubChannelTypeGetQuantizedDimension (type, pos)
7837
+ @ccall mlir_c. mlirUniformQuantizedSubChannelTypeGetQuantizedDimension (
7838
+ type:: MlirType , pos:: intptr_t
7839
+ ):: Int32
7840
+ end
7841
+
7842
+ """
7843
+ mlirUniformQuantizedSubChannelTypeGetBlockSize(type, pos)
7844
+
7845
+ Returns the block size at the given position.
7846
+ """
7847
+ function mlirUniformQuantizedSubChannelTypeGetBlockSize (type, pos)
7848
+ @ccall mlir_c. mlirUniformQuantizedSubChannelTypeGetBlockSize (
7849
+ type:: MlirType , pos:: intptr_t
7850
+ ):: Int64
7851
+ end
7852
+
7853
+ """
7854
+ mlirUniformQuantizedSubChannelTypeGetScales(type)
7855
+
7856
+ Returns the scales of the quantized type.
7857
+ """
7858
+ function mlirUniformQuantizedSubChannelTypeGetScales (type)
7859
+ @ccall mlir_c. mlirUniformQuantizedSubChannelTypeGetScales (type:: MlirType ):: MlirAttribute
7860
+ end
7861
+
7862
+ """
7863
+ mlirUniformQuantizedSubChannelTypeGetZeroPoints(type)
7864
+
7865
+ Returns the zero-points of the quantized type.
7866
+ """
7867
+ function mlirUniformQuantizedSubChannelTypeGetZeroPoints (type)
7868
+ @ccall mlir_c. mlirUniformQuantizedSubChannelTypeGetZeroPoints (
7869
+ type:: MlirType
7870
+ ):: MlirAttribute
7871
+ end
7872
+
7778
7873
"""
7779
7874
mlirTypeIsACalibratedQuantizedType(type)
7780
7875
@@ -10369,6 +10464,8 @@ function sdyOpShardingRuleAttrGet(
10369
10464
needReplicationFactors,
10370
10465
nPermutationFactors,
10371
10466
permutationFactors,
10467
+ nBlockedPropagationFactors,
10468
+ blockedPropagationFactors,
10372
10469
isCustomRule,
10373
10470
)
10374
10471
@ccall mlir_c. sdyOpShardingRuleAttrGet (
@@ -10385,6 +10482,8 @@ function sdyOpShardingRuleAttrGet(
10385
10482
needReplicationFactors:: Ptr{Int64} ,
10386
10483
nPermutationFactors:: intptr_t ,
10387
10484
permutationFactors:: Ptr{Int64} ,
10485
+ nBlockedPropagationFactors:: Int64 ,
10486
+ blockedPropagationFactors:: Ptr{Int64} ,
10388
10487
isCustomRule:: Bool ,
10389
10488
):: MlirAttribute
10390
10489
end
@@ -10459,6 +10558,18 @@ function sdyOpShardingRuleAttrGetPermutationFactorsElem(attr, pos)
10459
10558
):: Int64
10460
10559
end
10461
10560
10561
+ function sdyOpShardingRuleAttrGetBlockedPropagationFactorsSize (attr)
10562
+ @ccall mlir_c. sdyOpShardingRuleAttrGetBlockedPropagationFactorsSize (
10563
+ attr:: MlirAttribute
10564
+ ):: intptr_t
10565
+ end
10566
+
10567
+ function sdyOpShardingRuleAttrGetBlockedPropagationFactorsElem (attr, pos)
10568
+ @ccall mlir_c. sdyOpShardingRuleAttrGetBlockedPropagationFactorsElem (
10569
+ attr:: MlirAttribute , pos:: intptr_t
10570
+ ):: Int64
10571
+ end
10572
+
10462
10573
function sdyAttributeIsAManualAxesAttr (attr)
10463
10574
@ccall mlir_c. sdyAttributeIsAManualAxesAttr (attr:: MlirAttribute ):: Bool
10464
10575
end
0 commit comments