ONE - On-device Neural Engine
|
#include <TensorBuilder.h>
Definition at line 33 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 24 of file TensorBuilder.cc.
void onert::backend::train::TensorBuilder::allocate | ( | void | ) |
Definition at line 223 of file TensorBuilder.cc.
void onert::backend::train::TensorBuilder::allocateBackward | ( | void | ) |
Definition at line 229 of file TensorBuilder.cc.
void onert::backend::train::TensorBuilder::allocateLayerScope | ( | void | ) |
Definition at line 236 of file TensorBuilder.cc.
LayerScopeTensorLifeTime onert::backend::train::TensorBuilder::getLayerScopeTensorLifeTime | ( | const LayerScopeTensorIndex & | index | ) | const |
Definition at line 216 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 207 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 185 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 190 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 195 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 200 of file TensorBuilder.cc.
Referenced by onert::backend::train::TensorPlanner::planLayerScopeTensors().
void onert::backend::train::TensorBuilder::notifyBackwardFirstUse | ( | const ir::OperandIndex & | index | ) |
Definition at line 140 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 153 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 165 of file TensorBuilder.cc.
Referenced by onert::backend::train::TensorPlanner::planDisposableBackPropTensors().
void onert::backend::train::TensorBuilder::notifyDisposableBackPropLastUse | ( | const DisposableTensorIndex & | index | ) |
Definition at line 170 of file TensorBuilder.cc.
Referenced by onert::backend::train::TensorPlanner::planDisposableBackPropTensors().
void onert::backend::train::TensorBuilder::notifyFirstUse | ( | const ir::OperandIndex & | index | ) |
Definition at line 115 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 128 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 175 of file TensorBuilder.cc.
Referenced by onert::backend::train::TensorPlanner::planLayerScopeTensors().
void onert::backend::train::TensorBuilder::notifyLayerScopeLastUse | ( | const LayerScopeTensorIndex & | index | ) |
Definition at line 180 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 53 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 82 of file TensorBuilder.cc.
References info.
void onert::backend::train::TensorBuilder::registerLayerScopeTensor | ( | const LayerScopeTensorIndex & | index, |
std::shared_ptr< LayerScopeTensor > & | info | ||
) |
Definition at line 94 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 32 of file TensorBuilder.cc.
References info.