Tannic
A C++ Tensor Library
|
Repetition operation along a specified axis. More...
#include <transformations.hpp>
Public Member Functions | |
constexpr type | promote (type dtype) const |
Type promotion for repetition operation. | |
constexpr Shape | transform (Shape shape) const |
Computes output shape after repetition. | |
void | forward (Tensor const &, Tensor &) const |
Public Attributes | |
int | repeats |
int | axis |
Repetition operation along a specified axis.
Replicates the tensor data along a given axis multiple times.
|
inlineconstexpr |
Type promotion for repetition operation.
Repetition does not change data type.
dtype | Original tensor data type. |
Computes output shape after repetition.
Multiplies the size of the specified axis by repeats.
shape | Input tensor shape. |
int tannic::transformation::Repetition::axis |
int tannic::transformation::Repetition::repeats |