-
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/api] Add TrainingInfo into nnfw_session #12342
Conversation
1708de6
to
754b1e7
Compare
754b1e7
to
ce9547f
Compare
This PR adds TrainingInfo into nnfw_session. It also initalize nnfw_session._train_info in 'load_model_from_modelfile' and 'load_model_from_nnpackage'. ONE-DCO-1.0-Signed-off-by: SeungHui Youn <sseung.youn@samsung.com>
ce9547f
to
cae870a
Compare
@@ -206,6 +210,7 @@ struct nnfw_session | |||
std::shared_ptr<onert::api::CustomKernelRegistry> _kernel_registry; | |||
std::vector<std::thread> _threads; | |||
uint32_t _training_step{0}; | |||
std::unique_ptr<onert::ir::train::TrainingInfo> _train_info; |
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.
@Samsung/one_onert
Q: Is there a plan to support multiple models in training features?
If so, Since the session hold multiple models through _nnpkg
, It might be better to add a vector of Training info
std::unique_ptr<onert::ir::train::TrainingInfo> _train_info; | |
std::vector<std::unique_ptr<onert::ir::train::TrainingInfo>> _train_info; |
I thought there no plan for support multiple model training at near future.
So, I'd like to save first model(primary model)'s TrainingInfo in the session, for now.
@@ -402,6 +405,9 @@ NNFW_STATUS nnfw_session::load_model_from_nnpackage(const char *package_dir) | |||
_coptions.push_back(onert::compiler::CompilerOptions::fromGlobalConfig()); | |||
} | |||
|
|||
// TODO load TrainingInfo from model, using TraininfoLoader |
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.
(note)
more exaclty load TrainingInfo from "primary model" using TrainInfoLoader
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 TrainingInfo into nnfw_session.
It also initalize nnfw_session._train_info in 'load_model_from_modelfile' and 'load_model_from_nnpackage'.
ONE-DCO-1.0-Signed-off-by: SeungHui Youn sseung.youn@samsung.com
issue : #11692
draft : #12152.