Skip to content
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] Add registerLayerScopeTensors to ITrainableFuntion #13980

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

zetwhite
Copy link
Contributor

This PR adds registerLayerScopeTensors to ITrainableFunction. 'registerLayerScopeTensors` is to register LayerScopeTensor into TensorReigstry.

ONE-DCO-1.0-Signed-off-by: seunghui youn sseung.youn@samsung.com
draft : #13486
for : #13282

This PR adds registerLayerScopeTensors to ITrainableFunction.
'registerLayerScopeTensors` is to register LayerScopeTensor into TensorReigstry.

ONE-DCO-1.0-Signed-off-by: seunghui youn <sseung.youn@samsung.com>
draft : Samsung#13486
for : Samsung#13282
@zetwhite zetwhite requested a review from a team September 11, 2024 03:03
@zetwhite zetwhite added the PR/ready for review It is ready to review. Please review it. label Sep 11, 2024
Comment on lines +39 to +43
// Implement this if LayerScopeTensors is necessary
virtual std::optional<backend::train::LayerScopeTensors> registerLayerScopeTensors()
{
return std::nullopt;
}
Copy link
Contributor Author

@zetwhite zetwhite Sep 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ops/*Layer.cc will implement this if LayerScope Tensor is necessary. (for example; https://github.com/Samsung/ONE/pull/13486/files#r1753047724 )
If this is implemented LayerScopeTensor buffer will be managed by core TensorManager.

Copy link
Contributor

@jyoungyun jyoungyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jyoungyun jyoungyun requested a review from a team September 11, 2024 05:35
Copy link
Contributor

@ragmani ragmani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hseok-oh hseok-oh merged commit 031a0f2 into Samsung:master Sep 11, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR/ready for review It is ready to review. Please review it.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants