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
[TVMC] Runner.py Updates #7779
[TVMC] Runner.py Updates #7779
Conversation
@jwfromm @mdw-octoml @leandron @comaniac Please let me know your thoughts :) |
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.
First, if we agree with this change, your need to adjust the argument order. A required position argument cannot be placed after an optional argument. Second, I didn't find the logic of handling the default value when hostname
is None
, nor I'm not sure if this makes sense to make it optinoal.
@comaniac, if you look at the full function, its already handling |
You're right. Yeah then it makes sense to adjust the arguments to align the actual behavior. Then please change the order accordingly and update the type in docstring. |
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
cc @leandron
Thanks @CircleSpin and @comaniac. This is now merged. |
* change runner to ms instead of s, consider reformatting * adjust formatting and test in test_runner.py to be more realistic * change device in run_module runner.py to be mandatory * make hostname optional in run_module, in runner.py * update order and doc string * remove print statement * black files * device error lint * argument order was incorrect * arguments funkiness attempt fix 2 * Fix merge with main. Co-authored-by: Jocelyn <jocelyn@pop-os.localdomain> Co-authored-by: Josh Fromm <jwfromm@uw.edu> Co-authored-by: Josh Fromm <jwfromm@octoml.ai>
* change runner to ms instead of s, consider reformatting * adjust formatting and test in test_runner.py to be more realistic * change device in run_module runner.py to be mandatory * make hostname optional in run_module, in runner.py * update order and doc string * remove print statement * black files * device error lint * argument order was incorrect * arguments funkiness attempt fix 2 * Fix merge with main. Co-authored-by: Jocelyn <jocelyn@pop-os.localdomain> Co-authored-by: Josh Fromm <jwfromm@uw.edu> Co-authored-by: Josh Fromm <jwfromm@octoml.ai>
* change runner to ms instead of s, consider reformatting * adjust formatting and test in test_runner.py to be more realistic * change device in run_module runner.py to be mandatory * make hostname optional in run_module, in runner.py * update order and doc string * remove print statement * black files * device error lint * argument order was incorrect * arguments funkiness attempt fix 2 * Fix merge with main. Co-authored-by: Jocelyn <jocelyn@pop-os.localdomain> Co-authored-by: Josh Fromm <jwfromm@uw.edu> Co-authored-by: Josh Fromm <jwfromm@octoml.ai>
* change runner to ms instead of s, consider reformatting * adjust formatting and test in test_runner.py to be more realistic * change device in run_module runner.py to be mandatory * make hostname optional in run_module, in runner.py * update order and doc string * remove print statement * black files * device error lint * argument order was incorrect * arguments funkiness attempt fix 2 * Fix merge with main. Co-authored-by: Jocelyn <jocelyn@pop-os.localdomain> Co-authored-by: Josh Fromm <jwfromm@uw.edu> Co-authored-by: Josh Fromm <jwfromm@octoml.ai>
This PR does three things: