Represents a section of a tensor mapped to an IPU.
More...
#include <Collectives.hpp>
|
poplar::Tensor | tensor |
| Mapped tensor.
|
|
unsigned | index = 0 |
| Ring index (data parallel index)
|
|
unsigned | offset = 0 |
| Offset within rank (model parallel index.
|
|
Represents a section of a tensor mapped to an IPU.
◆ Chunk()
gcl::Chunk::Chunk |
( |
poplar::Tensor |
tensor, |
|
|
unsigned |
index, |
|
|
unsigned |
offset |
|
) |
| |
A section of a tensor mapped to an IPU.
- Parameters
-
tensor | Mapped tensor |
index | Ring index (data parallel index) |
offset | Offset within rank (model parallel index) |
◆ getIndex()
unsigned gcl::Chunk::getIndex |
( |
| ) |
const |
Ring index (data parallel index)
- Returns
- index
◆ getOffset()
unsigned gcl::Chunk::getOffset |
( |
| ) |
const |
Offset within rank (model parallel index.
- Returns
- offset
◆ getTensor()
Mapped tensor.
- Returns
- mapped tensor
◆ operator=() [1/2]
Defaulted to avoid warnings in deprecation period.
- Returns
- The Chunk being assigned to
◆ operator=() [2/2]
Defaulted to avoid warnings in deprecation period.
- Returns
- The Chunk being assigned to
◆ setIndex()
void gcl::Chunk::setIndex |
( |
unsigned |
index | ) |
|
Set ring index.
- Parameters
-
◆ setOffset()
void gcl::Chunk::setOffset |
( |
unsigned |
offset | ) |
|
◆ setTensor()
Set mapped tensor.
- Parameters
-
The documentation for this struct was generated from the following file: