Describes how data is distributed in one dimension of the device mesh.
More...
#include <struct_info.h>
|
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...
|
|
Describes how data is distributed in one dimension of the device mesh.
◆ RegisterReflection()
static void tvm::relax::distributed::PlacementSpecNode::RegisterReflection |
( |
| ) |
|
|
inlinestatic |
◆ TVM_FFI_DECLARE_OBJECT_INFO()
tvm::relax::distributed::PlacementSpecNode::TVM_FFI_DECLARE_OBJECT_INFO |
( |
"relax.distributed.PlacementSpec" |
, |
|
|
PlacementSpecNode |
, |
|
|
Object |
|
|
) |
| |
◆ _type_s_eq_hash_kind
constexpr TVMFFISEqHashKind tvm::relax::distributed::PlacementSpecNode::_type_s_eq_hash_kind = kTVMFFISEqHashKindConstTreeNode |
|
staticconstexpr |
◆ axis
int tvm::relax::distributed::PlacementSpecNode::axis |
If the kind is sharding, this value represents the tensor dimension to shard. otherwise, axis is -1.
◆ kind
The kind of placement spec. Possible values: kSharding and kReplica.
The documentation for this class was generated from the following file: