#include <type.h>
|
| int64_t | sharding_dim |
| | The dimension of tensor we shard.
|
| |
| int | axis |
| | If the kind is sharding, this value represents the tensor dimension to shard. otherwise, axis is -1.
|
| |
| PlacementSpecKind | kind |
| | The kind of placement spec. Possible values: kSharding and kReplica.
|
| |
◆ RegisterReflection()
| static void tvm::relax::distributed::ShardingObj::RegisterReflection |
( |
| ) |
|
|
inlinestatic |
◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()
| tvm::relax::distributed::ShardingObj::TVM_FFI_DECLARE_OBJECT_INFO_FINAL |
( |
"relax.distributed.Sharding" |
, |
|
|
ShardingObj |
, |
|
|
PlacementSpecObj |
|
|
) |
| |
◆ sharding_dim
| int64_t tvm::relax::distributed::ShardingObj::sharding_dim |
The dimension of tensor we shard.
The documentation for this class was generated from the following file:
- include/tvm/relax/distributed/type.h