-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
PackedFunction to return params from the .so module, show warning when no params are set #9811
Conversation
…n no params are set
|
After thinking about this PR a little more, I'm of the opinion that we probably should not add input checking to GraphExecutor::Run. It's important that we keep Run as minimal as possible, and the checking of inputs and more importantly printing of the warning may cause Run to be slower. I like the rest of this PR but think we should drop |
|
@jwfromm that makes sense to me. The checking itself, although i would say the overhead might be minimal, could take some time and cause regressions on small workloads. The rest of the PR looks pretty good BTW. |
|
Thank you for the comments! Currently I have 2 solutions:
|
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 for making this change. I agree with your choice of solution 1 for now. This PR now looks ready to merge.
…n no params are set (apache#9811) * PackedFunction to return params from the .so module, show warning when no params are set * Linter checkup * Autoset of params, tests for get_graph_params * Linter checkup * Check that inputs were set before run * Return the original implementation if Run * Fix RPC behavior
debug_executorworkflow described in https://tvm.apache.org/docs/arch/debugger.html#how-to-use-debugger has strange behavior. When I used code from the step 4, the result of inference differs from time to time. After a short investigation, I found that theparamsare not set correctly. Code that I used:get_graph_paramsfunction, which allows to get params directly from the lib file. Thus a single line can be added to the debugger example code:run()before setting inputs and params,