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.
1 parent ec4a18e commit e8ccad1Copy full SHA for e8ccad1
mlir/lib/Dialect/Arith/Transforms/ShardingInterfaceImpl.cpp
@@ -20,6 +20,11 @@ using namespace mlir::mesh;
20
namespace {
21
22
// Sharding of arith.constant
23
+// RankedTensor constants can be sharded like any other tensor.
24
+// %cst = arith.constant dense<0.000000e+00> : tensor<1024x1024xf32>
25
+// %sharding = mesh.sharding @mesh4x4 split_axes = [[0]] : !mesh.sharding
26
+// Scalar constants are always replicated and need no sharding annotation.
27
+
28
struct ConstantShardingInterface
29
: public ShardingInterface::ExternalModel<ConstantShardingInterface,
30
ConstantOp> {
0 commit comments