|
SMAUG
Simulating Machine Learning Applications on gem5-Aladdin
|
Implements a Tensor reordering operation to convert between different DataLayouts. More...
#include <reorder_op.h>
Implements a Tensor reordering operation to convert between different DataLayouts.
| Backend | The Backend specialization of this Operator. |
Public Member Functions | |
| ReorderOp (const std::string &name, DataLayout _targetLayout, Workspace *workspace) | |
| ReorderOp (const std::string &name, Workspace *workspace) | |
| DataLayout | getTargetDataLayout () const |
| void | setTargetLayout (DataLayout layout) |
| void | run () override |
| bool | validate () override |
| TensorShape | inferOutputShape () const |
| void | createOutputTensors () |
| void | createAllTensors () override |
Protected Types | |
| enum | { Inputs, kNumInputs } |
| enum | { Outputs, kNumOutputs } |
Protected Attributes | |
| DataLayout | targetLayout |
1.8.18