Skip to content

[RELAY][Frontend][TF] decompile tf control flow - #2830

Merged
yzhliu merged 5 commits into
apache:masterfrom
zhiics:tf-control-flow
Mar 24, 2019
Merged

[RELAY][Frontend][TF] decompile tf control flow#2830
yzhliu merged 5 commits into
apache:masterfrom
zhiics:tf-control-flow

Conversation

@zhiics

@zhiicszhiics commented Mar 16, 2019

Copy link
Copy Markdown
Member

This PR decompiles TF control flow primitives into Relay high level control-flow construct as described in #2812. The execution frame is used to identify the invocation of control flow construct and to instantiate the control flow object, like Branch and Loop.

Thanks @jroesch for helping the loop part and @yongwww for more test cases.

cc @wweic @icemelon9 @srkreddy1238@yzhliu@tqchen

@jroeschjroesch changed the title decompile tf control flow[RELAY][Frontend][TF] decompile tf control flowMar 16, 2019
Comment threadpython/tvm/relay/frontend/tensorflow.py Outdated
Comment threadpython/tvm/relay/frontend/tensorflow.py Outdated
Comment threadpython/tvm/relay/frontend/tensorflow.py
Comment threadpython/tvm/relay/frontend/tensorflow.py Outdated
@jroesch

Copy link
Copy Markdown
Member

@antinucleon or @ajtulloch could one of you review too?

@jroesch

Copy link
Copy Markdown
Member

@srkreddy1238 ping

@srkreddy1238

Copy link
Copy Markdown
Contributor

@jroesch thanks & will take a look today or tomorrow.

@yzhliuyzhliu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

high-level question, can tf-lite frontend leverage the procedure here? if so, how to reuse the implement?

Comment threadpython/tvm/relay/frontend/tensorflow.py Outdated
Comment threadpython/tvm/relay/frontend/tensorflow.py Outdated
Comment threadpython/tvm/relay/frontend/tensorflow.py Outdated
Comment threadpython/tvm/relay/frontend/tensorflow.py Outdated
Comment threadtests/python/relay/test_tf_loop_to_relay.py Outdated
@yongwww

Copy link
Copy Markdown
Member

@yzhliu TF Lite doesn't support control flow so far, confirmed with tf lite team, probably tf lite will support control flow in the next or next two quarter. We will see once control flow is supported by tf lite.

@zhiics

Copy link
Copy Markdown
MemberAuthor

Sorry, I've been busy with other stuff recently. I will update the PR and clean it up by this week when I have time.

Comment threadpython/tvm/relay/frontend/tensorflow.py Outdated
Comment threadpython/tvm/relay/frontend/tensorflow.py
@zhiics

Copy link
Copy Markdown
MemberAuthor

@srkreddy1238 Please take another look. Thanks.

@srkreddy1238srkreddy1238 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@zhiics with a small change good to go.

Comment threadpython/tvm/relay/frontend/tensorflow.py Outdated
@lixiaoquan

lixiaoquan commented Mar 22, 2019

Copy link
Copy Markdown
Contributor

I have a question related to control flow. tf.TensorArray() is often used in control flow code. It is a container with dynamic size. How to use Relay to support it?

@wweic

Copy link
Copy Markdown

@lixiaoquan we can use algebraic data type in Relay to model complex data structure. For TensorArray, list(already included in Relay standard library) might be a good candidate. I added nth to model TensorArrayRead, i have a pending PR(#2866) to add update to model TensorArrayWrite.

@zhiics

Copy link
Copy Markdown
MemberAuthor

@srkreddy1238 Updated.

@yzhliu
yzhliu merged commit 2df3364 into apache:masterMar 24, 2019
@yzhliu

Copy link
Copy Markdown
Member

Thanks @zhiics@srkreddy1238@wweic@jroesch@yongwww@lixiaoquan This is now merged.

@zhiics
zhiics deleted the tf-control-flow branch March 24, 2019 16:44
wweic pushed a commit to wweic/tvm that referenced this pull request Mar 24, 2019
* decompile tf control flow
* Add docs
* remove import relay
* move tests under tensorflow frontend
* minor fix
wweic pushed a commit to neo-ai/tvm that referenced this pull request Mar 24, 2019
* decompile tf control flow
* Add docs
* remove import relay
* move tests under tensorflow frontend
* minor fix
Laurawly pushed a commit to Laurawly/tvm-1 that referenced this pull request Mar 27, 2019
* decompile tf control flow
* Add docs
* remove import relay
* move tests under tensorflow frontend
* minor fix
MarisaKirisame pushed a commit to MarisaKirisame/tvm that referenced this pull request Apr 9, 2019
* decompile tf control flow
* Add docs
* remove import relay
* move tests under tensorflow frontend
* minor fix
MarisaKirisame added a commit to MarisaKirisame/tvm that referenced this pull request Apr 9, 2019
lint
lint
save
save
add more case
save
error
lint
lint
commit
do
lint
save
fix lint
wrap it back as func
lint
save
remove dead comment
fix style
fix lint
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
address review feedback
pe now handle freevar. as a result preserving function is now trivial.
test
add basic test, implement pretty printing for generic function
test
lint
fix segfault
save
save
do
test
fix another error
address comment
commit
save
address review feedback
add test for invalidate, fix error in lookup
rename cont to boduy
fix error and add regression test
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
fix error, add test case
fix lint
remove extra line
fix some error
pe
commit
save
save
save
save
save (pe/dce broken)
[DOCKER] Pin flatbuffers checkout to the last release tag (apache#2823). (apache#2879)
[Relay][Text Format] Reverse CallNode Print Order (apache#2882)
[NNPACK] Modernize test (apache#2868)
[Relay] Add list update to prelude (apache#2866)
Add missing sgx includes (apache#2878)
Fix setting up hints for getaddrinfo (apache#2872)
[ARITH] RewriteSimplifier: improved cmp simplification (apache#2851)
do (apache#2883)
[RELAY][Frontend][TF] decompile tf control flow (apache#2830)
* decompile tf control flow
* Add docs
* remove import relay
* move tests under tensorflow frontend
* minor fix
Enhance upsample operator to adapt onnx opset version 9 (apache#2840)
Use version invariant rustfmt (apache#2886)
[Relay][Op] Add group conv2d dispatch to topi function (apache#2870)
* [Relay][Op] Add group conv2d dispatch to topi function
* Rerun tests
[Apps] [howto_deploy] fix cxx-flags order and build directory (apache#2888)
fix prelu, now can use on 2d input and add one test (apache#2875)
Add dense schedules to __init__ for cpu (apache#2855)
* Add dense schedules to __init__ for cpu
* Add documentation for topi::shape
* Add additional imports to topi CPU __init__.
[TESTS] Improve script robustness (apache#2893)
A number of test scripts use the '|| exit 1' idiom. This has two
issues, first process exit codes are defined to be in the range 0-255.
Second, more importantly, the idiom is fragile because it requires
that every possible failure point be explicitly coded. This patch
removes the idiom in favour of "set -e" as used in the docker scripts
as a more robust mechanism to ensure that script failures are always
caught and propagated by default.
[Relay] Fix name of bias in testing.mlp (apache#2892)
winograd_nnpack (apache#2721)
[Relay] Fix Relay ARM CPU depthwise spatial pack schedule alter op layout issue. (apache#2861)
* Fix Relay ARM CPU spatial pack depthwise alter op layout issue.
* Update tune_relay_arm.py
[TESTS] Import script robustness (set -u) (apache#2896)
Adopt the "set -u" idiom from the docker scripts as a mechanism to
improve future robustness.
[DOCKER] Upgrade ci-cpu to latest v0.50 (apache#2901)
Allow linking against MKLML (apache#2902)
[COMMUNITY] ASF mentors (apache#2906)
[Relay] Allow converting keras.layers.Sequential (apache#2842)
* Allow converting keras.layers.Sequential
* Use existing new_var function
* Only update expr when missing
* Add test
[Relay] clean up hd, change tl (apache#2917)
Turn on USE_SORT by default (apache#2916)
[TEST] Cache test data (apache#2921)
Unified error handling in NNVM and Relay frontends (apache#2828)
add support for mxnet smooth_l1 (apache#2905)
[Relay] Add support for TupleGetItem in op fusion (apache#2914)
[Relay, TOPI] Deformable conv2d (apache#2908)
* [Relay, TOPI] Add deformable conv2d
* Moved to op level2
* Fix lint
* Moved to level2 & bug fix
* Update comments
* Disabled flaky test of conv2d
TVM debugresult dump to Chrome Tracing (apache#2922)
[Relay] add test for second order ad (apache#2754)
* do second order
* add comment
* better name
* use tvm assert all close
* refire ci
Revert "[Relay] add test for second order ad (apache#2754)" (apache#2926)
This reverts commit f5ca991.
[Tutorial] Cache the test data in tutorial (apache#2923)
[AUTOTVM] Refactor measure build func (apache#2927)
Fix intersect of modular set (apache#2904)
Fix comment bugs and code style
[Relay, OpFusion] Fix handling TupleGetItem for nested tuples (apache#2929)
Consistent result of DetectLinearEquation() when an empy vars is passed (apache#2860)
[FRONTEND][ONNX] Some bug fixes and Shape operator fixed for relay. (apache#2850)
* [FRONTEND][ONNX] Some bug fixes and Shape operator fixed for relay.
* * test cases
* * ci error
Outdated renaming for flatten in ONNX converter (apache#2843)
[FRONTEND][TENSORFLOW] bug fix for tensorflow official slim models. (apache#2864)
* [FRONTEND][TENSORFLOW] bug fix for tensorflow official slim models.
* * review comments
Fix vcvtph2ps codegen (apache#2925)
Port changes
More fixes
save
save
Changes to schedules and mxnet importer
@MarisaKirisameMarisaKirisame mentioned this pull request Apr 9, 2019
MarisaKirisame added a commit to MarisaKirisame/tvm that referenced this pull request Apr 9, 2019
lint
lint
save
save
add more case
save
error
lint
lint
commit
do
lint
save
fix lint
wrap it back as func
lint
save
remove dead comment
fix style
fix lint
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
address review feedback
pe now handle freevar. as a result preserving function is now trivial.
test
add basic test, implement pretty printing for generic function
test
lint
fix segfault
save
save
do
test
fix another error
address comment
commit
save
address review feedback
add test for invalidate, fix error in lookup
rename cont to boduy
fix error and add regression test
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
fix error, add test case
fix lint
remove extra line
fix some error
pe
commit
save
save
save
save
save (pe/dce broken)
[DOCKER] Pin flatbuffers checkout to the last release tag (apache#2823). (apache#2879)
[Relay][Text Format] Reverse CallNode Print Order (apache#2882)
[NNPACK] Modernize test (apache#2868)
[Relay] Add list update to prelude (apache#2866)
Add missing sgx includes (apache#2878)
Fix setting up hints for getaddrinfo (apache#2872)
[ARITH] RewriteSimplifier: improved cmp simplification (apache#2851)
do (apache#2883)
[RELAY][Frontend][TF] decompile tf control flow (apache#2830)
* decompile tf control flow
* Add docs
* remove import relay
* move tests under tensorflow frontend
* minor fix
Enhance upsample operator to adapt onnx opset version 9 (apache#2840)
Use version invariant rustfmt (apache#2886)
[Relay][Op] Add group conv2d dispatch to topi function (apache#2870)
* [Relay][Op] Add group conv2d dispatch to topi function
* Rerun tests
[Apps] [howto_deploy] fix cxx-flags order and build directory (apache#2888)
fix prelu, now can use on 2d input and add one test (apache#2875)
Add dense schedules to __init__ for cpu (apache#2855)
* Add dense schedules to __init__ for cpu
* Add documentation for topi::shape
* Add additional imports to topi CPU __init__.
[TESTS] Improve script robustness (apache#2893)
A number of test scripts use the '|| exit 1' idiom. This has two
issues, first process exit codes are defined to be in the range 0-255.
Second, more importantly, the idiom is fragile because it requires
that every possible failure point be explicitly coded. This patch
removes the idiom in favour of "set -e" as used in the docker scripts
as a more robust mechanism to ensure that script failures are always
caught and propagated by default.
[Relay] Fix name of bias in testing.mlp (apache#2892)
winograd_nnpack (apache#2721)
[Relay] Fix Relay ARM CPU depthwise spatial pack schedule alter op layout issue. (apache#2861)
* Fix Relay ARM CPU spatial pack depthwise alter op layout issue.
* Update tune_relay_arm.py
[TESTS] Import script robustness (set -u) (apache#2896)
Adopt the "set -u" idiom from the docker scripts as a mechanism to
improve future robustness.
[DOCKER] Upgrade ci-cpu to latest v0.50 (apache#2901)
Allow linking against MKLML (apache#2902)
[COMMUNITY] ASF mentors (apache#2906)
[Relay] Allow converting keras.layers.Sequential (apache#2842)
* Allow converting keras.layers.Sequential
* Use existing new_var function
* Only update expr when missing
* Add test
[Relay] clean up hd, change tl (apache#2917)
Turn on USE_SORT by default (apache#2916)
[TEST] Cache test data (apache#2921)
Unified error handling in NNVM and Relay frontends (apache#2828)
add support for mxnet smooth_l1 (apache#2905)
[Relay] Add support for TupleGetItem in op fusion (apache#2914)
[Relay, TOPI] Deformable conv2d (apache#2908)
* [Relay, TOPI] Add deformable conv2d
* Moved to op level2
* Fix lint
* Moved to level2 & bug fix
* Update comments
* Disabled flaky test of conv2d
TVM debugresult dump to Chrome Tracing (apache#2922)
[Relay] add test for second order ad (apache#2754)
* do second order
* add comment
* better name
* use tvm assert all close
* refire ci
Revert "[Relay] add test for second order ad (apache#2754)" (apache#2926)
This reverts commit f5ca991.
[Tutorial] Cache the test data in tutorial (apache#2923)
[AUTOTVM] Refactor measure build func (apache#2927)
Fix intersect of modular set (apache#2904)
Fix comment bugs and code style
[Relay, OpFusion] Fix handling TupleGetItem for nested tuples (apache#2929)
Consistent result of DetectLinearEquation() when an empy vars is passed (apache#2860)
[FRONTEND][ONNX] Some bug fixes and Shape operator fixed for relay. (apache#2850)
* [FRONTEND][ONNX] Some bug fixes and Shape operator fixed for relay.
* * test cases
* * ci error
Outdated renaming for flatten in ONNX converter (apache#2843)
[FRONTEND][TENSORFLOW] bug fix for tensorflow official slim models. (apache#2864)
* [FRONTEND][TENSORFLOW] bug fix for tensorflow official slim models.
* * review comments
Fix vcvtph2ps codegen (apache#2925)
Port changes
More fixes
save
save
Changes to schedules and mxnet importer
MarisaKirisame added a commit to MarisaKirisame/tvm that referenced this pull request Apr 9, 2019
lint
lint
save
save
add more case
save
error
lint
lint
commit
do
lint
save
fix lint
wrap it back as func
lint
save
remove dead comment
fix style
fix lint
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
address review feedback
pe now handle freevar. as a result preserving function is now trivial.
test
add basic test, implement pretty printing for generic function
test
lint
fix segfault
save
save
do
test
fix another error
address comment
commit
save
address review feedback
add test for invalidate, fix error in lookup
rename cont to boduy
fix error and add regression test
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
fix error, add test case
fix lint
remove extra line
fix some error
pe
commit
save
save
save
save
save (pe/dce broken)
[DOCKER] Pin flatbuffers checkout to the last release tag (apache#2823). (apache#2879)
[Relay][Text Format] Reverse CallNode Print Order (apache#2882)
[NNPACK] Modernize test (apache#2868)
[Relay] Add list update to prelude (apache#2866)
Add missing sgx includes (apache#2878)
Fix setting up hints for getaddrinfo (apache#2872)
[ARITH] RewriteSimplifier: improved cmp simplification (apache#2851)
do (apache#2883)
[RELAY][Frontend][TF] decompile tf control flow (apache#2830)
* decompile tf control flow
* Add docs
* remove import relay
* move tests under tensorflow frontend
* minor fix
Enhance upsample operator to adapt onnx opset version 9 (apache#2840)
Use version invariant rustfmt (apache#2886)
[Relay][Op] Add group conv2d dispatch to topi function (apache#2870)
* [Relay][Op] Add group conv2d dispatch to topi function
* Rerun tests
[Apps] [howto_deploy] fix cxx-flags order and build directory (apache#2888)
fix prelu, now can use on 2d input and add one test (apache#2875)
Add dense schedules to __init__ for cpu (apache#2855)
* Add dense schedules to __init__ for cpu
* Add documentation for topi::shape
* Add additional imports to topi CPU __init__.
[TESTS] Improve script robustness (apache#2893)
A number of test scripts use the '|| exit 1' idiom. This has two
issues, first process exit codes are defined to be in the range 0-255.
Second, more importantly, the idiom is fragile because it requires
that every possible failure point be explicitly coded. This patch
removes the idiom in favour of "set -e" as used in the docker scripts
as a more robust mechanism to ensure that script failures are always
caught and propagated by default.
[Relay] Fix name of bias in testing.mlp (apache#2892)
winograd_nnpack (apache#2721)
[Relay] Fix Relay ARM CPU depthwise spatial pack schedule alter op layout issue. (apache#2861)
* Fix Relay ARM CPU spatial pack depthwise alter op layout issue.
* Update tune_relay_arm.py
[TESTS] Import script robustness (set -u) (apache#2896)
Adopt the "set -u" idiom from the docker scripts as a mechanism to
improve future robustness.
[DOCKER] Upgrade ci-cpu to latest v0.50 (apache#2901)
Allow linking against MKLML (apache#2902)
[COMMUNITY] ASF mentors (apache#2906)
[Relay] Allow converting keras.layers.Sequential (apache#2842)
* Allow converting keras.layers.Sequential
* Use existing new_var function
* Only update expr when missing
* Add test
[Relay] clean up hd, change tl (apache#2917)
Turn on USE_SORT by default (apache#2916)
[TEST] Cache test data (apache#2921)
Unified error handling in NNVM and Relay frontends (apache#2828)
add support for mxnet smooth_l1 (apache#2905)
[Relay] Add support for TupleGetItem in op fusion (apache#2914)
[Relay, TOPI] Deformable conv2d (apache#2908)
* [Relay, TOPI] Add deformable conv2d
* Moved to op level2
* Fix lint
* Moved to level2 & bug fix
* Update comments
* Disabled flaky test of conv2d
TVM debugresult dump to Chrome Tracing (apache#2922)
[Relay] add test for second order ad (apache#2754)
* do second order
* add comment
* better name
* use tvm assert all close
* refire ci
Revert "[Relay] add test for second order ad (apache#2754)" (apache#2926)
This reverts commit f5ca991.
[Tutorial] Cache the test data in tutorial (apache#2923)
[AUTOTVM] Refactor measure build func (apache#2927)
Fix intersect of modular set (apache#2904)
Fix comment bugs and code style
[Relay, OpFusion] Fix handling TupleGetItem for nested tuples (apache#2929)
Consistent result of DetectLinearEquation() when an empy vars is passed (apache#2860)
[FRONTEND][ONNX] Some bug fixes and Shape operator fixed for relay. (apache#2850)
* [FRONTEND][ONNX] Some bug fixes and Shape operator fixed for relay.
* * test cases
* * ci error
Outdated renaming for flatten in ONNX converter (apache#2843)
[FRONTEND][TENSORFLOW] bug fix for tensorflow official slim models. (apache#2864)
* [FRONTEND][TENSORFLOW] bug fix for tensorflow official slim models.
* * review comments
Fix vcvtph2ps codegen (apache#2925)
Port changes
More fixes
save
save
Changes to schedules and mxnet importer
save
save
save
save
save
MarisaKirisame added a commit to MarisaKirisame/tvm that referenced this pull request Apr 15, 2019
lint
lint
save
save
add more case
save
error
lint
lint
commit
do
lint
save
fix lint
wrap it back as func
lint
save
remove dead comment
fix style
fix lint
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
address review feedback
pe now handle freevar. as a result preserving function is now trivial.
test
add basic test, implement pretty printing for generic function
test
lint
fix segfault
save
save
do
test
fix another error
address comment
commit
save
address review feedback
add test for invalidate, fix error in lookup
rename cont to boduy
fix error and add regression test
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
fix error, add test case
fix lint
remove extra line
fix some error
pe
commit
save
save
save
save
save (pe/dce broken)
[DOCKER] Pin flatbuffers checkout to the last release tag (apache#2823). (apache#2879)
[Relay][Text Format] Reverse CallNode Print Order (apache#2882)
[NNPACK] Modernize test (apache#2868)
[Relay] Add list update to prelude (apache#2866)
Add missing sgx includes (apache#2878)
Fix setting up hints for getaddrinfo (apache#2872)
[ARITH] RewriteSimplifier: improved cmp simplification (apache#2851)
do (apache#2883)
[RELAY][Frontend][TF] decompile tf control flow (apache#2830)
* decompile tf control flow
* Add docs
* remove import relay
* move tests under tensorflow frontend
* minor fix
Enhance upsample operator to adapt onnx opset version 9 (apache#2840)
Use version invariant rustfmt (apache#2886)
[Relay][Op] Add group conv2d dispatch to topi function (apache#2870)
* [Relay][Op] Add group conv2d dispatch to topi function
* Rerun tests
[Apps] [howto_deploy] fix cxx-flags order and build directory (apache#2888)
fix prelu, now can use on 2d input and add one test (apache#2875)
Add dense schedules to __init__ for cpu (apache#2855)
* Add dense schedules to __init__ for cpu
* Add documentation for topi::shape
* Add additional imports to topi CPU __init__.
[TESTS] Improve script robustness (apache#2893)
A number of test scripts use the '|| exit 1' idiom. This has two
issues, first process exit codes are defined to be in the range 0-255.
Second, more importantly, the idiom is fragile because it requires
that every possible failure point be explicitly coded. This patch
removes the idiom in favour of "set -e" as used in the docker scripts
as a more robust mechanism to ensure that script failures are always
caught and propagated by default.
[Relay] Fix name of bias in testing.mlp (apache#2892)
winograd_nnpack (apache#2721)
[Relay] Fix Relay ARM CPU depthwise spatial pack schedule alter op layout issue. (apache#2861)
* Fix Relay ARM CPU spatial pack depthwise alter op layout issue.
* Update tune_relay_arm.py
[TESTS] Import script robustness (set -u) (apache#2896)
Adopt the "set -u" idiom from the docker scripts as a mechanism to
improve future robustness.
[DOCKER] Upgrade ci-cpu to latest v0.50 (apache#2901)
Allow linking against MKLML (apache#2902)
[COMMUNITY] ASF mentors (apache#2906)
[Relay] Allow converting keras.layers.Sequential (apache#2842)
* Allow converting keras.layers.Sequential
* Use existing new_var function
* Only update expr when missing
* Add test
[Relay] clean up hd, change tl (apache#2917)
Turn on USE_SORT by default (apache#2916)
[TEST] Cache test data (apache#2921)
Unified error handling in NNVM and Relay frontends (apache#2828)
add support for mxnet smooth_l1 (apache#2905)
[Relay] Add support for TupleGetItem in op fusion (apache#2914)
[Relay, TOPI] Deformable conv2d (apache#2908)
* [Relay, TOPI] Add deformable conv2d
* Moved to op level2
* Fix lint
* Moved to level2 & bug fix
* Update comments
* Disabled flaky test of conv2d
TVM debugresult dump to Chrome Tracing (apache#2922)
[Relay] add test for second order ad (apache#2754)
* do second order
* add comment
* better name
* use tvm assert all close
* refire ci
Revert "[Relay] add test for second order ad (apache#2754)" (apache#2926)
This reverts commit f5ca991.
[Tutorial] Cache the test data in tutorial (apache#2923)
[AUTOTVM] Refactor measure build func (apache#2927)
Fix intersect of modular set (apache#2904)
Fix comment bugs and code style
[Relay, OpFusion] Fix handling TupleGetItem for nested tuples (apache#2929)
Consistent result of DetectLinearEquation() when an empy vars is passed (apache#2860)
[FRONTEND][ONNX] Some bug fixes and Shape operator fixed for relay. (apache#2850)
* [FRONTEND][ONNX] Some bug fixes and Shape operator fixed for relay.
* * test cases
* * ci error
Outdated renaming for flatten in ONNX converter (apache#2843)
[FRONTEND][TENSORFLOW] bug fix for tensorflow official slim models. (apache#2864)
* [FRONTEND][TENSORFLOW] bug fix for tensorflow official slim models.
* * review comments
Fix vcvtph2ps codegen (apache#2925)
Port changes
More fixes
save
save
Changes to schedules and mxnet importer
save
save
save
save
save
remove
remove
MarisaKirisame added a commit to MarisaKirisame/tvm that referenced this pull request Apr 16, 2019
lint
lint
save
save
add more case
save
error
lint
lint
commit
do
lint
save
fix lint
wrap it back as func
lint
save
remove dead comment
fix style
fix lint
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
address review feedback
pe now handle freevar. as a result preserving function is now trivial.
test
add basic test, implement pretty printing for generic function
test
lint
fix segfault
save
save
do
test
fix another error
address comment
commit
save
address review feedback
add test for invalidate, fix error in lookup
rename cont to boduy
fix error and add regression test
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
fix error, add test case
fix lint
remove extra line
fix some error
pe
commit
save
save
save
save
save (pe/dce broken)
[DOCKER] Pin flatbuffers checkout to the last release tag (apache#2823). (apache#2879)
[Relay][Text Format] Reverse CallNode Print Order (apache#2882)
[NNPACK] Modernize test (apache#2868)
[Relay] Add list update to prelude (apache#2866)
Add missing sgx includes (apache#2878)
Fix setting up hints for getaddrinfo (apache#2872)
[ARITH] RewriteSimplifier: improved cmp simplification (apache#2851)
do (apache#2883)
[RELAY][Frontend][TF] decompile tf control flow (apache#2830)
* decompile tf control flow
* Add docs
* remove import relay
* move tests under tensorflow frontend
* minor fix
Enhance upsample operator to adapt onnx opset version 9 (apache#2840)
Use version invariant rustfmt (apache#2886)
[Relay][Op] Add group conv2d dispatch to topi function (apache#2870)
* [Relay][Op] Add group conv2d dispatch to topi function
* Rerun tests
[Apps] [howto_deploy] fix cxx-flags order and build directory (apache#2888)
fix prelu, now can use on 2d input and add one test (apache#2875)
Add dense schedules to __init__ for cpu (apache#2855)
* Add dense schedules to __init__ for cpu
* Add documentation for topi::shape
* Add additional imports to topi CPU __init__.
[TESTS] Improve script robustness (apache#2893)
A number of test scripts use the '|| exit 1' idiom. This has two
issues, first process exit codes are defined to be in the range 0-255.
Second, more importantly, the idiom is fragile because it requires
that every possible failure point be explicitly coded. This patch
removes the idiom in favour of "set -e" as used in the docker scripts
as a more robust mechanism to ensure that script failures are always
caught and propagated by default.
[Relay] Fix name of bias in testing.mlp (apache#2892)
winograd_nnpack (apache#2721)
[Relay] Fix Relay ARM CPU depthwise spatial pack schedule alter op layout issue. (apache#2861)
* Fix Relay ARM CPU spatial pack depthwise alter op layout issue.
* Update tune_relay_arm.py
[TESTS] Import script robustness (set -u) (apache#2896)
Adopt the "set -u" idiom from the docker scripts as a mechanism to
improve future robustness.
[DOCKER] Upgrade ci-cpu to latest v0.50 (apache#2901)
Allow linking against MKLML (apache#2902)
[COMMUNITY] ASF mentors (apache#2906)
[Relay] Allow converting keras.layers.Sequential (apache#2842)
* Allow converting keras.layers.Sequential
* Use existing new_var function
* Only update expr when missing
* Add test
[Relay] clean up hd, change tl (apache#2917)
Turn on USE_SORT by default (apache#2916)
[TEST] Cache test data (apache#2921)
Unified error handling in NNVM and Relay frontends (apache#2828)
add support for mxnet smooth_l1 (apache#2905)
[Relay] Add support for TupleGetItem in op fusion (apache#2914)
[Relay, TOPI] Deformable conv2d (apache#2908)
* [Relay, TOPI] Add deformable conv2d
* Moved to op level2
* Fix lint
* Moved to level2 & bug fix
* Update comments
* Disabled flaky test of conv2d
TVM debugresult dump to Chrome Tracing (apache#2922)
[Relay] add test for second order ad (apache#2754)
* do second order
* add comment
* better name
* use tvm assert all close
* refire ci
Revert "[Relay] add test for second order ad (apache#2754)" (apache#2926)
This reverts commit f5ca991.
[Tutorial] Cache the test data in tutorial (apache#2923)
[AUTOTVM] Refactor measure build func (apache#2927)
Fix intersect of modular set (apache#2904)
Fix comment bugs and code style
[Relay, OpFusion] Fix handling TupleGetItem for nested tuples (apache#2929)
Consistent result of DetectLinearEquation() when an empy vars is passed (apache#2860)
[FRONTEND][ONNX] Some bug fixes and Shape operator fixed for relay. (apache#2850)
* [FRONTEND][ONNX] Some bug fixes and Shape operator fixed for relay.
* * test cases
* * ci error
Outdated renaming for flatten in ONNX converter (apache#2843)
[FRONTEND][TENSORFLOW] bug fix for tensorflow official slim models. (apache#2864)
* [FRONTEND][TENSORFLOW] bug fix for tensorflow official slim models.
* * review comments
Fix vcvtph2ps codegen (apache#2925)
Port changes
More fixes
save
save
Changes to schedules and mxnet importer
save
save
save
save
save
remove
remove
save
MarisaKirisame added a commit to MarisaKirisame/tvm that referenced this pull request Apr 16, 2019
lint
lint
save
save
add more case
save
error
lint
lint
commit
do
lint
save
fix lint
wrap it back as func
lint
save
remove dead comment
fix style
fix lint
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
address review feedback
pe now handle freevar. as a result preserving function is now trivial.
test
add basic test, implement pretty printing for generic function
test
lint
fix segfault
save
save
do
test
fix another error
address comment
commit
save
address review feedback
add test for invalidate, fix error in lookup
rename cont to boduy
fix error and add regression test
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
fix error, add test case
fix lint
remove extra line
fix some error
pe
commit
save
save
save
save
save (pe/dce broken)
[DOCKER] Pin flatbuffers checkout to the last release tag (apache#2823). (apache#2879)
[Relay][Text Format] Reverse CallNode Print Order (apache#2882)
[NNPACK] Modernize test (apache#2868)
[Relay] Add list update to prelude (apache#2866)
Add missing sgx includes (apache#2878)
Fix setting up hints for getaddrinfo (apache#2872)
[ARITH] RewriteSimplifier: improved cmp simplification (apache#2851)
do (apache#2883)
[RELAY][Frontend][TF] decompile tf control flow (apache#2830)
* decompile tf control flow
* Add docs
* remove import relay
* move tests under tensorflow frontend
* minor fix
Enhance upsample operator to adapt onnx opset version 9 (apache#2840)
Use version invariant rustfmt (apache#2886)
[Relay][Op] Add group conv2d dispatch to topi function (apache#2870)
* [Relay][Op] Add group conv2d dispatch to topi function
* Rerun tests
[Apps] [howto_deploy] fix cxx-flags order and build directory (apache#2888)
fix prelu, now can use on 2d input and add one test (apache#2875)
Add dense schedules to __init__ for cpu (apache#2855)
* Add dense schedules to __init__ for cpu
* Add documentation for topi::shape
* Add additional imports to topi CPU __init__.
[TESTS] Improve script robustness (apache#2893)
A number of test scripts use the '|| exit 1' idiom. This has two
issues, first process exit codes are defined to be in the range 0-255.
Second, more importantly, the idiom is fragile because it requires
that every possible failure point be explicitly coded. This patch
removes the idiom in favour of "set -e" as used in the docker scripts
as a more robust mechanism to ensure that script failures are always
caught and propagated by default.
[Relay] Fix name of bias in testing.mlp (apache#2892)
winograd_nnpack (apache#2721)
[Relay] Fix Relay ARM CPU depthwise spatial pack schedule alter op layout issue. (apache#2861)
* Fix Relay ARM CPU spatial pack depthwise alter op layout issue.
* Update tune_relay_arm.py
[TESTS] Import script robustness (set -u) (apache#2896)
Adopt the "set -u" idiom from the docker scripts as a mechanism to
improve future robustness.
[DOCKER] Upgrade ci-cpu to latest v0.50 (apache#2901)
Allow linking against MKLML (apache#2902)
[COMMUNITY] ASF mentors (apache#2906)
[Relay] Allow converting keras.layers.Sequential (apache#2842)
* Allow converting keras.layers.Sequential
* Use existing new_var function
* Only update expr when missing
* Add test
[Relay] clean up hd, change tl (apache#2917)
Turn on USE_SORT by default (apache#2916)
[TEST] Cache test data (apache#2921)
Unified error handling in NNVM and Relay frontends (apache#2828)
add support for mxnet smooth_l1 (apache#2905)
[Relay] Add support for TupleGetItem in op fusion (apache#2914)
[Relay, TOPI] Deformable conv2d (apache#2908)
* [Relay, TOPI] Add deformable conv2d
* Moved to op level2
* Fix lint
* Moved to level2 & bug fix
* Update comments
* Disabled flaky test of conv2d
TVM debugresult dump to Chrome Tracing (apache#2922)
[Relay] add test for second order ad (apache#2754)
* do second order
* add comment
* better name
* use tvm assert all close
* refire ci
Revert "[Relay] add test for second order ad (apache#2754)" (apache#2926)
This reverts commit f5ca991.
[Tutorial] Cache the test data in tutorial (apache#2923)
[AUTOTVM] Refactor measure build func (apache#2927)
Fix intersect of modular set (apache#2904)
Fix comment bugs and code style
[Relay, OpFusion] Fix handling TupleGetItem for nested tuples (apache#2929)
Consistent result of DetectLinearEquation() when an empy vars is passed (apache#2860)
[FRONTEND][ONNX] Some bug fixes and Shape operator fixed for relay. (apache#2850)
* [FRONTEND][ONNX] Some bug fixes and Shape operator fixed for relay.
* * test cases
* * ci error
Outdated renaming for flatten in ONNX converter (apache#2843)
[FRONTEND][TENSORFLOW] bug fix for tensorflow official slim models. (apache#2864)
* [FRONTEND][TENSORFLOW] bug fix for tensorflow official slim models.
* * review comments
Fix vcvtph2ps codegen (apache#2925)
Port changes
More fixes
save
save
Changes to schedules and mxnet importer
save
save
save
save
save
remove
remove
save
save
MarisaKirisame added a commit to MarisaKirisame/tvm that referenced this pull request Apr 16, 2019
lint
lint
save
save
add more case
save
error
lint
lint
commit
do
lint
save
fix lint
wrap it back as func
lint
save
remove dead comment
fix style
fix lint
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
address review feedback
pe now handle freevar. as a result preserving function is now trivial.
test
add basic test, implement pretty printing for generic function
test
lint
fix segfault
save
save
do
test
fix another error
address comment
commit
save
address review feedback
add test for invalidate, fix error in lookup
rename cont to boduy
fix error and add regression test
Update src/relay/pass/partial_eval.cc
Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
fix error, add test case
fix lint
remove extra line
fix some error
pe
commit
save
save
save
save
save (pe/dce broken)
[DOCKER] Pin flatbuffers checkout to the last release tag (apache#2823). (apache#2879)
[Relay][Text Format] Reverse CallNode Print Order (apache#2882)
[NNPACK] Modernize test (apache#2868)
[Relay] Add list update to prelude (apache#2866)
Add missing sgx includes (apache#2878)
Fix setting up hints for getaddrinfo (apache#2872)
[ARITH] RewriteSimplifier: improved cmp simplification (apache#2851)
do (apache#2883)
[RELAY][Frontend][TF] decompile tf control flow (apache#2830)
* decompile tf control flow
* Add docs
* remove import relay
* move tests under tensorflow frontend
* minor fix
Enhance upsample operator to adapt onnx opset version 9 (apache#2840)
Use version invariant rustfmt (apache#2886)
[Relay][Op] Add group conv2d dispatch to topi function (apache#2870)
* [Relay][Op] Add group conv2d dispatch to topi function
* Rerun tests
[Apps] [howto_deploy] fix cxx-flags order and build directory (apache#2888)
fix prelu, now can use on 2d input and add one test (apache#2875)
Add dense schedules to __init__ for cpu (apache#2855)
* Add dense schedules to __init__ for cpu
* Add documentation for topi::shape
* Add additional imports to topi CPU __init__.
[TESTS] Improve script robustness (apache#2893)
A number of test scripts use the '|| exit 1' idiom. This has two
issues, first process exit codes are defined to be in the range 0-255.
Second, more importantly, the idiom is fragile because it requires
that every possible failure point be explicitly coded. This patch
removes the idiom in favour of "set -e" as used in the docker scripts
as a more robust mechanism to ensure that script failures are always
caught and propagated by default.
[Relay] Fix name of bias in testing.mlp (apache#2892)
winograd_nnpack (apache#2721)
[Relay] Fix Relay ARM CPU depthwise spatial pack schedule alter op layout issue. (apache#2861)
* Fix Relay ARM CPU spatial pack depthwise alter op layout issue.
* Update tune_relay_arm.py
[TESTS] Import script robustness (set -u) (apache#2896)
Adopt the "set -u" idiom from the docker scripts as a mechanism to
improve future robustness.
[DOCKER] Upgrade ci-cpu to latest v0.50 (apache#2901)
Allow linking against MKLML (apache#2902)
[COMMUNITY] ASF mentors (apache#2906)
[Relay] Allow converting keras.layers.Sequential (apache#2842)
* Allow converting keras.layers.Sequential
* Use existing new_var function
* Only update expr when missing
* Add test
[Relay] clean up hd, change tl (apache#2917)
Turn on USE_SORT by default (apache#2916)
[TEST] Cache test data (apache#2921)
Unified error handling in NNVM and Relay frontends (apache#2828)
add support for mxnet smooth_l1 (apache#2905)
[Relay] Add support for TupleGetItem in op fusion (apache#2914)
[Relay, TOPI] Deformable conv2d (apache#2908)
* [Relay, TOPI] Add deformable conv2d
* Moved to op level2
* Fix lint
* Moved to level2 & bug fix
* Update comments
* Disabled flaky test of conv2d
TVM debugresult dump to Chrome Tracing (apache#2922)
[Relay] add test for second order ad (apache#2754)
* do second order
* add comment
* better name
* use tvm assert all close
* refire ci
Revert "[Relay] add test for second order ad (apache#2754)" (apache#2926)
This reverts commit f5ca991.
[Tutorial] Cache the test data in tutorial (apache#2923)
[AUTOTVM] Refactor measure build func (apache#2927)
Fix intersect of modular set (apache#2904)
Fix comment bugs and code style
[Relay, OpFusion] Fix handling TupleGetItem for nested tuples (apache#2929)
Consistent result of DetectLinearEquation() when an empy vars is passed (apache#2860)
[FRONTEND][ONNX] Some bug fixes and Shape operator fixed for relay. (apache#2850)
* [FRONTEND][ONNX] Some bug fixes and Shape operator fixed for relay.
* * test cases
* * ci error
Outdated renaming for flatten in ONNX converter (apache#2843)
[FRONTEND][TENSORFLOW] bug fix for tensorflow official slim models. (apache#2864)
* [FRONTEND][TENSORFLOW] bug fix for tensorflow official slim models.
* * review comments
Fix vcvtph2ps codegen (apache#2925)
Port changes
More fixes
save
save
Changes to schedules and mxnet importer
save
save
save
save
save
remove
remove
save
save
revert
Sign up for freeto 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.

7 participants

@zhiics@jroesch@srkreddy1238@yongwww@lixiaoquan@wweic@yzhliu