-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
394 enhance engines to provide unified workflow #397
Conversation
/black |
/black |
There is some discussion with Ignite on high level API types that has overlap with this PR: pytorch/ignite#912 |
Hi @ericspod , Thanks very much for your review and sharing! |
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.
thanks, I'm taking more time to think about this PR. since this is related to the ignite engine, perhaps @vfdev-5 @justusschock have some comments as well...
Thanks for mentioning @wyli ! Yes, definitely, classes like PS: I also cc @sdesrozis as @justusschock is not working anymore on Ignite. |
/black |
Hi ! I reviewed (quite late) this PR because closely related to ignite API. I really appreciate the smart usage of ignite done here. it makes me think that ignite is exactly in the right position for projects like MONAI : providing building blocks to compose complex applications. My feedback about the PR is maybe we need in ignite a way to define smart functions in |
Hi @sdesrozis , Thanks very much for your review and feedback from ignite side, glad to co-work with you guys. Thanks. |
/black |
Thanks for @wyli 's review, I updated according to his offline comments:
I also changed all the @ericspod , @wyli , Could you please help review it again? |
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.
looks good to me, need another iteration for the unit tests. thanks for the comments @vfdev-5 @sdesrozis @ericspod
3b78871
to
c2fd63a
Compare
/black |
It looks good in general. The approach I had taken with a higher level Another idea was to have a method implementing the network forward pass (pass arguments to the network, packaging results into a tuple) which both subtypes would use, this would reduce code and allow adapting the network to data parallel operations without creating a wrapper type. Similarly there was a method for wrapping the forward pass for the loss function. The idea with this was to allow a subtype to modify how the forward passes worked without having to change any of the other code. I'm fine with merging this now though, these are ideas for evolution into the future perhaps. |
Hi @ericspod , Thanks for your review and for sharing cool ideas! Thanks. |
merge master
Fixes #394 .
Description
This PR enhanced our
engines
module withtrainers
andevaluators
.They can provide unified and easier training and evaluation workflows, it will be useful to set advanced strategies, like: JSON config, AutoML and Federated Learning, etc.
For next steps, I will also do these items in other PRs:
Status
Ready
Types of changes