Skip to content
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

[GraphExecutor] Add API get_input_info to graph_executor #9889

Merged
merged 1 commit into from
Jan 13, 2022

Conversation

leeexyz
Copy link
Contributor

@leeexyz leeexyz commented Jan 10, 2022

Hi All,

In the GraphExecutor use case, we always should get the input info of a compiled graph module, including shape and dtype. For TVMC, it provides get_input_info to get and then to generate the input data. But it is inconvenient if we only deploy the CPP runtime because there is no graph info to be exposed outside of GraphExecutor, and it is very cumbersome to load and parse the Graph JSON again. So here I move the get_input_info function into GraphExecutor, then we can easily write a make_inputs_dict function on the CPP side.

@leeexyz leeexyz changed the title Add API get_input_info to graph_executor [GraphExecutor] Add API get_input_info to graph_executor Jan 10, 2022
@masahi masahi merged commit f9d8c2b into apache:main Jan 13, 2022
crazydemo pushed a commit to crazydemo/tvm that referenced this pull request Jan 27, 2022
Raghav-Chakravarthy pushed a commit to Raghav-Chakravarthy/tvm that referenced this pull request Jan 28, 2022
ylc pushed a commit to ylc/tvm that referenced this pull request Feb 16, 2022
@leeexyz leeexyz deleted the graph_fix branch March 9, 2022 06:57
lhutton1 added a commit to lhutton1/tvm that referenced this pull request Jun 17, 2022
As described in apache#11707, the RPC mechanism does not support
objects of type Map which breaks the use of tvmc run when using
RPC after apache#9889. This commit intends to workaround this issue by
providing a fallback to the old implementation when RPC is being
used. Further, a unit test has been provided to help prevent this
regression in the future.

Change-Id: I70c1863d00098270e27c08ba834a3587e9132d69
lhutton1 added a commit to lhutton1/tvm that referenced this pull request Jun 17, 2022
As described in apache#11707, the RPC mechanism does not support
objects of type Map which breaks the use of tvmc run when using
RPC after apache#9889. This commit intends to workaround this issue by
providing a fallback to the old implementation when RPC is being
used. Further, a test has been provided to help prevent this
regression in the future.

Change-Id: I70c1863d00098270e27c08ba834a3587e9132d69
leandron pushed a commit that referenced this pull request Jun 20, 2022
* [TVMC] Fix tvmc run when using rpc

As described in #11707, the RPC mechanism does not support
objects of type Map which breaks the use of tvmc run when using
RPC after #9889. This commit intends to workaround this issue by
providing a fallback to the old implementation when RPC is being
used. Further, a test has been provided to help prevent this
regression in the future.

Change-Id: I70c1863d00098270e27c08ba834a3587e9132d69

* fix lint

Change-Id: I958cf4e19988d047bdd2e02f6475b9f70afe80c8
lhutton1 added a commit to lhutton1/tvm that referenced this pull request Jun 21, 2022
* [TVMC] Fix tvmc run when using rpc

As described in apache#11707, the RPC mechanism does not support
objects of type Map which breaks the use of tvmc run when using
RPC after apache#9889. This commit intends to workaround this issue by
providing a fallback to the old implementation when RPC is being
used. Further, a test has been provided to help prevent this
regression in the future.

Change-Id: I70c1863d00098270e27c08ba834a3587e9132d69

* fix lint

Change-Id: I958cf4e19988d047bdd2e02f6475b9f70afe80c8
blackkker pushed a commit to blackkker/tvm that referenced this pull request Jul 7, 2022
* [TVMC] Fix tvmc run when using rpc

As described in apache#11707, the RPC mechanism does not support
objects of type Map which breaks the use of tvmc run when using
RPC after apache#9889. This commit intends to workaround this issue by
providing a fallback to the old implementation when RPC is being
used. Further, a test has been provided to help prevent this
regression in the future.

Change-Id: I70c1863d00098270e27c08ba834a3587e9132d69

* fix lint

Change-Id: I958cf4e19988d047bdd2e02f6475b9f70afe80c8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants