-
Notifications
You must be signed in to change notification settings - Fork 772
test(runtime): add UT for torch runtime valid function. #2560
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
test(runtime): add UT for torch runtime valid function. #2560
Conversation
Pull Request Test Coverage Report for Build 14072356914Details
💛 - Coveralls |
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.
Mostly, LGTM
080c566
to
3bde232
Compare
00e6740
to
5a38dda
Compare
pkg/util/testing/wrapper.go
Outdated
// For no numProcPerNode UT scenario | ||
var numProcPerNodePtr *intstr.IntOrString | ||
if numProcPerNode != "" { | ||
numProcPerNodePtr = ptr.To(intstr.FromString(numProcPerNode)) | ||
} |
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.
Instead of these hacking, we could use numProcPerNode
as a pointer like
func (m *MLPolicySourceWrapper) TorchPolicy(numProcPerNode *intstr.IntOrString, elasticPolicy *trainer.TorchElasticPolicy) *MLPolicySourceWrapper {
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 have removed it and replaced them like TorchPolicy(ptr.To(intstr.FromString("auto")), nil)
.
Signed-off-by: Asklv <boironic@gmail.com>
5a38dda
to
56d9144
Compare
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.
Thank you!
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tenzen-y The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
Add specific UT for torch runtime
Valid
function.Which issue(s) this PR fixes (optional, in
Fixes #<issue number>, #<issue number>, ...
format, will close the issue(s) when PR gets merged):Fixes #2556
Checklist:
PTAL, @tenzen-y