[relay][frontend] Return Module from get_workload (#3483)
authorZhi <5145158+zhiics@users.noreply.github.com>
Sat, 6 Jul 2019 04:23:27 +0000 (21:23 -0700)
committerJared Roesch <roeschinc@gmail.com>
Sat, 6 Jul 2019 04:23:27 +0000 (21:23 -0700)
commitf35f22767da735b012c18e9886a38d360c3a6683
tree5421c575def6bd188ea4e098442f43176a8f3e76
parent42eee9237a665cf896ac67f63fc2779816d79e0f
[relay][frontend] Return Module from get_workload (#3483)

* [relay][frontend] Return Module from get_workload

* pass entry_func to autotvm

* disable tune

* add property to module

* mod.entry_func to main

* .main -> mod["main"]

* fix
87 files changed:
include/tvm/relay/analysis.h
include/tvm/relay/module.h
python/tvm/autotvm/graph_tuner/base_graph_tuner.py
python/tvm/autotvm/graph_tuner/utils/traverse_graph.py
python/tvm/autotvm/graph_tuner/utils/utils.py
python/tvm/relay/backend/interpreter.py
python/tvm/relay/backend/vm.py
python/tvm/relay/build_module.py
python/tvm/relay/frontend/caffe2.py
python/tvm/relay/frontend/common.py
python/tvm/relay/frontend/mxnet.py
python/tvm/relay/frontend/tensorflow.py
python/tvm/relay/module.py
python/tvm/relay/quantize/quantize.py
python/tvm/relay/testing/__init__.py
python/tvm/relay/testing/dcgan.py
python/tvm/relay/testing/densenet.py
python/tvm/relay/testing/dqn.py
python/tvm/relay/testing/inception_v3.py
python/tvm/relay/testing/init.py
python/tvm/relay/testing/lstm.py
python/tvm/relay/testing/mlp.py
python/tvm/relay/testing/mobilenet.py
python/tvm/relay/testing/resnet.py
python/tvm/relay/testing/squeezenet.py
python/tvm/relay/testing/vgg.py
src/relay/backend/build_module.cc
src/relay/backend/vm/vm.cc
src/relay/ir/module.cc
src/relay/pass/fold_constant.cc
src/relay/pass/partial_eval.cc
src/relay/pass/quantize.cc
src/relay/pass/type_infer.cc
tests/cpp/relay_pass_type_infer_test.cc
tests/cpp/relay_transform_sequential.cc
tests/python/frontend/caffe2/test_graph.py
tests/python/frontend/coreml/test_forward.py
tests/python/frontend/mxnet/test_graph.py
tests/python/frontend/nnvm_to_relay/test_alter_conv2d.py
tests/python/relay/benchmarking/benchmark_vm.py
tests/python/relay/test_autotvm_task_extraction.py
tests/python/relay/test_backend_compile_engine.py
tests/python/relay/test_backend_graph_runtime.py
tests/python/relay/test_backend_interpreter.py
tests/python/relay/test_error_reporting.py
tests/python/relay/test_feature.py
tests/python/relay/test_op_grad_level1.py
tests/python/relay/test_op_level1.py
tests/python/relay/test_op_level10.py
tests/python/relay/test_op_level2.py
tests/python/relay/test_op_level3.py
tests/python/relay/test_op_level4.py
tests/python/relay/test_op_level5.py
tests/python/relay/test_pass_alter_op_layout.py
tests/python/relay/test_pass_annotation.py
tests/python/relay/test_pass_canonicalize_cast.py
tests/python/relay/test_pass_combine_parallel_conv2d.py
tests/python/relay/test_pass_dead_code_elimination.py
tests/python/relay/test_pass_eliminate_common_subexpr.py
tests/python/relay/test_pass_eta_expand.py
tests/python/relay/test_pass_fold_constant.py
tests/python/relay/test_pass_fold_scale_axis.py
tests/python/relay/test_pass_fuse_ops.py
tests/python/relay/test_pass_gradient.py
tests/python/relay/test_pass_mac_count.py
tests/python/relay/test_pass_manager.py
tests/python/relay/test_pass_partial_eval.py
tests/python/relay/test_pass_quantize.py
tests/python/relay/test_pass_to_a_normal_form.py
tests/python/relay/test_pass_to_cps.py
tests/python/relay/test_pass_to_graph_normal_form.py
tests/python/relay/test_type_infer.py
tests/python/relay/test_typecall.py
tests/python/relay/test_vm.py
tests/python/unittest/test_graph_tuner_core.py
tests/python/unittest/test_graph_tuner_utils.py
tutorials/autotvm/tune_relay_arm.py
tutorials/autotvm/tune_relay_cuda.py
tutorials/autotvm/tune_relay_mobile_gpu.py
tutorials/autotvm/tune_relay_x86.py
tutorials/frontend/deploy_model_on_rasp.py
tutorials/frontend/from_mxnet.py
tutorials/relay_quick_start.py
vta/python/vta/top/graphpack.py
vta/scripts/tune_resnet.py
vta/tutorials/autotvm/tune_relay_vta.py
vta/tutorials/frontend/deploy_resnet_on_vta.py