// If specified tile size is dynamic, output shape should
// be dynamic too.
return ShapedType::isDynamic(shape);
- } else {
- if (ShapedType::isDynamic(shape)) {
- // For the shape being dynamic when tile size is
- // specified, return true. In canonical form a constant
- // tile size should lead to constant shape of the tiled
- // dimension, but not needed for verification.
- return true;
- }
- return shape == constTileSize.value();
}
+ if (ShapedType::isDynamic(shape)) {
+ // For the shape being dynamic when tile size is
+ // specified, return true. In canonical form a constant
+ // tile size should lead to constant shape of the tiled
+ // dimension, but not needed for verification.
+ return true;
+ }
+ return shape == constTileSize.value();
+
})) {
return op->emitError("mismatch in inner tile sizes specified and shaped of "
"tiled dimension in the packed type");