[Mlir-commits] [mlir] mlir::mesh::shardingOp adding shard-size control (PR #98145)

Boian Petkantchin llvmlistbot at llvm.org
Wed Jul 10 13:21:35 PDT 2024


================
@@ -100,7 +100,7 @@ def ShardingInterface : OpInterface<"ShardingInterface"> {
           This is what shardings the operands and results need to have in order
           to shard the op according to shardingOption.
         }],
-        /*retTy=*/"FailureOr<SmallVector<MeshShardingAttr>>",
+        /*retTy=*/"FailureOr<std::vector<MeshSharding>>",
----------------
sogartar wrote:

OK, we should pass the vector as an argument to avoid excessive number of allocations. Let's do this in anther PR.

https://github.com/llvm/llvm-project/pull/98145


More information about the Mlir-commits mailing list