-
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
[Relay][VM] Allow to config allocator type and refactor vm code structure #6105
Conversation
@icemelon9 it looks like something is wrong with CI can you try retriggering? |
Thanks @icemelon9 @jroesch |
…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
…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
…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
…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
…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) |
There was a problem hiding this comment.
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
?
Line 374 in d62a364
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
Mainly made two changes: