Struct Memcopy¶
Defined in File memcopy.hpp
Struct Documentation¶
-
struct
ripple
::
Memcopy
¶ This class finds partitions in a tensor, and if so, appends operations onto a graph which perform data transer such that the padding data of each partition is correctly filled with internal data from neighbour partitions.
Public Static Functions
-
template<typename
Graph
, typename ...Args
>
automemcopy
(Graph &graph, ExecutionKind exec, TransferKind transfer, Args&&... args) noexcept -> void¶ Adds neceasarry memcopy nodes if any of the arguments are tensors, creating any necessary dependencies due to modifiers on the tensors.
- Parameters
graph
: The graph to add the memcopy nodes to.exec
: The kind of the execution for the operations.transfer
: The kind of the transfer operations.args
: The arguments for the functor.
- Template Parameters
Graph
: The type of the graph.Args
: The type of the arguments.
-
template<typename