17#ifndef __ONERT_BACKEND_TRAIN_TENSOR_MANAGER_H__
18#define __ONERT_BACKEND_TRAIN_TENSOR_MANAGER_H__
41 static constexpr uint64_t
_align = 16;
44 TensorManager(
const std::shared_ptr<TensorRegistry> ®, uint32_t optim_vars_count);
69 std::unique_ptr<MemoryManager> _nonconst_mgr;
70 std::unique_ptr<TrainableMemoryManager> _trainable_mgr;
71 std::unique_ptr<MemoryManager> _back_prop_mgr;
72 std::unique_ptr<MemoryManager> _gradient_mgr;
73 std::unique_ptr<DisposableMemoryManager> _disposable_back_prop_mgr;
74 std::unique_ptr<LayerScopeMemoryManager> _layer_scope_mgr;
75 const std::shared_ptr<TensorRegistry> _tensors;
This file contains OperandInfo class.
Class that is index of DisposableTensor.
virtual ~TensorManager()=default
void releaseBackPropPlan(const ir::OperandIndex &ind)
void releaseGradientPlan(const ir::OperandIndex &ind)
void releaseNonConstPlan(const ir::OperandIndex &ind)
void claimNonConstPlan(const ir::OperandIndex &ind)
void claimTrainablePlan(const ir::OperandIndex &ind)
void claimGradientPlan(const ir::OperandIndex &ind)
static constexpr uint64_t _align
void allocateBackPropTensors()
void releaseLayerScopePlan(const LayerScopeTensorIndex &ind)
void claimBackPropPlan(const ir::OperandIndex &ind)
void claimLayerScopePlan(const LayerScopeTensorIndex &ind)
void allocateNonConstTensors()
void allocateLayerScopeTensors()
void claimDisposableBackPropPlan(const DisposableTensorIndex &ind)
void allocateGradientTensors()
void releaseDisposableBackPropPlan(const DisposableTensorIndex &ind)
void allocateTrainableTensors()
void releaseTrainablePlan(const ir::OperandIndex &ind)
void allocateDisposableBackPropTensors()