ONE - On-device Neural Engine
|
#include <TensorBuilder.h>
Definition at line 37 of file TensorBuilder.h.
onert::backend::train::TensorBuilder::TensorBuilder | ( | const std::shared_ptr< TensorRegistry > & | tensor_reg, |
const exec::train::optimizer::Optimizer * | optimizer | ||
) |
Definition at line 28 of file TensorBuilder.cc.
void onert::backend::train::TensorBuilder::allocate | ( | void | ) |
Definition at line 227 of file TensorBuilder.cc.
void onert::backend::train::TensorBuilder::allocateBackward | ( | void | ) |
Definition at line 233 of file TensorBuilder.cc.
void onert::backend::train::TensorBuilder::allocateLayerScope | ( | void | ) |
Definition at line 240 of file TensorBuilder.cc.
LayerScopeTensorLifeTime onert::backend::train::TensorBuilder::getLayerScopeTensorLifeTime | ( | const LayerScopeTensorIndex & | index | ) | const |
Definition at line 220 of file TensorBuilder.cc.
Referenced by onert::backend::train::TensorPlanner::planLayerScopeTensors().
const util::Set< LayerScopeTensorIndex > & onert::backend::train::TensorBuilder::getRegisteredLayerScopeTensorIndices | ( | const ir::OperationIndex & | index | ) | const |
Definition at line 211 of file TensorBuilder.cc.
Referenced by onert::backend::train::TensorPlanner::planLayerScopeTensors().
bool onert::backend::train::TensorBuilder::isRegistered | ( | const ir::OperandIndex & | index | ) | const |
Definition at line 189 of file TensorBuilder.cc.
Referenced by onert::backend::train::TensorPlanner::planNonConstTensors(), and onert::backend::train::TensorPlanner::planTrainableTensors().
bool onert::backend::train::TensorBuilder::isRegisteredBackward | ( | const ir::OperandIndex & | index | ) | const |
Definition at line 194 of file TensorBuilder.cc.
Referenced by onert::backend::train::TensorPlanner::planBackPropTensors(), and onert::backend::train::TensorPlanner::planGradientTensors().
bool onert::backend::train::TensorBuilder::isRegisteredDisposableBackwardTensor | ( | const DisposableTensorIndex & | index | ) | const |
Definition at line 199 of file TensorBuilder.cc.
Referenced by onert::backend::train::TensorPlanner::planDisposableBackPropTensors().
bool onert::backend::train::TensorBuilder::isRegisteredLayerScopeTensor | ( | const ir::OperationIndex & | index | ) | const |
Definition at line 204 of file TensorBuilder.cc.
Referenced by onert::backend::train::TensorPlanner::planLayerScopeTensors().
void onert::backend::train::TensorBuilder::notifyBackwardFirstUse | ( | const ir::OperandIndex & | index | ) |
Definition at line 144 of file TensorBuilder.cc.
Referenced by onert::backend::train::TensorPlanner::planBackPropTensors(), and onert::backend::train::TensorPlanner::planGradientTensors().
void onert::backend::train::TensorBuilder::notifyBackwardLastUse | ( | const ir::OperandIndex & | index | ) |
Definition at line 157 of file TensorBuilder.cc.
Referenced by onert::backend::train::TensorPlanner::planBackPropTensors(), and onert::backend::train::TensorPlanner::planGradientTensors().
void onert::backend::train::TensorBuilder::notifyDisposableBackPropFirstUse | ( | const DisposableTensorIndex & | index | ) |
Definition at line 169 of file TensorBuilder.cc.
Referenced by onert::backend::train::TensorPlanner::planDisposableBackPropTensors().
void onert::backend::train::TensorBuilder::notifyDisposableBackPropLastUse | ( | const DisposableTensorIndex & | index | ) |
Definition at line 174 of file TensorBuilder.cc.
Referenced by onert::backend::train::TensorPlanner::planDisposableBackPropTensors().
void onert::backend::train::TensorBuilder::notifyFirstUse | ( | const ir::OperandIndex & | index | ) |
Definition at line 119 of file TensorBuilder.cc.
Referenced by onert::backend::train::TensorPlanner::planNonConstTensors(), and onert::backend::train::TensorPlanner::planTrainableTensors().
void onert::backend::train::TensorBuilder::notifyLastUse | ( | const ir::OperandIndex & | index | ) |
Definition at line 132 of file TensorBuilder.cc.
Referenced by onert::backend::train::TensorPlanner::planNonConstTensors(), and onert::backend::train::TensorPlanner::planTrainableTensors().
void onert::backend::train::TensorBuilder::notifyLayerScopeFirstUse | ( | const LayerScopeTensorIndex & | index | ) |
Definition at line 179 of file TensorBuilder.cc.
Referenced by onert::backend::train::TensorPlanner::planLayerScopeTensors().
void onert::backend::train::TensorBuilder::notifyLayerScopeLastUse | ( | const LayerScopeTensorIndex & | index | ) |
Definition at line 184 of file TensorBuilder.cc.
Referenced by onert::backend::train::TensorPlanner::planLayerScopeTensors().
void onert::backend::train::TensorBuilder::registerBackwardTensorInfo | ( | const ir::OperandIndex & | ind, |
const ir::OperandInfo & | info | ||
) |
Register informations of tensor used only in backward to allocate on train backend.
[in] | ind | Operand index |
[in] | info | Operand information |
Definition at line 57 of file TensorBuilder.cc.
References onert::exec::train::optimizer::Optimizer::getVarCount(), and info.
void onert::backend::train::TensorBuilder::registerDisposableBackwardTensorInfo | ( | const DisposableTensorIndex & | index, |
const ir::OperandInfo & | info | ||
) |
Definition at line 86 of file TensorBuilder.cc.
References info.
void onert::backend::train::TensorBuilder::registerLayerScopeTensor | ( | const LayerScopeTensorIndex & | index, |
std::shared_ptr< LayerScopeTensor > & | info | ||
) |
Definition at line 98 of file TensorBuilder.cc.
References onert::util::Set< Element >::add().
void onert::backend::train::TensorBuilder::registerTensorInfo | ( | const ir::OperandIndex & | ind, |
const ir::OperandInfo & | info | ||
) |
Register tensor information to allocate on train backend.
[in] | ind | Operand index |
[in] | info | Operand information |
Definition at line 36 of file TensorBuilder.cc.
References info.