-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[onert/backend] Add LayerScopeTensor interface to TensorBuilder #14198
Conversation
This PR adds LayerScopeTensor related interface to TensorBuilder. ONE-DCO-1.0-Signed-off-by: seunghui youn <[email protected]>
@@ -77,6 +90,7 @@ class TensorBuilder | |||
ir::OperandIndexMap<ir::OperandInfo> _backward_tensor_info_map; | |||
ir::OperandIndexMap<bool> _as_constants; | |||
util::Set<DisposableTensorIndex> _disposable_backprops; | |||
ir::OperationIndexMap<util::Set<LayerScopeTensorIndex>> _operation_to_layerscope; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Each operation can have several LayerScopeTensors.
So, This _operation_to_layerscope
saves the operation_index
- layerscope_tensor_index
relation - which will be used for planning.
bool isRegisteredLayerScopeTensor(const ir::OperationIndex &) const; | ||
|
||
const util::Set<LayerScopeTensorIndex> & | ||
getRegisteredLayerScopeTensorIndex(const ir::OperationIndex &) const; | ||
LayerScopeTensorLifeTime getLayerScopeTensorLifeTime(const LayerScopeTensorIndex &) const; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These will be used in TensorPlanner
: https://github.com/Samsung/ONE/pull/13486/files#r1795202407
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR adds LayerScopeTensor related interface to TensorBuilder.
ONE-DCO-1.0-Signed-off-by: seunghui youn [email protected]
draft : #13486