tvm
|
Describes how data is distributed in one dimension of the device mesh. More...
#include <struct_info.h>
Public Member Functions | |
TVM_DECLARE_BASE_OBJECT_INFO (PlacementSpecNode, Object) | |
Static Public Member Functions | |
static void | RegisterReflection () |
Public Attributes | |
int | axis |
If the kind is sharding, this value represents the tensor dimension to shard. otherwise, axis is -1. More... | |
PlacementSpecKind | kind |
The kind of placement spec. Possible values: kSharding and kReplica. More... | |
Static Public Attributes | |
static constexpr const char * | _type_key = "relax.distributed.PlacementSpec" |
static constexpr TVMFFISEqHashKind | _type_s_eq_hash_kind = kTVMFFISEqHashKindConstTreeNode |
Describes how data is distributed in one dimension of the device mesh.
|
inlinestatic |
tvm::relax::distributed::PlacementSpecNode::TVM_DECLARE_BASE_OBJECT_INFO | ( | PlacementSpecNode | , |
Object | |||
) |
|
staticconstexpr |
|
staticconstexpr |
int tvm::relax::distributed::PlacementSpecNode::axis |
If the kind is sharding, this value represents the tensor dimension to shard. otherwise, axis is -1.
PlacementSpecKind tvm::relax::distributed::PlacementSpecNode::kind |
The kind of placement spec. Possible values: kSharding and kReplica.