-
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
[TVMC] TODO items on TVMC backlog #6792
Comments
@leandron please update the state of the thread accordingly |
The status is correct as it is displayed. We'll be updating it in the next weeks with new PRs. |
@FrozenGene, @comaniac we are currently working on the first item of this TODO list:
Previous discussion here: #6578 (comment) We are struggling a bit to get rid of the getters usage, as (we think) we need a representation of the graph in order to re-load the graph, input names and shapes at Do you have an example in the code base, about how you see that working, that doesn't realy on the getters at all, but still is able to lookup for inputs, shapes, etc? |
@leandron I think your point is you want to inspect the graph and query the shape information. Ah, yes, I think previous design doesn't consider this requirement, so after serializing the module, we want users only use graph runtime factory module. cc @tqchen how about meeting this inspect requirement if we package everything into graph runtime factory module? |
So we are currently using the JSON for two things:
For 1, I found a way to create the Graph Runtime directly pointing to the loaded module, but it looks like it is not possible to accomplish the same for the Debug Graph Runtime, that requires the graph_json.
For 2, would that be possible to extract input shapes from |
Can we close this? |
This is a list of items we recorded as TODO, during TVMC code-reviews.
The list is sorted by my perceived priority implementing them:
tvmc compile
andtvmc tune
, modify the way we deal with the output ofrelay.build
, and remove usage ofgraph_module.get_json(), graph_module.get_lib(), graph_module.get_params()
. This will also change the waytvmc run
consumes the produced TAR filetvmc run
, expand the possibilities for--devices
, to cover more alternatives supported bytvm.rpc.client
tvmc compile
, expand the target file to be downloaded from a URLtvmc compile
, eliminate the duplicated code in tvmc/compiler.py, inegratingtvmc.common.target_from_cli(target)
(this is [TVMC] use common function to obtain target from --target value on 'tvmc compile' #6788)The changes will be dealt with, in separate PRs.
There are also other items discussed, that are outside of the immediate TVMC module:
SaveToFile
interface doesn't offer a robust behavior across different targets: https://discuss.tvm.apache.org/t/rfc-savetofile-file-name-format-expected-behavior/7741Edit 23/Feb/2021: updated with completed tasks in this backlog.
cc @Mousius @gromero
The text was updated successfully, but these errors were encountered: