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][VM] Allow to config allocator type and refactor vm code structure #6105

Merged
merged 9 commits into from
Jul 24, 2020

Conversation

icemelon
Copy link
Member

Mainly made two changes:

  • Allow user to config the memory allocator types
  • Separate out the bytecode and executable to different header files

@icemelon
Copy link
Member Author

cc @jroesch @zhiics

@jroesch
Copy link
Member

jroesch commented Jul 23, 2020

@icemelon9 it looks like something is wrong with CI can you try retriggering?

@zhiics zhiics merged commit 922e0a0 into apache:master Jul 24, 2020
@zhiics
Copy link
Member

zhiics commented Jul 24, 2020

Thanks @icemelon9 @jroesch

@icemelon icemelon deleted the vm-memory branch July 25, 2020 23:15
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Aug 26, 2020
…ture (apache#6105)

* [Relay][VM] Allow to config allocator type and refactor vm code structure

* fix doc

* fix

* update

* trigger ci

* trigger ci

* trigger ci

* trigger ci

* fix doc warning
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Aug 26, 2020
…ture (apache#6105)

* [Relay][VM] Allow to config allocator type and refactor vm code structure

* fix doc

* fix

* update

* trigger ci

* trigger ci

* trigger ci

* trigger ci

* fix doc warning
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Aug 26, 2020
…ture (apache#6105)

* [Relay][VM] Allow to config allocator type and refactor vm code structure

* fix doc

* fix

* update

* trigger ci

* trigger ci

* trigger ci

* trigger ci

* fix doc warning
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Sep 2, 2020
…ture (apache#6105)

* [Relay][VM] Allow to config allocator type and refactor vm code structure

* fix doc

* fix

* update

* trigger ci

* trigger ci

* trigger ci

* trigger ci

* fix doc warning
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Sep 3, 2020
…ture (apache#6105)

* [Relay][VM] Allow to config allocator type and refactor vm code structure

* fix doc

* fix

* update

* trigger ci

* trigger ci

* trigger ci

* trigger ci

* fix doc warning
self._init = self.module["init"]
self._invoke = self.module["invoke"]
self._set_input = self.module["set_input"]
self._setup_ctx(ctx, memory_cfg)
Copy link
Contributor

Choose a reason for hiding this comment

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

@icemelon Hi Haichen, I'm curious that why we do _setup_ctx (now is _setup_device separately? Is there any specific reason not to setup devices in vm_load_executable?

self.module = exe.mod["vm_load_executable"]()

I think we can prepare the device arguments in ahead and convey them to vm_load_executable 🤔 ?

cc @YuchenJin

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