We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
verifyLinalgCompatibleTypes
torch.tensor
1 parent 77ab316 commit a34dad2Copy full SHA for a34dad2
lib/Conversion/Utils/Utils.cpp
@@ -26,6 +26,8 @@ LogicalResult verifyLinalgCompatibleTypes(Operation *op,
26
// TODO: Remove this check but use a separate verification pass to verify the
27
// invariants expected by later passes.
28
auto isValidLinalgType = [](Type type) {
29
+ if (type.isa<NonValueTensorType>())
30
+ return false;
31
auto tensor = type.dyn_cast<ValueTensorType>();
32
return !tensor ||
33
tensor.toBuiltinTensor().dyn_cast_or_null<RankedTensorType>();
0 commit comments