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][Transform] merge PassContext and BuildConfig #3234

Merged
merged 7 commits into from
May 24, 2019

Conversation

zhiics
Copy link
Member

@zhiics zhiics commented May 23, 2019

This is a draft PR to:

  • Merge BuildConfig and PassContext in both Python and C++ as BuildConfig is mainly used for managing pass configs. Python side is done. C++ BuildConfig will be replaced by PassContext when we start migrating optimize in build_module which is the next task.
  • Make pass manager be able to execute passes using with statement where configs like opt_level and disabled_passes are specified, as pointed out in [RFC][Relay] Pass API Discussion #3202
  • Alter Sequential API to support with syntax.

After this change, we should be able to test the given example once the passes are registered with Pass MyPass(xxx).

cc @tqchen @jroesch, @MarisaKirisame @wweic

include/tvm/relay/transform.h Outdated Show resolved Hide resolved
include/tvm/relay/transform.h Outdated Show resolved Hide resolved
include/tvm/relay/transform.h Outdated Show resolved Hide resolved
include/tvm/relay/transform.h Outdated Show resolved Hide resolved
include/tvm/relay/transform.h Outdated Show resolved Hide resolved
include/tvm/relay/transform.h Outdated Show resolved Hide resolved
include/tvm/relay/transform.h Outdated Show resolved Hide resolved
@tqchen tqchen changed the title [Relay][pass manager] merge passcontext and buildconfig [Relay][Transform] merge PassContext and BuildConfig May 23, 2019
python/tvm/relay/transform.py Outdated Show resolved Hide resolved
include/tvm/relay/transform.h Outdated Show resolved Hide resolved
include/tvm/relay/transform.h Outdated Show resolved Hide resolved
python/tvm/relay/transform.py Show resolved Hide resolved
python/tvm/relay/transform.py Outdated Show resolved Hide resolved
python/tvm/relay/transform.py Outdated Show resolved Hide resolved
@zhiics zhiics force-pushed the passcontext branch 2 times, most recently from 02e8dfb to b62494c Compare May 24, 2019 06:55
Copy link
Member

@tqchen tqchen left a comment

Choose a reason for hiding this comment

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

please update again, the With PR is now in

docs/api/python/relay/transform.rst Outdated Show resolved Hide resolved
include/tvm/relay/transform.h Show resolved Hide resolved
include/tvm/relay/transform.h Show resolved Hide resolved
include/tvm/relay/transform.h Show resolved Hide resolved
python/tvm/relay/transform.py Outdated Show resolved Hide resolved
@zhiics zhiics marked this pull request as ready for review May 24, 2019 17:53
@tqchen tqchen merged commit 138ec7b into apache:master May 24, 2019
@tqchen
Copy link
Member

tqchen commented May 24, 2019

Thanks @zhiics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants