forked from OSchip/llvm-project
Add support for statically shaped and typed tensors
-- PiperOrigin-RevId: 242972594
This commit is contained in:
parent
d468eaccfc
commit
fe59ba19af
|
@ -315,6 +315,10 @@ class TypedTensor<Type t>
|
|||
"{0}.cast<TensorType>().getElementType()",
|
||||
"tensor">;
|
||||
|
||||
class TypedStaticShapeTensor<Type t>
|
||||
: Type<AllOf<[ TypedTensor<t>.predicate, IsStaticShapeTensorTypePred ]>,
|
||||
"statically shaped tensor">;
|
||||
|
||||
def I1Tensor : TypedTensor<I1>;
|
||||
def I8Tensor : TypedTensor<I8>;
|
||||
def I16Tensor : TypedTensor<I16>;
|
||||
|
|
Loading…
Reference in New Issue