Allow unsigned integers in HLO_DimensionTensor and HLO_StaticShapeTensor
Follow up after enabling unsigned integers in the dialect. PiperOrigin-RevId: 309134014 Change-Id: Ie458c93ec69a5ed1be183fdd208dc27d3de61e1a
This commit is contained in:
parent
af76ffe37f
commit
3dc9712013
@ -64,14 +64,14 @@ def HLO_TensorOrTuple : AnyTypeOf<[HLO_Tensor, HLO_Tuple]>;
|
||||
|
||||
// Dynamic representation of a shape vector as a tensor.
|
||||
def HLO_DimensionTensor : ShapedContainerType<
|
||||
[Index, AnySignlessInteger],
|
||||
[Index, HLO_Pred, HLO_Int],
|
||||
And<[IsTensorTypePred, HasAnyRankOfPred<[1]>]>,
|
||||
"a 1D tensor of dimensions">;
|
||||
|
||||
// In general, static shaped tensor constraints should be avoided unless
|
||||
// it is for a legacy op which is only correct with static shapes.
|
||||
def HLO_StaticShapeTensor : StaticShapeTensorOf<[
|
||||
AnyFloat, AnySignlessInteger, HLO_Complex]>;
|
||||
AnyFloat, HLO_Pred, HLO_Int, HLO_Complex]>;
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// XLA on tensors combined type definitions.
|
||||
|
Loading…
Reference in New Issue
Block a user