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

[Relay]Allow every runtime module to handle constants #5885

Merged
merged 2 commits into from
Jun 23, 2020

Conversation

comaniac
Copy link
Contributor

Per discussion in #5884, this PR makes the following improvements:

  • Allow any runtime with get_symbol and get_const_vars to use the unified mechanism of constant processing.
  • We will have a JSON runtime PR later this week to demonstrate how a customized runtime works with this mechanism.

cc @zhiics @mbaret

Copy link
Member

@junrushao junrushao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mbaret
Copy link
Contributor

mbaret commented Jun 23, 2020

Given some modules don't use this mechanism, should we find a way to suppress this warning?
https://github.com/apache/incubator-tvm/blob/b94e8b7290c5ced98728e730634ec73727c53c51/src/runtime/graph/graph_runtime.cc#L93
I'm noticing that I'm getting spammed with it now.

@zhiics
Copy link
Member

zhiics commented Jun 23, 2020

@mbaret this should be handled later by changing the way to initialize graph runtime in different PRs.

@zhiics zhiics merged commit 8108f59 into apache:master Jun 23, 2020
@zhiics
Copy link
Member

zhiics commented Jun 23, 2020

thanks @comaniac @mbaret @junrushao1994

@comaniac comaniac deleted the update_source_module branch June 23, 2020 23:50
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Jun 30, 2020
zhiics pushed a commit to neo-ai/tvm that referenced this pull request Jul 2, 2020
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.

4 participants