Poplar and PopLibs
TensorCloneMethod.hpp
1// Copyright (c) 2018 Graphcore Ltd. All rights reserved.
2
3#ifndef poplar_TensorCloneMethod_hpp
4#define poplar_TensorCloneMethod_hpp
5
6#include <string>
7
8namespace poplar {
9
28};
29
30std::string toString(const TensorCloneMethod &method);
31
39 DUPLICATE_BY_OUTER_DIMENSION,
50};
51
52std::string toString(const TensorCloneDuplicationMethod &method);
53
54} // namespace poplar
55
56#endif // poplar_TensorCloneMethod_hpp
Poplar classes and functions.
Definition: ArrayRef.hpp:14
std::string toString(RecoveryAction recoveryAction)
Convert the recovery action to a string.
TensorCloneMethod
Define behaviour when a Tensor is cloned.
Definition: TensorCloneMethod.hpp:13
@ PRESERVE_ORDER_UNLESS_ALIASES
Preserve the ordering of the original tensor unless it contains aliases.
@ GATHER_AND_PRESERVE_TILE_ORDER_AND_ALIASES
Gather elements of the underlying variables that are mapped to the same tile so they form one contigu...
@ PRESERVE_ORDER_AND_ALIASES
Preserve the ordering and aliasing within the original tensor reference.
@ CREATE_NEW_ORDER
Create a new tensor with natural ordering based on the dimensions of the cloned tensor (in the same w...
TensorCloneDuplicationMethod
Define behaviour when a Tensor is cloned and duplicated using Graph::cloneN.
Definition: TensorCloneMethod.hpp:38
@ DUPLICATE_BY_TILE_CONTIGUOUS_REGION
< The multiple clones are concatenated in their outermost dimension.