17#ifndef __ONERT_BACKEND_TRAIN_TENSOR_BUILDER_H__
18#define __ONERT_BACKEND_TRAIN_TENSOR_BUILDER_H__
40 TensorBuilder(
const std::shared_ptr<TensorRegistry> &tensor_reg,
61 std::shared_ptr<LayerScopeTensor> &
info);
87 const std::shared_ptr<TensorRegistry> _tensor_reg;
88 std::unique_ptr<TensorManager> _tensor_mgr;
This file contains onert::util::Set class.
Class that is index of DisposableTensor.
void notifyDisposableBackPropFirstUse(const DisposableTensorIndex &)
void registerLayerScopeTensor(const LayerScopeTensorIndex &index, std::shared_ptr< LayerScopeTensor > &info)
void notifyDisposableBackPropLastUse(const DisposableTensorIndex &)
bool isRegistered(const ir::OperandIndex &) const
void notifyLayerScopeLastUse(const LayerScopeTensorIndex &)
void notifyBackwardFirstUse(const ir::OperandIndex &)
void notifyLayerScopeFirstUse(const LayerScopeTensorIndex &)
void registerDisposableBackwardTensorInfo(const DisposableTensorIndex &index, const ir::OperandInfo &info)
void notifyBackwardLastUse(const ir::OperandIndex &)
bool isRegisteredDisposableBackwardTensor(const DisposableTensorIndex &index) const
const util::Set< LayerScopeTensorIndex > & getRegisteredLayerScopeTensorIndices(const ir::OperationIndex &) const
void allocateBackward(void)
void notifyLastUse(const ir::OperandIndex &)
bool isRegisteredLayerScopeTensor(const ir::OperationIndex &) const
void allocateLayerScope(void)
void notifyFirstUse(const ir::OperandIndex &)
void registerTensorInfo(const ir::OperandIndex &ind, const ir::OperandInfo &info)
Register tensor information to allocate on train backend.
bool isRegisteredBackward(const ir::OperandIndex &) const
LayerScopeTensorLifeTime getLayerScopeTensorLifeTime(const LayerScopeTensorIndex &) const
void registerBackwardTensorInfo(const ir::OperandIndex &ind, const ir::OperandInfo &info)
Register informations of tensor used only in backward to allocate on train backend.
Base class for all optimizers.
Class to save tensor's shape and type.
Class for set of custom element &.
volatile const char info[]
std::unordered_map< OperandIndex, T > OperandIndexMap
std::unordered_map< OperationIndex, T > OperationIndexMap