Uh oh!
There was an error while loading. Please reload this page.
Rename GraphRuntime to GraphExecutor - #7653
Conversation
areusch
commented
Mar 12, 2021
µTVM note: you will need to nuke |
u99127
commented
Mar 12, 2021
@d-smirnov , @lhutton1 , @mbaret : could you please take a look ? |
| if(USE_GRAPH_RUNTIME) | ||
| if(USE_GRAPH_EXECUTOR) | ||
| message(STATUS "Build with Graph runtime support...") |
| @@ -326,7 +326,7 @@ if(USE_PROFILER) | |||
| file(GLOB RUNTIME_GRAPH_DEBUG_SRCS src/runtime/graph/debug/*.cc) | |||
There was a problem hiding this comment.
I think this is fine, the var name derives from the path. or do you mean we should fix path to e.g. src/runtime/graph_executor/...?
| - Change ``set(USE_CUDA OFF)`` to ``set(USE_CUDA ON)`` to enable CUDA backend. Do the same for other backends and libraries | ||
| you want to build for (OpenCL, RCOM, METAL, VULKAN, ...). | ||
| - To help with debugging, ensure the embedded graph runtime and debugging functions are enabled with ``set(USE_GRAPH_RUNTIME ON)`` and ``set(USE_GRAPH_RUNTIME_DEBUG ON)`` | ||
| - To help with debugging, ensure the embedded graph executor and debugging functions are enabled with ``set(USE_GRAPH_EXECUTOR ON)`` and ``set(USE_GRAPH_EXECUTOR_DEBUG ON)`` |
There was a problem hiding this comment.
| - To help with debugging, ensure the embedded graph executor and debugging functions are enabled with ``set(USE_GRAPH_EXECUTOR ON)`` and ``set(USE_GRAPH_EXECUTOR_DEBUG ON)`` | |
| - To help with debugging, ensure the embedded graph executor and debugging functions are enabled with ``set(USE_GRAPH_EXECUTOR ON)`` and ``set(USE_PROFILER ON)`` |
zhiics
left a comment
There was a problem hiding this comment.
I think we probably need to create an alias for graph_runtime (if they are all replaced by graph_executor) and remove it in the next release for backward compatibility. We can issue a warning to when graph_runtime is used. Otherwise, I think it would break the downstream deployment once they sync with upstream TVM. Please ignore if you have it already.
areusch
commented
Mar 18, 2021
@zhiics good call. I added python backwards compatibility for the |
b0ff20a to
bc9bab8Comparezhiics
commented
Mar 23, 2021
@areusch yeah, warning may not be needed. I was just trying to make sure that we don't break all the downstream deployment by letting them know that what is going to happen there. |
areusch
commented
Mar 23, 2021
@zhiics it's definitely a breaking change, i'm not opposed to the warning or some other way to notify downstream users. I don't know if code or forum or other is the best channel for that--i'm inclined to lean towards code in case forum or elsewhere also has snippets that may become outdated. i'm happy to do whatever you propose--which way do you prefer? |
50110b3 to
2f10d74Comparetqchen
commented
Mar 23, 2021
Given we are pre-1.0 we can just do our best effort when backward compact is possible but not necessary have to spend an extra mile of effort. may not hurt to post a notice to forum as well. e.g. https://discuss.tvm.apache.org/t/notice-tvm-runtime-rpc-upgrade-in-pr7488/9237/5 |
zhiics
commented
Mar 24, 2021
@areusch Thanks. I also prefer code for the the same reason you mentioned. |
areusch
commented
Mar 24, 2021
@zhiics I've added Python backwards-compat. Please let me know if you think this is adequate. If so, I think we are ready to merge. |
| mResultView.setText(label); | ||
| } | ||
| Log.i(TAG, "prediction finished"); | ||
| if (null != graphExecutorModule) { |
There was a problem hiding this comment.
Why is the indent size here is 2 while everywhere else its 4?
There was a problem hiding this comment.
good catch @cnv1989, I had run git-clang-format directly rather than with the script, and it looks like it affected java files. reverted.
3ce0117 to
f5b48b6Compareareusch
commented
Mar 26, 2021
tqchen
commented
Mar 26, 2021
oops. sorry there is a merge conflict due to another renaming PR. @areusch can you rebase. will prioritize merging this |
2bf1d69 to
a269414CompareFix graph runtime -> graph executor
Fix graph runtime -> graph executor lint
Fix graph runtime -> graph executor lint
Following TVM's rename in apache/tvm#7653, update to avoid errors when tvm.contrib.graph_runtime is removed entirely.
Following TVM's rename in apache/tvm#7653, update to avoid errors when tvm.contrib.graph_runtime is removed entirely.
This PR implements the "GraphRuntime" part of [RFC] Rename GraphRuntime and ilk to e.g. GraphExecutor. It's quite invasive, so it would be great if everyone could look it over. I think this PR is almost entirely targeted find-replace, as shown by the commit history.
one thing I noticed: @u99127 to look at ARM Compute Lib changes, i'm not sure how you prefer to notate ARM compute lib.
@tqchen@jroesch@junrushao1994@tkonolige@zhiics@manupa-arm@ZihengJiang