|
Poplar and PopLibs
|
A vector of Chunk data. More...
#include <Collectives.hpp>
Public Member Functions | |
| Chunks (const Chunks &)=default | |
| Defaulted to avoid warnings in deprecation period. | |
| Chunks (Chunks &&) noexcept=default | |
| Defaulted to avoid warnings in deprecation period. | |
| Chunks & | operator= (const Chunks &)=default |
| Defaulted to avoid warnings in deprecation period. More... | |
| Chunks & | operator= (Chunks &&) noexcept=default |
| Defaulted to avoid warnings in deprecation period. More... | |
| Chunks (unsigned size) | |
| A vector of Chunk data. More... | |
| poplar::Tensor | getOriginalInput () const |
| Used to undo shuffles introduced by scatter. More... | |
| const std::vector< Chunk > & | getChunks () const |
| Chunks produced by the scatter step. More... | |
| void | setOriginalInput (poplar::Tensor input) |
| Set original input. More... | |
| void | setChunk (std::vector< Chunk >::size_type i, Chunk chunk) |
| Set chunk. More... | |
| void | setChunks (std::vector< Chunk > chunks) |
| Set chunks produced by scatter step. More... | |
| poplar::Tensor | concat () const |
| Concatenates chunks. More... | |
Public Attributes | |
| poplar::Tensor | originalInput |
| Used to undo shuffles introduced by scatter. | |
| std::vector< Chunk > | chunks |
| Chunks produced by the scatter step. | |
A vector of Chunk data.
|
inlineexplicit |
A vector of Chunk data.
| size | Length of chunk vector |
| poplar::Tensor gcl::Chunks::concat | ( | ) | const |
Concatenates chunks.
Given the vector of Chunk data, its elements are sorted according to the offset or index and a tensor is returned that consists of sorted concatenated Chunk elements. This operation is performed on the output of the reduceScatterWithinReplica and on the input of the allGatherWithinReplica operations.
| const std::vector< Chunk > & gcl::Chunks::getChunks | ( | ) | const |
Chunks produced by the scatter step.
| poplar::Tensor gcl::Chunks::getOriginalInput | ( | ) | const |
Used to undo shuffles introduced by scatter.
Defaulted to avoid warnings in deprecation period.
Defaulted to avoid warnings in deprecation period.
Set chunk.
| i | chunk index |
| chunk | the new chunk |
| void gcl::Chunks::setChunks | ( | std::vector< Chunk > | chunks | ) |
Set chunks produced by scatter step.
| chunks | produced chunks |
| void gcl::Chunks::setOriginalInput | ( | poplar::Tensor | input | ) |
Set original input.
| input | original input |