You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by tq...@apache.org on 2024/11/26 04:40:56 UTC
(tvm-site) branch asf-site updated: deploying docs (apache/tvm@92e2bba08e8a8915d5875cd49e522dbdf74c9bca)
This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/tvm-site.git
The following commit(s) were added to refs/heads/asf-site by this push:
new cd063cca35 deploying docs (apache/tvm@92e2bba08e8a8915d5875cd49e522dbdf74c9bca)
cd063cca35 is described below
commit cd063cca35f1687956da66381bd77e9870a8277a
Author: tvm-bot <95...@users.noreply.github.com>
AuthorDate: Tue Nov 26 04:40:46 2024 +0000
deploying docs (apache/tvm@92e2bba08e8a8915d5875cd49e522dbdf74c9bca)
---
.../micro_autotune.zip} | Bin 13898 -> 24214 bytes
.../deploy_model_on_rasp.zip} | Bin 9943 -> 18389 bytes
.../micro_pytorch.ipynb | 2 +-
.../relay_quick_start.zip} | Bin 7245 -> 13512 bytes
.../deploy_sparse.ipynb | 2 +-
.../opt_gemm.ipynb | 2 +-
.../reduction.ipynb | 2 +-
.../ir_module.zip} | Bin 13253 -> 23868 bytes
.../cross_compilation_and_rpc.ipynb | 2 +-
.../tune_network_mali.zip} | Bin 16835 -> 32722 bytes
.../tir_transformation.zip} | Bin 8907 -> 15571 bytes
.../deploy_model_on_android.zip} | Bin 13100 -> 25077 bytes
.../low_level_custom_pass.zip} | Bin 8236 -> 15394 bytes
.../deploy_prequantized_tflite.ipynb | 2 +-
.../from_pytorch.ipynb | 2 +-
.../uma.zip} | Bin 10494 -> 20759 bytes
.../micro_mlperftiny.ipynb | 2 +-
.../tuple_inputs.zip} | Bin 5634 -> 10513 bytes
.../from_tflite.ipynb | 2 +-
.../auto_scheduler_matmul_x86.ipynb | 2 +-
.../using_relay_viz.zip} | Bin 8312 -> 15347 bytes
.../tune_sparse_x86.ipynb | 2 +-
.../from_oneflow.ipynb | 180 -
.../autotvm_relay_x86.ipynb | 2 +-
.../opt_conv_cuda.zip} | Bin 10472 -> 19713 bytes
.../relax_creation.ipynb | 2 +-
.../e2e_opt_model.ipynb | 2 +-
.../relax_transformation.ipynb | 2 +-
.../opt_conv_tensorcore.zip} | Bin 16509 -> 31527 bytes
.../autotvm_matmul_x86.ipynb | 2 +-
.../deploy_object_detection_pytorch.ipynb | 2 +-
.../micro_custom_ide.zip} | Bin 18302 -> 36321 bytes
.../tensorize.ipynb | 2 +-
.../relay_quick_start.ipynb | 2 +-
.../tune_relay_x86.zip} | Bin 14170 -> 27514 bytes
.../tensor_expr_get_started.ipynb | 2 +-
.../relax_creation.zip} | Bin 11998 -> 22392 bytes
.../micro_tflite.zip} | Bin 13683 -> 23897 bytes
.../tune_relay_cuda.zip} | Bin 17357 -> 33422 bytes
.../autotvm_relay_x86.zip} | Bin 26533 -> 50170 bytes
.../tune_network_arm.ipynb | 2 +-
.../extern_op.zip} | Bin 6524 -> 12072 bytes
.../micro_ethosu.ipynb | 2 +-
.../micro_tflite.ipynb | 2 +-
.../tune_network_mali.ipynb | 2 +-
.../tune_conv2d_layer_cuda.ipynb | 2 +-
.../from_keras.zip} | Bin 6889 -> 12200 bytes
.../deploy_model_on_adreno_tvmc.ipynb | 2 +-
.../intro_topi.ipynb | 2 +-
.../tvmc_command_line_driver.zip | Bin 0 -> 42834 bytes
.../tune_conv2d_layer_cuda.zip} | Bin 11108 -> 20379 bytes
.../tune_relay_mobile_gpu.ipynb | 2 +-
.../6e0673ce1f08636c34d0b9a73ea114f7/uma.ipynb | 2 +-
.../micro_tvmc.ipynb | 2 +-
.../729378592a96230b4f7be71b44da43a4/scan.ipynb | 2 +-
.../tune_conv2d_cuda.ipynb | 2 +-
.../opt_conv_tensorcore.ipynb | 2 +-
.../using_pipeline_executor.zip} | Bin 14096 -> 23989 bytes
.../from_onnx.ipynb | 2 +-
.../micro_aot.zip} | Bin 10842 -> 18926 bytes
.../deploy_model_on_rasp.ipynb | 2 +-
.../relax_transformation.zip} | Bin 6223 -> 11460 bytes
.../use_pass_infra.ipynb | 2 +-
.../deploy_sparse.zip} | Bin 21268 -> 40892 bytes
.../build_gcn.ipynb | 2 +-
.../from_paddle.zip} | Bin 5538 -> 9777 bytes
.../opt_gemm.zip} | Bin 17684 -> 32757 bytes
.../from_coreml.zip} | Bin 5685 -> 9964 bytes
.../tensor_expr_get_started.zip} | Bin 45079 -> 84773 bytes
.../from_tensorflow.ipynb | 2 +-
.../optimize_llm.zip} | Bin 28533 -> 53544 bytes
.../extern_op.ipynb | 2 +-
.../opt_conv_cuda.ipynb | 2 +-
.../scan.zip} | Bin 8176 -> 14813 bytes
.../tune_relay_mobile_gpu.zip} | Bin 18140 -> 35269 bytes
.../tensor_ir_blitz_course.zip} | Bin 9555 -> 17306 bytes
.../tvmc_python.ipynb | 2 +-
.../tune_relay_x86.ipynb | 2 +-
.../tvmc_python.zip | Bin 0 -> 19300 bytes
.../deploy_prequantized_tflite.zip} | Bin 13090 -> 23576 bytes
.../introduction.ipynb | 2 +-
.../tuple_inputs.ipynb | 2 +-
.../micro_ethosu.zip | Bin 0 -> 38806 bytes
.../from_paddle.ipynb | 2 +-
.../ir_module.ipynb | 2 +-
.../micro_custom_ide.ipynb | 2 +-
.../a7aff5918e1b86809a5bd1da8bef7229/tedd.ipynb | 2 +-
.../micro_train.ipynb | 2 +-
.../e2e_opt_model.zip} | Bin 5855 -> 11127 bytes
.../from_coreml.ipynb | 2 +-
.../optimize_llm.ipynb | 2 +-
.../tune_network_x86.ipynb | 2 +-
.../tune_network_cuda.ipynb | 2 +-
.../schedule_primitives.zip} | Bin 10743 -> 18746 bytes
.../schedule_primitives.ipynb | 2 +-
.../using_relay_viz.ipynb | 2 +-
.../deploy_model_on_adreno.ipynb | 2 +-
.../quick_start.zip} | Bin 8364 -> 16274 bytes
.../tune_relay_arm.ipynb | 2 +-
.../deploy_model_on_nano.zip} | Bin 10515 -> 19367 bytes
.../tir_creation.zip} | Bin 12968 -> 24339 bytes
.../use_pass_infra.zip} | Bin 13980 -> 25968 bytes
.../micro_aot.ipynb | 2 +-
.../tune_network_arm.zip} | Bin 19388 -> 37769 bytes
.../deploy_prequantized.ipynb | 2 +-
.../tir_creation.ipynb | 2 +-
.../from_tensorflow.zip} | Bin 11203 -> 20030 bytes
.../from_keras.ipynb | 2 +-
.../tensor_ir_blitz_course.ipynb | 2 +-
.../deploy_model_on_adreno_tvmc.zip} | Bin 8824 -> 16316 bytes
.../deploy_model_on_nano.ipynb | 2 +-
.../deploy_object_detection_pytorch.zip} | Bin 6480 -> 11749 bytes
.../reduction.zip} | Bin 10298 -> 18296 bytes
.../tedd.zip} | Bin 8209 -> 15178 bytes
.../tune_relay_cuda.ipynb | 2 +-
.../autotvm_matmul_x86.zip} | Bin 17881 -> 34396 bytes
.../micro_train.zip} | Bin 33884 -> 66026 bytes
.../low_level_custom_pass.ipynb | 2 +-
.../customize_opt.ipynb | 2 +-
.../micro_pytorch.zip} | Bin 9370 -> 16804 bytes
.../tune_sparse_x86.zip} | Bin 16079 -> 30821 bytes
.../tune_relay_arm.zip} | Bin 17972 -> 34800 bytes
.../micro_mlperftiny.zip} | Bin 14974 -> 26747 bytes
.../tune_network_cuda.zip} | Bin 14746 -> 28502 bytes
.../tir_transformation.ipynb | 2 +-
.../build_gcn.zip} | Bin 14200 -> 26168 bytes
.../from_tflite.zip} | Bin 7994 -> 14539 bytes
.../from_onnx.zip} | Bin 7204 -> 13141 bytes
.../introduction.zip | Bin 0 -> 14415 bytes
.../tune_conv2d_cuda.zip} | Bin 11349 -> 21775 bytes
.../tune_network_x86.zip} | Bin 15760 -> 30501 bytes
.../quick_start.ipynb | 2 +-
.../from_pytorch.zip} | Bin 7425 -> 13188 bytes
.../deploy_model_on_adreno.zip} | Bin 20211 -> 37605 bytes
.../use_pass_instrument.zip} | Bin 17904 -> 32423 bytes
.../using_external_lib.ipynb | 2 +-
.../deploy_model_on_android.ipynb | 2 +-
.../tvmc_command_line_driver.ipynb | 2 +-
.../micro_tvmc.zip} | Bin 9325 -> 17699 bytes
.../using_external_lib.zip | Bin 0 -> 114032 bytes
.../deploy_prequantized.zip} | Bin 12444 -> 22650 bytes
.../using_pipeline_executor.ipynb | 2 +-
.../auto_scheduler_matmul_x86.zip} | Bin 10899 -> 20202 bytes
.../cross_compilation_and_rpc.zip} | Bin 11275 -> 21418 bytes
.../customize_opt.zip} | Bin 10486 -> 19795 bytes
.../use_pass_instrument.ipynb | 2 +-
.../from_oneflow.py | 182 -
.../micro_autotune.ipynb | 2 +-
.../tensorize.zip} | Bin 15270 -> 28202 bytes
.../from_darknet.ipynb | 2 +-
.../from_darknet.zip} | Bin 9290 -> 17100 bytes
.../intro_topi.zip} | Bin 8778 -> 15374 bytes
.../sphx_glr_deploy_model_on_adreno_001.png | Bin 245200 -> 245200 bytes
docs/_images/sphx_glr_from_darknet_001.png | Bin 340042 -> 340042 bytes
docs/_images/sphx_glr_from_keras_001.png | Bin 245200 -> 245200 bytes
docs/_images/sphx_glr_from_oneflow_thumb.png | Bin 26794 -> 0 bytes
docs/_images/sphx_glr_from_onnx_001.png | Bin 164348 -> 164348 bytes
docs/_images/sphx_glr_from_tflite_001.png | Bin 245200 -> 245200 bytes
docs/_images/sphx_glr_micro_train_001.png | Bin 312809 -> 312809 bytes
.../deep_dive/relax/tutorials/index.rst.txt | 7 +-
.../relax/tutorials/relax_creation.rst.txt | 21 +-
.../relax/tutorials/relax_transformation.rst.txt | 17 +-
.../relax/tutorials/sg_execution_times.rst.txt | 38 +-
.../deep_dive/tensor_ir/tutorials/index.rst.txt | 9 +-
.../tensor_ir/tutorials/sg_execution_times.rst.txt | 38 +-
.../tensor_ir/tutorials/tir_creation.rst.txt | 27 +-
.../tensor_ir/tutorials/tir_transformation.rst.txt | 35 +-
docs/_sources/get_started/tutorials/index.rst.txt | 9 +-
.../get_started/tutorials/ir_module.rst.txt | 33 +-
.../get_started/tutorials/quick_start.rst.txt | 15 +-
.../tutorials/sg_execution_times.rst.txt | 38 +-
.../how_to/compile_models/from_coreml.rst.txt | 19 +-
.../how_to/compile_models/from_darknet.rst.txt | 21 +-
.../how_to/compile_models/from_keras.rst.txt | 21 +-
.../how_to/compile_models/from_oneflow.rst.txt | 344 -
.../how_to/compile_models/from_onnx.rst.txt | 19 +-
.../how_to/compile_models/from_paddle.rst.txt | 21 +-
.../how_to/compile_models/from_pytorch.rst.txt | 27 +-
.../how_to/compile_models/from_tensorflow.rst.txt | 29 +-
.../how_to/compile_models/from_tflite.rst.txt | 19 +-
docs/_sources/how_to/compile_models/index.rst.txt | 39 +-
.../compile_models/sg_execution_times.rst.txt | 72 +-
.../deploy_models/deploy_model_on_adreno.rst.txt | 39 +-
.../deploy_model_on_adreno_tvmc.rst.txt | 29 +-
.../deploy_models/deploy_model_on_android.rst.txt | 28 +-
.../deploy_models/deploy_model_on_nano.rst.txt | 27 +-
.../deploy_models/deploy_model_on_rasp.rst.txt | 27 +-
.../deploy_object_detection_pytorch.rst.txt | 96 +-
.../deploy_models/deploy_prequantized.rst.txt | 49 +-
.../deploy_prequantized_tflite.rst.txt | 35 +-
.../how_to/deploy_models/deploy_sparse.rst.txt | 23 +-
docs/_sources/how_to/deploy_models/index.rst.txt | 31 +-
.../deploy_models/sg_execution_times.rst.txt | 75 +-
docs/_sources/how_to/extend_tvm/index.rst.txt | 15 +-
.../extend_tvm/low_level_custom_pass.rst.txt | 17 +-
.../how_to/extend_tvm/sg_execution_times.rst.txt | 45 +-
.../how_to/extend_tvm/use_pass_infra.rst.txt | 31 +-
.../how_to/extend_tvm/use_pass_instrument.rst.txt | 57 +-
.../how_to/optimize_operators/index.rst.txt | 15 +-
.../optimize_operators/opt_conv_cuda.rst.txt | 21 +-
.../optimize_operators/opt_conv_tensorcore.rst.txt | 21 +-
.../how_to/optimize_operators/opt_gemm.rst.txt | 51 +-
.../optimize_operators/sg_execution_times.rst.txt | 45 +-
.../how_to/tune_with_autoscheduler/index.rst.txt | 25 +-
.../sg_execution_times.rst.txt | 60 +-
.../tune_conv2d_layer_cuda.rst.txt | 27 +-
.../tune_network_arm.rst.txt | 17 +-
.../tune_network_cuda.rst.txt | 21 +-
.../tune_network_mali.rst.txt | 17 +-
.../tune_network_x86.rst.txt | 21 +-
.../tune_sparse_x86.rst.txt | 21 +-
.../how_to/tune_with_autotvm/index.rst.txt | 21 +-
.../tune_with_autotvm/sg_execution_times.rst.txt | 55 +-
.../tune_with_autotvm/tune_conv2d_cuda.rst.txt | 17 +-
.../tune_with_autotvm/tune_relay_arm.rst.txt | 17 +-
.../tune_with_autotvm/tune_relay_cuda.rst.txt | 19 +-
.../tune_relay_mobile_gpu.rst.txt | 17 +-
.../tune_with_autotvm/tune_relay_x86.rst.txt | 15 +-
.../tutorials/cross_compilation_and_rpc.rst.txt | 21 +-
.../how_to/tutorials/customize_opt.rst.txt | 19 +-
.../how_to/tutorials/e2e_opt_model.rst.txt | 15 +-
docs/_sources/how_to/tutorials/index.rst.txt | 11 +-
.../_sources/how_to/tutorials/optimize_llm.rst.txt | 41 +-
.../how_to/tutorials/sg_execution_times.rst.txt | 50 +-
.../how_to/work_with_microtvm/index.rst.txt | 35 +-
.../how_to/work_with_microtvm/micro_aot.rst.txt | 21 +-
.../work_with_microtvm/micro_autotune.rst.txt | 43 +-
.../work_with_microtvm/micro_custom_ide.rst.txt | 15 +-
.../how_to/work_with_microtvm/micro_ethosu.rst.txt | 7 +-
.../work_with_microtvm/micro_mlperftiny.rst.txt | 21 +-
.../work_with_microtvm/micro_pytorch.rst.txt | 31 +-
.../how_to/work_with_microtvm/micro_tflite.rst.txt | 27 +-
.../how_to/work_with_microtvm/micro_train.rst.txt | 53 +-
.../how_to/work_with_microtvm/micro_tvmc.rst.txt | 7 +-
.../work_with_microtvm/sg_execution_times.rst.txt | 75 +-
.../how_to/work_with_relay/build_gcn.rst.txt | 40 +-
docs/_sources/how_to/work_with_relay/index.rst.txt | 15 +-
.../work_with_relay/sg_execution_times.rst.txt | 50 +-
.../work_with_relay/using_external_lib.rst.txt | 17 +-
.../using_pipeline_executor.rst.txt | 45 +-
.../how_to/work_with_relay/using_relay_viz.rst.txt | 19 +-
.../how_to/work_with_schedules/extern_op.rst.txt | 17 +-
.../how_to/work_with_schedules/index.rst.txt | 25 +-
.../how_to/work_with_schedules/reduction.rst.txt | 29 +-
.../how_to/work_with_schedules/scan.rst.txt | 21 +-
.../schedule_primitives.rst.txt | 33 +-
.../work_with_schedules/sg_execution_times.rst.txt | 65 +-
.../how_to/work_with_schedules/tedd.rst.txt | 19 +-
.../how_to/work_with_schedules/tensorize.rst.txt | 29 +-
.../work_with_schedules/tuple_inputs.rst.txt | 15 +-
docs/_sources/sg_execution_times.rst.txt | 259 +
.../tutorial/auto_scheduler_matmul_x86.rst.txt | 29 +-
docs/_sources/tutorial/autotvm_matmul_x86.rst.txt | 43 +-
docs/_sources/tutorial/autotvm_relay_x86.rst.txt | 95 +-
docs/_sources/tutorial/index.rst.txt | 41 +-
docs/_sources/tutorial/intro_topi.rst.txt | 29 +-
docs/_sources/tutorial/introduction.rst.txt | 7 +-
docs/_sources/tutorial/relay_quick_start.rst.txt | 19 +-
docs/_sources/tutorial/sg_execution_times.rst.txt | 85 +-
.../tutorial/tensor_expr_get_started.rst.txt | 112 +-
.../tutorial/tensor_ir_blitz_course.rst.txt | 27 +-
.../tutorial/tvmc_command_line_driver.rst.txt | 7 +-
docs/_sources/tutorial/tvmc_python.rst.txt | 7 +-
docs/_sources/tutorial/uma.rst.txt | 7 +-
.../_sphinx_javascript_frameworks_compat.js | 123 +
docs/_static/basic.css | 77 +-
docs/_static/css/badge_only.css | 2 +-
docs/_static/css/theme.css | 2 +-
docs/_static/doctools.js | 381 +-
docs/_static/documentation_options.js | 9 +-
docs/_static/fonts/Lato/lato-bold.eot | Bin 0 -> 256056 bytes
docs/_static/fonts/Lato/lato-bold.ttf | Bin 0 -> 600856 bytes
docs/_static/fonts/Lato/lato-bold.woff | Bin 0 -> 309728 bytes
docs/_static/fonts/Lato/lato-bold.woff2 | Bin 0 -> 184912 bytes
docs/_static/fonts/Lato/lato-bolditalic.eot | Bin 0 -> 266158 bytes
docs/_static/fonts/Lato/lato-bolditalic.ttf | Bin 0 -> 622572 bytes
docs/_static/fonts/Lato/lato-bolditalic.woff | Bin 0 -> 323344 bytes
docs/_static/fonts/Lato/lato-bolditalic.woff2 | Bin 0 -> 193308 bytes
docs/_static/fonts/Lato/lato-italic.eot | Bin 0 -> 268604 bytes
docs/_static/fonts/Lato/lato-italic.ttf | Bin 0 -> 639388 bytes
docs/_static/fonts/Lato/lato-italic.woff | Bin 0 -> 328412 bytes
docs/_static/fonts/Lato/lato-italic.woff2 | Bin 0 -> 195704 bytes
docs/_static/fonts/Lato/lato-regular.eot | Bin 0 -> 253461 bytes
docs/_static/fonts/Lato/lato-regular.ttf | Bin 0 -> 607720 bytes
docs/_static/fonts/Lato/lato-regular.woff | Bin 0 -> 309192 bytes
docs/_static/fonts/Lato/lato-regular.woff2 | Bin 0 -> 182708 bytes
.../fonts/RobotoSlab/roboto-slab-v7-bold.eot | Bin 0 -> 79520 bytes
.../fonts/RobotoSlab/roboto-slab-v7-bold.ttf | Bin 0 -> 170616 bytes
.../fonts/RobotoSlab/roboto-slab-v7-bold.woff | Bin 0 -> 87624 bytes
.../fonts/RobotoSlab/roboto-slab-v7-bold.woff2 | Bin 0 -> 67312 bytes
.../fonts/RobotoSlab/roboto-slab-v7-regular.eot | Bin 0 -> 78331 bytes
.../fonts/RobotoSlab/roboto-slab-v7-regular.ttf | Bin 0 -> 169064 bytes
.../fonts/RobotoSlab/roboto-slab-v7-regular.woff | Bin 0 -> 86288 bytes
.../fonts/RobotoSlab/roboto-slab-v7-regular.woff2 | Bin 0 -> 66444 bytes
docs/_static/jquery-3.5.1.js | 10872 -------------------
docs/_static/jquery.js | 4 +-
docs/_static/js/html5shiv-printshiv.min.js | 4 -
docs/_static/js/html5shiv.min.js | 4 -
docs/_static/js/versions.js | 228 +
docs/_static/jupyterlite_badge_logo.svg | 3 +
docs/_static/language_data.js | 104 +-
docs/_static/searchtools.js | 886 +-
docs/_static/sg_gallery-binder.css | 5 +
docs/_static/sg_gallery-dataframe.css | 1 +
docs/_static/sg_gallery.css | 114 +-
docs/_static/sphinx_highlight.js | 154 +
docs/_static/underscore-1.13.1.js | 2042 ----
docs/_static/underscore.js | 6 -
docs/arch/debugger.html | 124 +-
docs/arch/device_target_interactions.html | 112 +-
docs/arch/index.html | 221 +-
.../arch/introduction_to_module_serialization.html | 118 +-
docs/arch/pass_infra.html | 184 +-
docs/arch/runtime.html | 130 +-
docs/arch/runtimes/vulkan.html | 127 +-
docs/commit_hash | 2 +-
docs/contribute/ci.html | 191 +-
docs/contribute/code_guide.html | 128 +-
docs/contribute/code_review.html | 188 +-
docs/contribute/committer_guide.html | 134 +-
docs/contribute/community.html | 122 +-
docs/contribute/document.html | 170 +-
docs/contribute/error_handling.html | 110 +-
docs/contribute/git_howto.html | 134 +-
docs/contribute/index.html | 94 +-
docs/contribute/pull_request.html | 140 +-
docs/contribute/release_process.html | 170 +-
docs/deep_dive/relax/abstraction.html | 106 +-
docs/deep_dive/relax/index.html | 94 +-
docs/deep_dive/relax/learning.html | 139 +-
docs/deep_dive/relax/tutorials/index.html | 98 +-
docs/deep_dive/relax/tutorials/relax_creation.html | 158 +-
.../relax/tutorials/relax_transformation.html | 147 +-
.../relax/tutorials/sg_execution_times.html | 132 +-
docs/deep_dive/tensor_ir/abstraction.html | 106 +-
docs/deep_dive/tensor_ir/index.html | 95 +-
docs/deep_dive/tensor_ir/learning.html | 130 +-
docs/deep_dive/tensor_ir/tutorials/index.html | 99 +-
.../tensor_ir/tutorials/sg_execution_times.html | 132 +-
.../tensor_ir/tutorials/tir_creation.html | 196 +-
.../tensor_ir/tutorials/tir_transformation.html | 179 +-
docs/dev/how_to/debugging_tvm.html | 100 +-
docs/dev/how_to/how_to.html | 95 +-
docs/dev/how_to/relay_add_op.html | 166 +-
docs/dev/how_to/relay_add_pass.html | 136 +-
docs/dev/how_to/relay_bring_your_own_codegen.html | 196 +-
docs/dev/tutorial/codebase_walkthrough.html | 106 +-
docs/dev/tutorial/index.html | 94 +-
docs/errors.html | 106 +-
docs/genindex.html | 85 +-
docs/get_started/overview.html | 112 +-
docs/get_started/tutorials/index.html | 98 +-
docs/get_started/tutorials/ir_module.html | 194 +-
docs/get_started/tutorials/quick_start.html | 159 +-
docs/get_started/tutorials/sg_execution_times.html | 132 +-
docs/how_to/compile_models/from_coreml.html | 147 +-
docs/how_to/compile_models/from_darknet.html | 149 +-
docs/how_to/compile_models/from_keras.html | 149 +-
docs/how_to/compile_models/from_oneflow.html | 709 --
docs/how_to/compile_models/from_onnx.html | 153 +-
docs/how_to/compile_models/from_paddle.html | 153 +-
docs/how_to/compile_models/from_pytorch.html | 174 +-
docs/how_to/compile_models/from_tensorflow.html | 181 +-
docs/how_to/compile_models/from_tflite.html | 153 +-
docs/how_to/compile_models/index.html | 114 +-
docs/how_to/compile_models/sg_execution_times.html | 160 +-
docs/how_to/deploy/adreno.html | 172 +-
docs/how_to/deploy/android.html | 106 +-
docs/how_to/deploy/arm_compute_lib.html | 140 +-
docs/how_to/deploy/bnns.html | 134 +-
docs/how_to/deploy/cpp_deploy.html | 106 +-
docs/how_to/deploy/hls.html | 118 +-
docs/how_to/deploy/index.html | 147 +-
docs/how_to/deploy/integrate.html | 112 +-
docs/how_to/deploy/mrvl.html | 166 +-
docs/how_to/deploy/tensorrt.html | 146 +-
docs/how_to/deploy/vitis_ai.html | 167 +-
.../deploy_models/deploy_model_on_adreno.html | 214 +-
.../deploy_models/deploy_model_on_adreno_tvmc.html | 172 +-
.../deploy_models/deploy_model_on_android.html | 169 +-
.../how_to/deploy_models/deploy_model_on_nano.html | 154 +-
.../how_to/deploy_models/deploy_model_on_rasp.html | 154 +-
.../deploy_object_detection_pytorch.html | 254 +-
docs/how_to/deploy_models/deploy_prequantized.html | 200 +-
.../deploy_models/deploy_prequantized_tflite.html | 192 +-
docs/how_to/deploy_models/deploy_sparse.html | 168 +-
docs/how_to/deploy_models/index.html | 112 +-
docs/how_to/deploy_models/sg_execution_times.html | 174 +-
docs/how_to/dev/index.html | 94 +-
docs/how_to/dev/pytest_target_parametrization.html | 124 +-
docs/how_to/dev/setup_rpc_system.html | 161 +-
docs/how_to/extend_tvm/index.html | 100 +-
docs/how_to/extend_tvm/low_level_custom_pass.html | 150 +-
docs/how_to/extend_tvm/sg_execution_times.html | 138 +-
docs/how_to/extend_tvm/use_pass_infra.html | 172 +-
docs/how_to/extend_tvm/use_pass_instrument.html | 190 +-
docs/how_to/legacy_index.html | 95 +-
docs/how_to/optimize_operators/index.html | 100 +-
docs/how_to/optimize_operators/opt_conv_cuda.html | 163 +-
.../optimize_operators/opt_conv_tensorcore.html | 166 +-
docs/how_to/optimize_operators/opt_gemm.html | 196 +-
.../optimize_operators/sg_execution_times.html | 138 +-
docs/how_to/profile/index.html | 94 +-
docs/how_to/profile/papi.html | 112 +-
docs/how_to/tune_with_autoscheduler/index.html | 106 +-
.../sg_execution_times.html | 156 +-
.../tune_conv2d_layer_cuda.html | 154 +-
.../tune_with_autoscheduler/tune_network_arm.html | 156 +-
.../tune_with_autoscheduler/tune_network_cuda.html | 148 +-
.../tune_with_autoscheduler/tune_network_mali.html | 144 +-
.../tune_with_autoscheduler/tune_network_x86.html | 148 +-
.../tune_with_autoscheduler/tune_sparse_x86.html | 148 +-
docs/how_to/tune_with_autotvm/index.html | 104 +-
.../tune_with_autotvm/sg_execution_times.html | 148 +-
.../how_to/tune_with_autotvm/tune_conv2d_cuda.html | 132 +-
docs/how_to/tune_with_autotvm/tune_relay_arm.html | 158 +-
docs/how_to/tune_with_autotvm/tune_relay_cuda.html | 154 +-
.../tune_with_autotvm/tune_relay_mobile_gpu.html | 158 +-
docs/how_to/tune_with_autotvm/tune_relay_x86.html | 130 +-
.../tutorials/cross_compilation_and_rpc.html | 154 +-
docs/how_to/tutorials/customize_opt.html | 175 +-
docs/how_to/tutorials/e2e_opt_model.html | 149 +-
docs/how_to/tutorials/index.html | 102 +-
docs/how_to/tutorials/optimize_llm.html | 211 +-
docs/how_to/tutorials/sg_execution_times.html | 144 +-
docs/how_to/work_with_microtvm/index.html | 112 +-
docs/how_to/work_with_microtvm/micro_aot.html | 166 +-
docs/how_to/work_with_microtvm/micro_autotune.html | 200 +-
.../work_with_microtvm/micro_custom_ide.html | 160 +-
docs/how_to/work_with_microtvm/micro_ethosu.html | 193 +-
.../work_with_microtvm/micro_mlperftiny.html | 178 +-
docs/how_to/work_with_microtvm/micro_pytorch.html | 170 +-
docs/how_to/work_with_microtvm/micro_tflite.html | 160 +-
docs/how_to/work_with_microtvm/micro_train.html | 297 +-
docs/how_to/work_with_microtvm/micro_tvmc.html | 152 +-
.../work_with_microtvm/sg_execution_times.html | 168 +-
docs/how_to/work_with_relay/build_gcn.html | 192 +-
docs/how_to/work_with_relay/index.html | 103 +-
.../how_to/work_with_relay/sg_execution_times.html | 144 +-
.../how_to/work_with_relay/using_external_lib.html | 146 +-
.../work_with_relay/using_pipeline_executor.html | 190 +-
docs/how_to/work_with_relay/using_relay_viz.html | 146 +-
docs/how_to/work_with_schedules/extern_op.html | 144 +-
docs/how_to/work_with_schedules/index.html | 108 +-
docs/how_to/work_with_schedules/reduction.html | 168 +-
docs/how_to/work_with_schedules/scan.html | 148 +-
.../work_with_schedules/schedule_primitives.html | 184 +-
.../work_with_schedules/sg_execution_times.html | 162 +-
docs/how_to/work_with_schedules/tedd.html | 134 +-
docs/how_to/work_with_schedules/tensorize.html | 156 +-
docs/how_to/work_with_schedules/tuple_inputs.html | 136 +-
docs/index.html | 95 +-
docs/install/docker.html | 100 +-
docs/install/from_source.html | 158 +-
docs/install/index.html | 94 +-
docs/objects.inv | Bin 30585 -> 30557 bytes
docs/py-modindex.html | 85 +-
docs/reference/api/javadoc/allclasses-index.html | 2 +-
docs/reference/api/javadoc/allpackages-index.html | 2 +-
docs/reference/api/javadoc/constant-values.html | 2 +-
docs/reference/api/javadoc/help-doc.html | 2 +-
docs/reference/api/javadoc/index-all.html | 2 +-
docs/reference/api/javadoc/index.html | 2 +-
docs/reference/api/javadoc/legal/jquery.md | 50 +-
docs/reference/api/javadoc/org/apache/tvm/API.html | 2 +-
.../api/javadoc/org/apache/tvm/APIInternal.html | 2 +-
.../api/javadoc/org/apache/tvm/ArgTypeCode.html | 2 +-
.../api/javadoc/org/apache/tvm/Device.html | 2 +-
.../javadoc/org/apache/tvm/Function.Callback.html | 2 +-
.../api/javadoc/org/apache/tvm/Function.html | 2 +-
.../api/javadoc/org/apache/tvm/Module.html | 2 +-
.../api/javadoc/org/apache/tvm/NDArray.html | 2 +-
.../api/javadoc/org/apache/tvm/NDArrayBase.html | 2 +-
.../api/javadoc/org/apache/tvm/TVMType.html | 2 +-
.../api/javadoc/org/apache/tvm/TVMValue.html | 2 +-
.../api/javadoc/org/apache/tvm/TVMValueBytes.html | 2 +-
.../api/javadoc/org/apache/tvm/TVMValueDouble.html | 2 +-
.../api/javadoc/org/apache/tvm/TVMValueHandle.html | 2 +-
.../api/javadoc/org/apache/tvm/TVMValueLong.html | 2 +-
.../api/javadoc/org/apache/tvm/TVMValueNull.html | 2 +-
.../api/javadoc/org/apache/tvm/TVMValueString.html | 2 +-
.../api/javadoc/org/apache/tvm/class-use/API.html | 2 +-
.../org/apache/tvm/class-use/APIInternal.html | 2 +-
.../org/apache/tvm/class-use/ArgTypeCode.html | 2 +-
.../javadoc/org/apache/tvm/class-use/Device.html | 2 +-
.../apache/tvm/class-use/Function.Callback.html | 2 +-
.../javadoc/org/apache/tvm/class-use/Function.html | 2 +-
.../javadoc/org/apache/tvm/class-use/Module.html | 2 +-
.../javadoc/org/apache/tvm/class-use/NDArray.html | 2 +-
.../org/apache/tvm/class-use/NDArrayBase.html | 2 +-
.../javadoc/org/apache/tvm/class-use/TVMType.html | 2 +-
.../javadoc/org/apache/tvm/class-use/TVMValue.html | 2 +-
.../org/apache/tvm/class-use/TVMValueBytes.html | 2 +-
.../org/apache/tvm/class-use/TVMValueDouble.html | 2 +-
.../org/apache/tvm/class-use/TVMValueHandle.html | 2 +-
.../org/apache/tvm/class-use/TVMValueLong.html | 2 +-
.../org/apache/tvm/class-use/TVMValueNull.html | 2 +-
.../org/apache/tvm/class-use/TVMValueString.html | 2 +-
.../org/apache/tvm/contrib/GraphExecutor.html | 2 +-
.../org/apache/tvm/contrib/GraphModule.html | 2 +-
.../tvm/contrib/class-use/GraphExecutor.html | 2 +-
.../apache/tvm/contrib/class-use/GraphModule.html | 2 +-
.../org/apache/tvm/contrib/package-summary.html | 2 +-
.../org/apache/tvm/contrib/package-tree.html | 2 +-
.../org/apache/tvm/contrib/package-use.html | 2 +-
.../javadoc/org/apache/tvm/package-summary.html | 2 +-
.../api/javadoc/org/apache/tvm/package-tree.html | 2 +-
.../api/javadoc/org/apache/tvm/package-use.html | 2 +-
.../api/javadoc/org/apache/tvm/rpc/Client.html | 2 +-
.../tvm/rpc/ConnectProxyServerProcessor.html | 2 +-
.../tvm/rpc/ConnectTrackerServerProcessor.html | 2 +-
.../org/apache/tvm/rpc/NativeServerLoop.html | 2 +-
.../org/apache/tvm/rpc/RPC.TrackerCode.html | 2 +-
.../api/javadoc/org/apache/tvm/rpc/RPC.html | 2 +-
.../api/javadoc/org/apache/tvm/rpc/RPCSession.html | 2 +-
.../javadoc/org/apache/tvm/rpc/RPCWatchdog.html | 2 +-
.../api/javadoc/org/apache/tvm/rpc/Server.html | 2 +-
.../org/apache/tvm/rpc/ServerProcessor.html | 2 +-
.../javadoc/org/apache/tvm/rpc/SocketChannel.html | 2 +-
.../apache/tvm/rpc/StandaloneServerProcessor.html | 2 +-
.../org/apache/tvm/rpc/TVMRemoteDevice.html | 2 +-
.../org/apache/tvm/rpc/class-use/Client.html | 2 +-
.../rpc/class-use/ConnectProxyServerProcessor.html | 2 +-
.../class-use/ConnectTrackerServerProcessor.html | 2 +-
.../apache/tvm/rpc/class-use/NativeServerLoop.html | 2 +-
.../apache/tvm/rpc/class-use/RPC.TrackerCode.html | 2 +-
.../javadoc/org/apache/tvm/rpc/class-use/RPC.html | 2 +-
.../org/apache/tvm/rpc/class-use/RPCSession.html | 2 +-
.../org/apache/tvm/rpc/class-use/RPCWatchdog.html | 2 +-
.../org/apache/tvm/rpc/class-use/Server.html | 2 +-
.../apache/tvm/rpc/class-use/ServerProcessor.html | 2 +-
.../apache/tvm/rpc/class-use/SocketChannel.html | 2 +-
.../rpc/class-use/StandaloneServerProcessor.html | 2 +-
.../apache/tvm/rpc/class-use/TVMRemoteDevice.html | 2 +-
.../org/apache/tvm/rpc/package-summary.html | 2 +-
.../javadoc/org/apache/tvm/rpc/package-tree.html | 2 +-
.../javadoc/org/apache/tvm/rpc/package-use.html | 2 +-
docs/reference/api/javadoc/overview-tree.html | 2 +-
.../api/javadoc/script-dir/jquery-3.6.1.min.js | 2 -
.../api/javadoc/script-dir/jquery-3.7.1.min.js | 2 +
docs/reference/api/links.html | 94 +-
docs/reference/api/python/auto_scheduler.html | 631 +-
docs/reference/api/python/autotvm.html | 1052 +-
docs/reference/api/python/contrib.html | 973 +-
docs/reference/api/python/dlight.html | 192 +-
docs/reference/api/python/driver.html | 116 +-
docs/reference/api/python/error.html | 149 +-
docs/reference/api/python/graph_executor.html | 218 +-
docs/reference/api/python/index.html | 95 +-
docs/reference/api/python/instrument.html | 178 +-
docs/reference/api/python/ir.html | 849 +-
docs/reference/api/python/meta_schedule.html | 698 +-
docs/reference/api/python/micro.html | 267 +-
docs/reference/api/python/relax/analysis.html | 319 +-
docs/reference/api/python/relax/block_builder.html | 278 +-
docs/reference/api/python/relax/frontend.html | 1067 +-
docs/reference/api/python/relax/op.html | 1955 ++--
docs/reference/api/python/relax/relax.html | 993 +-
docs/reference/api/python/relax/transform.html | 648 +-
docs/reference/api/python/relay/analysis.html | 432 +-
docs/reference/api/python/relay/backend.html | 295 +-
.../api/python/relay/dataflow_pattern.html | 528 +-
docs/reference/api/python/relay/frontend.html | 248 +-
docs/reference/api/python/relay/image.html | 186 +-
docs/reference/api/python/relay/index.html | 1263 +--
docs/reference/api/python/relay/nn.html | 988 +-
docs/reference/api/python/relay/testing.html | 355 +-
docs/reference/api/python/relay/transform.html | 658 +-
docs/reference/api/python/relay/vision.html | 212 +-
docs/reference/api/python/rpc.html | 310 +-
docs/reference/api/python/runtime/disco.html | 251 +-
docs/reference/api/python/runtime/ndarray.html | 302 +-
docs/reference/api/python/runtime/profiling.html | 172 +-
docs/reference/api/python/runtime/relax_vm.html | 166 +-
docs/reference/api/python/runtime/runtime.html | 94 +-
docs/reference/api/python/target.html | 372 +-
docs/reference/api/python/te.html | 1130 +-
docs/reference/api/python/tir/analysis.html | 262 +-
docs/reference/api/python/tir/schedule.html | 791 +-
docs/reference/api/python/tir/stmt_functor.html | 137 +-
docs/reference/api/python/tir/tir.html | 1942 ++--
docs/reference/api/python/tir/transform.html | 742 +-
docs/reference/api/python/topi.html | 2795 ++---
docs/reference/api/python/transform.html | 191 +-
.../api/typedoc/classes/ArtifactCache.html | 14 +-
.../typedoc/classes/ArtifactIndexedDBCache.html | 16 +-
docs/reference/api/typedoc/classes/DLDataType.html | 14 +-
docs/reference/api/typedoc/classes/DLDevice.html | 12 +-
docs/reference/api/typedoc/classes/Instance.html | 116 +-
.../classes/LinearCongruentialGenerator.html | 16 +-
docs/reference/api/typedoc/classes/Module.html | 12 +-
docs/reference/api/typedoc/classes/NDArray.html | 30 +-
docs/reference/api/typedoc/classes/RPCServer.html | 16 +-
docs/reference/api/typedoc/classes/Scalar.html | 8 +-
docs/reference/api/typedoc/classes/TVMArray.html | 16 +-
docs/reference/api/typedoc/classes/TVMObject.html | 12 +-
.../api/typedoc/classes/VirtualMachine.html | 10 +-
.../classes/_internal_.AsyncifyHandler.html | 12 +-
.../classes/_internal_.CachedCallStack.html | 36 +-
.../classes/_internal_.CanvasRenderManager.html | 10 +-
.../typedoc/classes/_internal_.Environment.html | 14 +-
.../api/typedoc/classes/_internal_.FFILibrary.html | 22 +-
.../api/typedoc/classes/_internal_.Memory.html | 36 +-
.../typedoc/classes/_internal_.PackedFuncCell.html | 8 +-
.../typedoc/classes/_internal_.RuntimeContext.html | 60 +-
.../api/typedoc/classes/_internal_.TVMString.html | 14 +-
.../typedoc/classes/_internal_.WebGPUContext.html | 28 +-
.../enums/_internal_.AsyncifyStateKind.html | 8 +-
.../typedoc/enums/_internal_.RPCServerState.html | 14 +-
docs/reference/api/typedoc/functions/assert.html | 2 +-
.../api/typedoc/functions/createPolyfillWASI.html | 2 +-
.../api/typedoc/functions/deleteNDArrayCache.html | 2 +-
.../api/typedoc/functions/detectGPUDevice.html | 2 +-
.../api/typedoc/functions/hasNDArrayInCache.html | 2 +-
.../api/typedoc/functions/instantiate.html | 2 +-
docs/reference/api/typedoc/functions/wasmPath.html | 2 +-
.../typedoc/interfaces/ArtifactCacheTemplate.html | 10 +-
.../api/typedoc/interfaces/Disposable.html | 4 +-
.../typedoc/interfaces/GPUDeviceDetectOutput.html | 8 +-
.../api/typedoc/interfaces/InitProgressReport.html | 8 +-
.../api/typedoc/interfaces/LibraryProvider.html | 6 +-
.../interfaces/_internal_.FunctionInfo.html | 8 +-
.../interfaces/_internal_.NDArrayCacheEntry.html | 14 +-
.../interfaces/_internal_.NDArrayShardEntry.html | 10 +-
.../api/typedoc/types/InitProgressCallback.html | 2 +-
docs/reference/api/typedoc/types/PackedFunc.html | 2 +-
.../typedoc/types/_internal_.AsyncPackedFunc.html | 2 +-
.../types/_internal_.FObjectConstructor.html | 2 +-
.../types/_internal_.FTVMWasmAllocSpace.html | 2 +-
.../types/_internal_.FTVMWasmFreeSpace.html | 2 +-
.../types/_internal_.FTVMWasmPackedCFunc.html | 2 +-
.../api/typedoc/types/_internal_.Pointer.html | 2 +-
.../typedoc/types/_internal_.TVMObjectBase.html | 2 +-
docs/reference/langref/hybrid_script.html | 178 +-
docs/reference/langref/index.html | 106 +-
docs/reference/langref/relay_adt.html | 130 +-
docs/reference/langref/relay_expr.html | 220 +-
docs/reference/langref/relay_op.html | 148 +-
docs/reference/langref/relay_pattern.html | 238 +-
docs/reference/langref/relay_type.html | 172 +-
docs/reference/publications.html | 94 +-
docs/reference/security.html | 106 +-
docs/search.html | 85 +-
docs/searchindex.js | 2 +-
docs/sg_execution_times.html | 698 ++
docs/topic/microtvm/index.html | 119 +-
docs/tutorial/auto_scheduler_matmul_x86.html | 174 +-
docs/tutorial/autotvm_matmul_x86.html | 194 +-
docs/tutorial/autotvm_relay_x86.html | 465 +-
docs/tutorial/index.html | 116 +-
docs/tutorial/intro_topi.html | 156 +-
docs/tutorial/introduction.html | 119 +-
docs/tutorial/relay_quick_start.html | 146 +-
docs/tutorial/sg_execution_times.html | 178 +-
docs/tutorial/tensor_expr_get_started.html | 337 +-
docs/tutorial/tensor_ir_blitz_course.html | 160 +-
docs/tutorial/tvmc_command_line_driver.html | 177 +-
docs/tutorial/tvmc_python.html | 188 +-
docs/tutorial/uma.html | 137 +-
659 files changed, 23616 insertions(+), 48914 deletions(-)
diff --git a/docs/_downloads/f83ba3df2d52f9b54cf141114359481a/micro_autotune.ipynb b/docs/_downloads/03a27a2548456c92f932f2db8289a3dd/micro_autotune.zip
similarity index 57%
copy from docs/_downloads/f83ba3df2d52f9b54cf141114359481a/micro_autotune.ipynb
copy to docs/_downloads/03a27a2548456c92f932f2db8289a3dd/micro_autotune.zip
index c1912be4aa..6d2c66d488 100644
Binary files a/docs/_downloads/f83ba3df2d52f9b54cf141114359481a/micro_autotune.ipynb and b/docs/_downloads/03a27a2548456c92f932f2db8289a3dd/micro_autotune.zip differ
diff --git a/docs/_downloads/7c392f39b90d93406ef30c6185c5686c/deploy_model_on_rasp.ipynb b/docs/_downloads/04dd60f6f8670069a391ed901e3fe79c/deploy_model_on_rasp.zip
similarity index 53%
copy from docs/_downloads/7c392f39b90d93406ef30c6185c5686c/deploy_model_on_rasp.ipynb
copy to docs/_downloads/04dd60f6f8670069a391ed901e3fe79c/deploy_model_on_rasp.zip
index dc05dcbdb7..e6e8caa1c4 100644
Binary files a/docs/_downloads/7c392f39b90d93406ef30c6185c5686c/deploy_model_on_rasp.ipynb and b/docs/_downloads/04dd60f6f8670069a391ed901e3fe79c/deploy_model_on_rasp.zip differ
diff --git a/docs/_downloads/09df7d9b9c90a2a1bdd570520693fd9f/micro_pytorch.ipynb b/docs/_downloads/09df7d9b9c90a2a1bdd570520693fd9f/micro_pytorch.ipynb
index f7eec8b305..190e16fcd0 100644
--- a/docs/_downloads/09df7d9b9c90a2a1bdd570520693fd9f/micro_pytorch.ipynb
+++ b/docs/_downloads/09df7d9b9c90a2a1bdd570520693fd9f/micro_pytorch.ipynb
@@ -172,7 +172,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/3dd2108354ac3028c96bcd6a0c7899dd/relay_quick_start.ipynb b/docs/_downloads/0b3b0179b8f1f007a897b71e4e7149f2/relay_quick_start.zip
similarity index 53%
copy from docs/_downloads/3dd2108354ac3028c96bcd6a0c7899dd/relay_quick_start.ipynb
copy to docs/_downloads/0b3b0179b8f1f007a897b71e4e7149f2/relay_quick_start.zip
index 2c33bf9861..36f99bcc24 100644
Binary files a/docs/_downloads/3dd2108354ac3028c96bcd6a0c7899dd/relay_quick_start.ipynb and b/docs/_downloads/0b3b0179b8f1f007a897b71e4e7149f2/relay_quick_start.zip differ
diff --git a/docs/_downloads/0b60295044fd20226a0d5adc52b50b2f/deploy_sparse.ipynb b/docs/_downloads/0b60295044fd20226a0d5adc52b50b2f/deploy_sparse.ipynb
index 00a2855683..ae665d83fe 100644
--- a/docs/_downloads/0b60295044fd20226a0d5adc52b50b2f/deploy_sparse.ipynb
+++ b/docs/_downloads/0b60295044fd20226a0d5adc52b50b2f/deploy_sparse.ipynb
@@ -179,7 +179,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/0f8d36b3ffd04a5a08089dc671eb788e/opt_gemm.ipynb b/docs/_downloads/0f8d36b3ffd04a5a08089dc671eb788e/opt_gemm.ipynb
index a9e057f08d..877118872f 100644
--- a/docs/_downloads/0f8d36b3ffd04a5a08089dc671eb788e/opt_gemm.ipynb
+++ b/docs/_downloads/0f8d36b3ffd04a5a08089dc671eb788e/opt_gemm.ipynb
@@ -301,7 +301,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/10d831d158490a9ee3abd1901806fc11/reduction.ipynb b/docs/_downloads/10d831d158490a9ee3abd1901806fc11/reduction.ipynb
index c6666e1659..2a06327725 100644
--- a/docs/_downloads/10d831d158490a9ee3abd1901806fc11/reduction.ipynb
+++ b/docs/_downloads/10d831d158490a9ee3abd1901806fc11/reduction.ipynb
@@ -240,7 +240,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/a6d7947451d373bc811080cffa18dc7c/ir_module.ipynb b/docs/_downloads/11c11e53c7dace51a8be968ee169ed0d/ir_module.zip
similarity index 55%
copy from docs/_downloads/a6d7947451d373bc811080cffa18dc7c/ir_module.ipynb
copy to docs/_downloads/11c11e53c7dace51a8be968ee169ed0d/ir_module.zip
index 13d8ba92d3..77eb317d73 100644
Binary files a/docs/_downloads/a6d7947451d373bc811080cffa18dc7c/ir_module.ipynb and b/docs/_downloads/11c11e53c7dace51a8be968ee169ed0d/ir_module.zip differ
diff --git a/docs/_downloads/148819f3421b8d89b1723c3e15e3f19f/cross_compilation_and_rpc.ipynb b/docs/_downloads/148819f3421b8d89b1723c3e15e3f19f/cross_compilation_and_rpc.ipynb
index 87c0706288..a860d60e91 100644
--- a/docs/_downloads/148819f3421b8d89b1723c3e15e3f19f/cross_compilation_and_rpc.ipynb
+++ b/docs/_downloads/148819f3421b8d89b1723c3e15e3f19f/cross_compilation_and_rpc.ipynb
@@ -171,7 +171,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/5e4e499c097b16a90c517e630502253a/tune_network_mali.ipynb b/docs/_downloads/15e84e4b9a53ca75d57dddb6016dfa16/tune_network_mali.zip
similarity index 51%
copy from docs/_downloads/5e4e499c097b16a90c517e630502253a/tune_network_mali.ipynb
copy to docs/_downloads/15e84e4b9a53ca75d57dddb6016dfa16/tune_network_mali.zip
index f4e1d9370c..3364fd269a 100644
Binary files a/docs/_downloads/5e4e499c097b16a90c517e630502253a/tune_network_mali.ipynb and b/docs/_downloads/15e84e4b9a53ca75d57dddb6016dfa16/tune_network_mali.zip differ
diff --git a/docs/_downloads/e2a9c4bfdec7a9365ef67c5335b1aaa4/tir_transformation.ipynb b/docs/_downloads/18ba0d2ee8120824175aaef66bc9c9bf/tir_transformation.zip
similarity index 57%
copy from docs/_downloads/e2a9c4bfdec7a9365ef67c5335b1aaa4/tir_transformation.ipynb
copy to docs/_downloads/18ba0d2ee8120824175aaef66bc9c9bf/tir_transformation.zip
index 59c8feecff..e9bc2f725e 100644
Binary files a/docs/_downloads/e2a9c4bfdec7a9365ef67c5335b1aaa4/tir_transformation.ipynb and b/docs/_downloads/18ba0d2ee8120824175aaef66bc9c9bf/tir_transformation.zip differ
diff --git a/docs/_downloads/eed2658f15243bab719b2de7769fa45a/deploy_model_on_android.ipynb b/docs/_downloads/18ccfdf40b857190382c92a3bd247e15/deploy_model_on_android.zip
similarity index 52%
copy from docs/_downloads/eed2658f15243bab719b2de7769fa45a/deploy_model_on_android.ipynb
copy to docs/_downloads/18ccfdf40b857190382c92a3bd247e15/deploy_model_on_android.zip
index 02413adc66..74a3a3a0af 100644
Binary files a/docs/_downloads/eed2658f15243bab719b2de7769fa45a/deploy_model_on_android.ipynb and b/docs/_downloads/18ccfdf40b857190382c92a3bd247e15/deploy_model_on_android.zip differ
diff --git a/docs/_downloads/d58ec306b89044968adefb49e6552378/low_level_custom_pass.ipynb b/docs/_downloads/1a212f7ecab33551dc57f098ca07bbaa/low_level_custom_pass.zip
similarity index 53%
copy from docs/_downloads/d58ec306b89044968adefb49e6552378/low_level_custom_pass.ipynb
copy to docs/_downloads/1a212f7ecab33551dc57f098ca07bbaa/low_level_custom_pass.zip
index 453f83ee4d..dc9aa81f05 100644
Binary files a/docs/_downloads/d58ec306b89044968adefb49e6552378/low_level_custom_pass.ipynb and b/docs/_downloads/1a212f7ecab33551dc57f098ca07bbaa/low_level_custom_pass.zip differ
diff --git a/docs/_downloads/1a26d790f7b98309d730181290dae3ee/deploy_prequantized_tflite.ipynb b/docs/_downloads/1a26d790f7b98309d730181290dae3ee/deploy_prequantized_tflite.ipynb
index 3048824261..9d79abf22a 100644
--- a/docs/_downloads/1a26d790f7b98309d730181290dae3ee/deploy_prequantized_tflite.ipynb
+++ b/docs/_downloads/1a26d790f7b98309d730181290dae3ee/deploy_prequantized_tflite.ipynb
@@ -311,7 +311,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/1f4943aed1aa607b2775c18b1d71db10/from_pytorch.ipynb b/docs/_downloads/1f4943aed1aa607b2775c18b1d71db10/from_pytorch.ipynb
index 3c095fdc27..0dee2dd62f 100644
--- a/docs/_downloads/1f4943aed1aa607b2775c18b1d71db10/from_pytorch.ipynb
+++ b/docs/_downloads/1f4943aed1aa607b2775c18b1d71db10/from_pytorch.ipynb
@@ -172,7 +172,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/6e0673ce1f08636c34d0b9a73ea114f7/uma.ipynb b/docs/_downloads/1f4d13a71e86b5e463ada947e48c3e45/uma.zip
similarity index 50%
copy from docs/_downloads/6e0673ce1f08636c34d0b9a73ea114f7/uma.ipynb
copy to docs/_downloads/1f4d13a71e86b5e463ada947e48c3e45/uma.zip
index 36eff98623..4c67e8c535 100644
Binary files a/docs/_downloads/6e0673ce1f08636c34d0b9a73ea114f7/uma.ipynb and b/docs/_downloads/1f4d13a71e86b5e463ada947e48c3e45/uma.zip differ
diff --git a/docs/_downloads/1fc1683d67bee4f26703504a58d42578/micro_mlperftiny.ipynb b/docs/_downloads/1fc1683d67bee4f26703504a58d42578/micro_mlperftiny.ipynb
index 69a4d2ac62..348125fc0a 100644
--- a/docs/_downloads/1fc1683d67bee4f26703504a58d42578/micro_mlperftiny.ipynb
+++ b/docs/_downloads/1fc1683d67bee4f26703504a58d42578/micro_mlperftiny.ipynb
@@ -222,7 +222,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/a1417396e306d987107a7a39376ec261/tuple_inputs.ipynb b/docs/_downloads/20e331d12e240ee4fa35113eb29b0e59/tuple_inputs.zip
similarity index 53%
copy from docs/_downloads/a1417396e306d987107a7a39376ec261/tuple_inputs.ipynb
copy to docs/_downloads/20e331d12e240ee4fa35113eb29b0e59/tuple_inputs.zip
index 56da92191b..1c19d01df2 100644
Binary files a/docs/_downloads/a1417396e306d987107a7a39376ec261/tuple_inputs.ipynb and b/docs/_downloads/20e331d12e240ee4fa35113eb29b0e59/tuple_inputs.zip differ
diff --git a/docs/_downloads/23968bb778cd9591b7ad858bf17dcc3e/from_tflite.ipynb b/docs/_downloads/23968bb778cd9591b7ad858bf17dcc3e/from_tflite.ipynb
index eed85eb163..6bb3db1c08 100644
--- a/docs/_downloads/23968bb778cd9591b7ad858bf17dcc3e/from_tflite.ipynb
+++ b/docs/_downloads/23968bb778cd9591b7ad858bf17dcc3e/from_tflite.ipynb
@@ -161,7 +161,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/246d4b8509474fd9046e69f6cc9b7f87/auto_scheduler_matmul_x86.ipynb b/docs/_downloads/246d4b8509474fd9046e69f6cc9b7f87/auto_scheduler_matmul_x86.ipynb
index dafda982ef..5523dcc579 100644
--- a/docs/_downloads/246d4b8509474fd9046e69f6cc9b7f87/auto_scheduler_matmul_x86.ipynb
+++ b/docs/_downloads/246d4b8509474fd9046e69f6cc9b7f87/auto_scheduler_matmul_x86.ipynb
@@ -197,7 +197,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/b954238c1884e83b45d2ae543d824f03/using_relay_viz.ipynb b/docs/_downloads/2833632ce1c26f36b91081910e110c51/using_relay_viz.zip
similarity index 53%
copy from docs/_downloads/b954238c1884e83b45d2ae543d824f03/using_relay_viz.ipynb
copy to docs/_downloads/2833632ce1c26f36b91081910e110c51/using_relay_viz.zip
index d24e442b67..3526945f09 100644
Binary files a/docs/_downloads/b954238c1884e83b45d2ae543d824f03/using_relay_viz.ipynb and b/docs/_downloads/2833632ce1c26f36b91081910e110c51/using_relay_viz.zip differ
diff --git a/docs/_downloads/293f8d0753933b706a0b588f909fe38a/tune_sparse_x86.ipynb b/docs/_downloads/293f8d0753933b706a0b588f909fe38a/tune_sparse_x86.ipynb
index 7f3e949b86..fd15c6c43c 100644
--- a/docs/_downloads/293f8d0753933b706a0b588f909fe38a/tune_sparse_x86.ipynb
+++ b/docs/_downloads/293f8d0753933b706a0b588f909fe38a/tune_sparse_x86.ipynb
@@ -161,7 +161,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/2e7b51cb39c472626dd3f046d9b89966/from_oneflow.ipynb b/docs/_downloads/2e7b51cb39c472626dd3f046d9b89966/from_oneflow.ipynb
deleted file mode 100644
index e1e846da3d..0000000000
--- a/docs/_downloads/2e7b51cb39c472626dd3f046d9b89966/from_oneflow.ipynb
+++ /dev/null
@@ -1,180 +0,0 @@
-{
- "cells": [
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {
- "collapsed": false
- },
- "outputs": [],
- "source": [
- "%%shell\n# Installs the latest dev build of TVM from PyPI, with CUDA enabled. To use this,\n# you must request a Google Colab instance with a GPU by going to Runtime ->\n# Change runtime type -> Hardware accelerator -> GPU. If you wish to build from\n# source, see https://tvm.apache.org/docs/install/from_source.html\npip install tlcpack-nightly-cu113 --pre -f https://tlcpack.ai/wheels"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "\n# Compile OneFlow Models\n**Author**: [Xiaoyu Zhang](https://github.com/BBuf/)\n\nThis article is an introductory tutorial to deploy OneFlow models with Relay.\n\nFor us to begin with, OneFlow package should be installed.\n\nA quick solution is to install via pip\n"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {
- "collapsed": false
- },
- "outputs": [],
- "source": [
- "%%shell\npip install flowvision==0.1.0\npip install -f https://release.oneflow.info oneflow==0.7.0+cpu"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "or please refer to official site:\nhttps://github.com/Oneflow-Inc/oneflow\n\nCurrently, TVM supports OneFlow 0.7.0. Other versions may be unstable.\n"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {
- "collapsed": false
- },
- "outputs": [],
- "source": [
- "import os, math\nfrom matplotlib import pyplot as plt\nimport numpy as np\nfrom PIL import Image\n\n# oneflow imports\nimport flowvision\nimport oneflow as flow\nimport oneflow.nn as nn\n\nimport tvm\nfrom tvm import relay\nfrom tvm.contrib.download import download_testdata"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "## Load a pretrained OneFlow model and save model\n\n"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {
- "collapsed": false
- },
- "outputs": [],
- "source": [
- "model_name = \"resnet18\"\nmodel = getattr(flowvision.models, model_name)(pretrained=True)\nmodel = model.eval()\n\nmodel_dir = \"resnet18_model\"\nif not os.path.exists(model_dir):\n flow.save(model.state_dict(), model_dir)"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "## Load a test image\nClassic cat example!\n\n"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {
- "collapsed": false
- },
- "outputs": [],
- "source": [
- "from PIL import Image\n\nimg_url = \"https://github.com/dmlc/mxnet.js/blob/main/data/cat.png?raw=true\"\nimg_path = download_testdata(img_url, \"cat.png\", module=\"data\")\nimg = Image.open(img_path).resize((224, 224))\n\n# Preprocess the image and convert to tensor\nfrom flowvision import transforms\n\nmy_preprocess = transforms.Compose(\n [\n transforms.Resize(256),\n transforms.CenterCrop(224),\n transforms.ToTensor(),\n transforms.Normalize(me [...]
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "## Import the graph to Relay\nConvert OneFlow graph to Relay graph. The input name can be arbitrary.\n\n"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {
- "collapsed": false
- },
- "outputs": [],
- "source": [
- "class Graph(flow.nn.Graph):\n def __init__(self, module):\n super().__init__()\n self.m = module\n\n def build(self, x):\n out = self.m(x)\n return out\n\n\ngraph = Graph(model)\n_ = graph._compile(flow.randn(1, 3, 224, 224))\n\nmod, params = relay.frontend.from_oneflow(graph, model_dir)"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "## Relay Build\nCompile the graph to llvm target with given input specification.\n\n"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {
- "collapsed": false
- },
- "outputs": [],
- "source": [
- "target = tvm.target.Target(\"llvm\", host=\"llvm\")\ndev = tvm.cpu(0)\nwith tvm.transform.PassContext(opt_level=3):\n lib = relay.build(mod, target=target, params=params)"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "## Execute the portable graph on TVM\nNow we can try deploying the compiled model on target.\n\n"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {
- "collapsed": false
- },
- "outputs": [],
- "source": [
- "target = \"cuda\"\nwith tvm.transform.PassContext(opt_level=10):\n intrp = relay.build_module.create_executor(\"graph\", mod, tvm.cuda(0), target)\n\nprint(type(img))\nprint(img.shape)\ntvm_output = intrp.evaluate()(tvm.nd.array(img.astype(\"float32\")), **params)"
- ]
- },
- {
- "cell_type": "markdown",
- "metadata": {},
- "source": [
- "## Look up synset name\nLook up prediction top 1 index in 1000 class synset.\n\n"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {
- "collapsed": false
- },
- "outputs": [],
- "source": [
- "synset_url = \"\".join(\n [\n \"https://raw.githubusercontent.com/Cadene/\",\n \"pretrained-models.pytorch/master/data/\",\n \"imagenet_synsets.txt\",\n ]\n)\nsynset_name = \"imagenet_synsets.txt\"\nsynset_path = download_testdata(synset_url, synset_name, module=\"data\")\nwith open(synset_path) as f:\n synsets = f.readlines()\n\nsynsets = [x.strip() for x in synsets]\nsplits = [line.split(\" \") for line in synsets]\nkey_to_classname = {spl[0]: \" [...]
- ]
- }
- ],
- "metadata": {
- "kernelspec": {
- "display_name": "Python 3",
- "language": "python",
- "name": "python3"
- },
- "language_info": {
- "codemirror_mode": {
- "name": "ipython",
- "version": 3
- },
- "file_extension": ".py",
- "mimetype": "text/x-python",
- "name": "python",
- "nbconvert_exporter": "python",
- "pygments_lexer": "ipython3",
- "version": "3.8.20"
- }
- },
- "nbformat": 4,
- "nbformat_minor": 0
-}
\ No newline at end of file
diff --git a/docs/_downloads/2f91b1346a0ba21b800081aa15fdaac2/autotvm_relay_x86.ipynb b/docs/_downloads/2f91b1346a0ba21b800081aa15fdaac2/autotvm_relay_x86.ipynb
index f56791550e..ab5764bfae 100644
--- a/docs/_downloads/2f91b1346a0ba21b800081aa15fdaac2/autotvm_relay_x86.ipynb
+++ b/docs/_downloads/2f91b1346a0ba21b800081aa15fdaac2/autotvm_relay_x86.ipynb
@@ -340,7 +340,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/854257a66df713b1f3f82eb3577f95e3/opt_conv_cuda.ipynb b/docs/_downloads/2fc83ed7e0dbf87580730e23ee509df0/opt_conv_cuda.zip
similarity index 52%
copy from docs/_downloads/854257a66df713b1f3f82eb3577f95e3/opt_conv_cuda.ipynb
copy to docs/_downloads/2fc83ed7e0dbf87580730e23ee509df0/opt_conv_cuda.zip
index 5d0816d5b9..ba39f0cb87 100644
Binary files a/docs/_downloads/854257a66df713b1f3f82eb3577f95e3/opt_conv_cuda.ipynb and b/docs/_downloads/2fc83ed7e0dbf87580730e23ee509df0/opt_conv_cuda.zip differ
diff --git a/docs/_downloads/315fcda965a8d605f81705edf19ea2c6/relax_creation.ipynb b/docs/_downloads/315fcda965a8d605f81705edf19ea2c6/relax_creation.ipynb
index 97cc45de20..9d7ff6f8a5 100644
--- a/docs/_downloads/315fcda965a8d605f81705edf19ea2c6/relax_creation.ipynb
+++ b/docs/_downloads/315fcda965a8d605f81705edf19ea2c6/relax_creation.ipynb
@@ -182,7 +182,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/317a8cc53139718b9a36a16ba052e44b/e2e_opt_model.ipynb b/docs/_downloads/317a8cc53139718b9a36a16ba052e44b/e2e_opt_model.ipynb
index fbc90579ae..5061806a1f 100644
--- a/docs/_downloads/317a8cc53139718b9a36a16ba052e44b/e2e_opt_model.ipynb
+++ b/docs/_downloads/317a8cc53139718b9a36a16ba052e44b/e2e_opt_model.ipynb
@@ -114,7 +114,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/31d077cfa7c55c0edcd16ad5d4faf483/relax_transformation.ipynb b/docs/_downloads/31d077cfa7c55c0edcd16ad5d4faf483/relax_transformation.ipynb
index 8db3cb959f..021d036e8b 100644
--- a/docs/_downloads/31d077cfa7c55c0edcd16ad5d4faf483/relax_transformation.ipynb
+++ b/docs/_downloads/31d077cfa7c55c0edcd16ad5d4faf483/relax_transformation.ipynb
@@ -132,7 +132,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/7455981870c23c8c76482dedf33d8a42/opt_conv_tensorcore.ipynb b/docs/_downloads/3730f34283ab71874c3a27d9387066e7/opt_conv_tensorcore.zip
similarity index 52%
copy from docs/_downloads/7455981870c23c8c76482dedf33d8a42/opt_conv_tensorcore.ipynb
copy to docs/_downloads/3730f34283ab71874c3a27d9387066e7/opt_conv_tensorcore.zip
index 80792f0065..c0687fb78b 100644
Binary files a/docs/_downloads/7455981870c23c8c76482dedf33d8a42/opt_conv_tensorcore.ipynb and b/docs/_downloads/3730f34283ab71874c3a27d9387066e7/opt_conv_tensorcore.zip differ
diff --git a/docs/_downloads/37bbf9e2065ec8deeb64a8d9fa0755bc/autotvm_matmul_x86.ipynb b/docs/_downloads/37bbf9e2065ec8deeb64a8d9fa0755bc/autotvm_matmul_x86.ipynb
index 1b0594944f..3ba39b97c2 100644
--- a/docs/_downloads/37bbf9e2065ec8deeb64a8d9fa0755bc/autotvm_matmul_x86.ipynb
+++ b/docs/_downloads/37bbf9e2065ec8deeb64a8d9fa0755bc/autotvm_matmul_x86.ipynb
@@ -214,7 +214,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/399e1d7889ca66b69d51655784827503/deploy_object_detection_pytorch.ipynb b/docs/_downloads/399e1d7889ca66b69d51655784827503/deploy_object_detection_pytorch.ipynb
index 17b1efbed6..0e96057346 100644
--- a/docs/_downloads/399e1d7889ca66b69d51655784827503/deploy_object_detection_pytorch.ipynb
+++ b/docs/_downloads/399e1d7889ca66b69d51655784827503/deploy_object_detection_pytorch.ipynb
@@ -154,7 +154,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/a74627f44186b95116fe0ed6f77e3b99/micro_custom_ide.ipynb b/docs/_downloads/3aa9e734bc367975316a8140caf843d6/micro_custom_ide.zip
similarity index 50%
copy from docs/_downloads/a74627f44186b95116fe0ed6f77e3b99/micro_custom_ide.ipynb
copy to docs/_downloads/3aa9e734bc367975316a8140caf843d6/micro_custom_ide.zip
index a3cd654a15..102fe5c516 100644
Binary files a/docs/_downloads/a74627f44186b95116fe0ed6f77e3b99/micro_custom_ide.ipynb and b/docs/_downloads/3aa9e734bc367975316a8140caf843d6/micro_custom_ide.zip differ
diff --git a/docs/_downloads/3b5e41b16a898b72d18127ebe2182c66/tensorize.ipynb b/docs/_downloads/3b5e41b16a898b72d18127ebe2182c66/tensorize.ipynb
index 3c8efe013f..f39dcb5b00 100644
--- a/docs/_downloads/3b5e41b16a898b72d18127ebe2182c66/tensorize.ipynb
+++ b/docs/_downloads/3b5e41b16a898b72d18127ebe2182c66/tensorize.ipynb
@@ -233,7 +233,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/3dd2108354ac3028c96bcd6a0c7899dd/relay_quick_start.ipynb b/docs/_downloads/3dd2108354ac3028c96bcd6a0c7899dd/relay_quick_start.ipynb
index 2c33bf9861..cc4c9e8f52 100644
--- a/docs/_downloads/3dd2108354ac3028c96bcd6a0c7899dd/relay_quick_start.ipynb
+++ b/docs/_downloads/3dd2108354ac3028c96bcd6a0c7899dd/relay_quick_start.ipynb
@@ -136,7 +136,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/910e6ecee4ecac8d8ca0baeb6d00689d/tune_relay_x86.ipynb b/docs/_downloads/419f05bdb6adf8724873deb8a8f2f8a5/tune_relay_x86.zip
similarity index 51%
copy from docs/_downloads/910e6ecee4ecac8d8ca0baeb6d00689d/tune_relay_x86.ipynb
copy to docs/_downloads/419f05bdb6adf8724873deb8a8f2f8a5/tune_relay_x86.zip
index 491377fdd6..fd5d586a92 100644
Binary files a/docs/_downloads/910e6ecee4ecac8d8ca0baeb6d00689d/tune_relay_x86.ipynb and b/docs/_downloads/419f05bdb6adf8724873deb8a8f2f8a5/tune_relay_x86.zip differ
diff --git a/docs/_downloads/4459ebf5b03d332f7f380abdaef81c05/tensor_expr_get_started.ipynb b/docs/_downloads/4459ebf5b03d332f7f380abdaef81c05/tensor_expr_get_started.ipynb
index a99a0e388c..9260e6d9bb 100644
--- a/docs/_downloads/4459ebf5b03d332f7f380abdaef81c05/tensor_expr_get_started.ipynb
+++ b/docs/_downloads/4459ebf5b03d332f7f380abdaef81c05/tensor_expr_get_started.ipynb
@@ -602,7 +602,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/315fcda965a8d605f81705edf19ea2c6/relax_creation.ipynb b/docs/_downloads/4753776bbe68e7c9ee4d19117973fc8b/relax_creation.zip
similarity index 53%
copy from docs/_downloads/315fcda965a8d605f81705edf19ea2c6/relax_creation.ipynb
copy to docs/_downloads/4753776bbe68e7c9ee4d19117973fc8b/relax_creation.zip
index 97cc45de20..0a2a91839e 100644
Binary files a/docs/_downloads/315fcda965a8d605f81705edf19ea2c6/relax_creation.ipynb and b/docs/_downloads/4753776bbe68e7c9ee4d19117973fc8b/relax_creation.zip differ
diff --git a/docs/_downloads/5b279d8a8718816263fa65b0eef1a5c0/micro_tflite.ipynb b/docs/_downloads/48cb80ba3a59e23b5640e8d281cacc60/micro_tflite.zip
similarity index 57%
copy from docs/_downloads/5b279d8a8718816263fa65b0eef1a5c0/micro_tflite.ipynb
copy to docs/_downloads/48cb80ba3a59e23b5640e8d281cacc60/micro_tflite.zip
index 60f0ef24c1..9856536fc2 100644
Binary files a/docs/_downloads/5b279d8a8718816263fa65b0eef1a5c0/micro_tflite.ipynb and b/docs/_downloads/48cb80ba3a59e23b5640e8d281cacc60/micro_tflite.zip differ
diff --git a/docs/_downloads/d1434e80dd27eef6b1c9cbaa13f1197b/tune_relay_cuda.ipynb b/docs/_downloads/4afebc9d7acf576dfc9694b0070f3c48/tune_relay_cuda.zip
similarity index 51%
copy from docs/_downloads/d1434e80dd27eef6b1c9cbaa13f1197b/tune_relay_cuda.ipynb
copy to docs/_downloads/4afebc9d7acf576dfc9694b0070f3c48/tune_relay_cuda.zip
index d5714a69a5..911891a080 100644
Binary files a/docs/_downloads/d1434e80dd27eef6b1c9cbaa13f1197b/tune_relay_cuda.ipynb and b/docs/_downloads/4afebc9d7acf576dfc9694b0070f3c48/tune_relay_cuda.zip differ
diff --git a/docs/_downloads/2f91b1346a0ba21b800081aa15fdaac2/autotvm_relay_x86.ipynb b/docs/_downloads/4c8da62af6699a2890a85f82fa99103f/autotvm_relay_x86.zip
similarity index 52%
copy from docs/_downloads/2f91b1346a0ba21b800081aa15fdaac2/autotvm_relay_x86.ipynb
copy to docs/_downloads/4c8da62af6699a2890a85f82fa99103f/autotvm_relay_x86.zip
index f56791550e..f5533c8e16 100644
Binary files a/docs/_downloads/2f91b1346a0ba21b800081aa15fdaac2/autotvm_relay_x86.ipynb and b/docs/_downloads/4c8da62af6699a2890a85f82fa99103f/autotvm_relay_x86.zip differ
diff --git a/docs/_downloads/4dc30a43f3a6aa3ed4bc3077ad35ff70/tune_network_arm.ipynb b/docs/_downloads/4dc30a43f3a6aa3ed4bc3077ad35ff70/tune_network_arm.ipynb
index 2e7285cad6..f153001931 100644
--- a/docs/_downloads/4dc30a43f3a6aa3ed4bc3077ad35ff70/tune_network_arm.ipynb
+++ b/docs/_downloads/4dc30a43f3a6aa3ed4bc3077ad35ff70/tune_network_arm.ipynb
@@ -153,7 +153,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/8472bea81cf679760d7e4e77e895726f/extern_op.ipynb b/docs/_downloads/52ca06b1492c016b5606858aa343fa41/extern_op.zip
similarity index 53%
copy from docs/_downloads/8472bea81cf679760d7e4e77e895726f/extern_op.ipynb
copy to docs/_downloads/52ca06b1492c016b5606858aa343fa41/extern_op.zip
index 9d88b3d3bd..2cf641b140 100644
Binary files a/docs/_downloads/8472bea81cf679760d7e4e77e895726f/extern_op.ipynb and b/docs/_downloads/52ca06b1492c016b5606858aa343fa41/extern_op.zip differ
diff --git a/docs/_downloads/55a9eff88b1303e525d53269eeb16897/micro_ethosu.ipynb b/docs/_downloads/55a9eff88b1303e525d53269eeb16897/micro_ethosu.ipynb
index 510c14729d..5681d23e88 100644
--- a/docs/_downloads/55a9eff88b1303e525d53269eeb16897/micro_ethosu.ipynb
+++ b/docs/_downloads/55a9eff88b1303e525d53269eeb16897/micro_ethosu.ipynb
@@ -168,7 +168,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/5b279d8a8718816263fa65b0eef1a5c0/micro_tflite.ipynb b/docs/_downloads/5b279d8a8718816263fa65b0eef1a5c0/micro_tflite.ipynb
index 60f0ef24c1..2a88f4114a 100644
--- a/docs/_downloads/5b279d8a8718816263fa65b0eef1a5c0/micro_tflite.ipynb
+++ b/docs/_downloads/5b279d8a8718816263fa65b0eef1a5c0/micro_tflite.ipynb
@@ -244,7 +244,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/5e4e499c097b16a90c517e630502253a/tune_network_mali.ipynb b/docs/_downloads/5e4e499c097b16a90c517e630502253a/tune_network_mali.ipynb
index f4e1d9370c..b55fccc106 100644
--- a/docs/_downloads/5e4e499c097b16a90c517e630502253a/tune_network_mali.ipynb
+++ b/docs/_downloads/5e4e499c097b16a90c517e630502253a/tune_network_mali.ipynb
@@ -146,7 +146,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/5f1f7bd7d90710fd404f7bcdc4965622/tune_conv2d_layer_cuda.ipynb b/docs/_downloads/5f1f7bd7d90710fd404f7bcdc4965622/tune_conv2d_layer_cuda.ipynb
index 67b87b995d..46aef0a501 100644
--- a/docs/_downloads/5f1f7bd7d90710fd404f7bcdc4965622/tune_conv2d_layer_cuda.ipynb
+++ b/docs/_downloads/5f1f7bd7d90710fd404f7bcdc4965622/tune_conv2d_layer_cuda.ipynb
@@ -197,7 +197,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/c82f632d47458e76d2af9821b6778e36/from_keras.ipynb b/docs/_downloads/60c003732970850b5b90b5d2255508ae/from_keras.zip
similarity index 56%
copy from docs/_downloads/c82f632d47458e76d2af9821b6778e36/from_keras.ipynb
copy to docs/_downloads/60c003732970850b5b90b5d2255508ae/from_keras.zip
index bc83dbd7ba..79cebf2011 100644
Binary files a/docs/_downloads/c82f632d47458e76d2af9821b6778e36/from_keras.ipynb and b/docs/_downloads/60c003732970850b5b90b5d2255508ae/from_keras.zip differ
diff --git a/docs/_downloads/613e0775d8981e544e6ca9602a975916/deploy_model_on_adreno_tvmc.ipynb b/docs/_downloads/613e0775d8981e544e6ca9602a975916/deploy_model_on_adreno_tvmc.ipynb
index 4fd855d96b..bed0b94676 100644
--- a/docs/_downloads/613e0775d8981e544e6ca9602a975916/deploy_model_on_adreno_tvmc.ipynb
+++ b/docs/_downloads/613e0775d8981e544e6ca9602a975916/deploy_model_on_adreno_tvmc.ipynb
@@ -154,7 +154,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/63f9e50204143ea3c2d3593c72439b3d/intro_topi.ipynb b/docs/_downloads/63f9e50204143ea3c2d3593c72439b3d/intro_topi.ipynb
index 8d7ad6ea97..f3fcff68e9 100644
--- a/docs/_downloads/63f9e50204143ea3c2d3593c72439b3d/intro_topi.ipynb
+++ b/docs/_downloads/63f9e50204143ea3c2d3593c72439b3d/intro_topi.ipynb
@@ -222,7 +222,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/65a5cab4fc8bb5ac91b3609492cff0eb/tvmc_command_line_driver.zip b/docs/_downloads/65a5cab4fc8bb5ac91b3609492cff0eb/tvmc_command_line_driver.zip
new file mode 100644
index 0000000000..964abc35b9
Binary files /dev/null and b/docs/_downloads/65a5cab4fc8bb5ac91b3609492cff0eb/tvmc_command_line_driver.zip differ
diff --git a/docs/_downloads/5f1f7bd7d90710fd404f7bcdc4965622/tune_conv2d_layer_cuda.ipynb b/docs/_downloads/69ae81a21ca36503433823aaadf1f72b/tune_conv2d_layer_cuda.zip
similarity index 54%
copy from docs/_downloads/5f1f7bd7d90710fd404f7bcdc4965622/tune_conv2d_layer_cuda.ipynb
copy to docs/_downloads/69ae81a21ca36503433823aaadf1f72b/tune_conv2d_layer_cuda.zip
index 67b87b995d..6d886e0c43 100644
Binary files a/docs/_downloads/5f1f7bd7d90710fd404f7bcdc4965622/tune_conv2d_layer_cuda.ipynb and b/docs/_downloads/69ae81a21ca36503433823aaadf1f72b/tune_conv2d_layer_cuda.zip differ
diff --git a/docs/_downloads/6b0f549107f73f2e48c894372be08bcb/tune_relay_mobile_gpu.ipynb b/docs/_downloads/6b0f549107f73f2e48c894372be08bcb/tune_relay_mobile_gpu.ipynb
index ef9344858d..9dbb65bc72 100644
--- a/docs/_downloads/6b0f549107f73f2e48c894372be08bcb/tune_relay_mobile_gpu.ipynb
+++ b/docs/_downloads/6b0f549107f73f2e48c894372be08bcb/tune_relay_mobile_gpu.ipynb
@@ -160,7 +160,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/6e0673ce1f08636c34d0b9a73ea114f7/uma.ipynb b/docs/_downloads/6e0673ce1f08636c34d0b9a73ea114f7/uma.ipynb
index 36eff98623..d77e38e374 100644
--- a/docs/_downloads/6e0673ce1f08636c34d0b9a73ea114f7/uma.ipynb
+++ b/docs/_downloads/6e0673ce1f08636c34d0b9a73ea114f7/uma.ipynb
@@ -203,7 +203,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/6e511f5a8ddbf12f2fca2dfadc0cc4a9/micro_tvmc.ipynb b/docs/_downloads/6e511f5a8ddbf12f2fca2dfadc0cc4a9/micro_tvmc.ipynb
index a5a1094259..10f3f77fc8 100644
--- a/docs/_downloads/6e511f5a8ddbf12f2fca2dfadc0cc4a9/micro_tvmc.ipynb
+++ b/docs/_downloads/6e511f5a8ddbf12f2fca2dfadc0cc4a9/micro_tvmc.ipynb
@@ -120,7 +120,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/729378592a96230b4f7be71b44da43a4/scan.ipynb b/docs/_downloads/729378592a96230b4f7be71b44da43a4/scan.ipynb
index 2ce749227a..ab86e3204d 100644
--- a/docs/_downloads/729378592a96230b4f7be71b44da43a4/scan.ipynb
+++ b/docs/_downloads/729378592a96230b4f7be71b44da43a4/scan.ipynb
@@ -161,7 +161,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/732ed130cbc15432e737da8cc47e1734/tune_conv2d_cuda.ipynb b/docs/_downloads/732ed130cbc15432e737da8cc47e1734/tune_conv2d_cuda.ipynb
index 7ce0fa1c09..6b6111309a 100644
--- a/docs/_downloads/732ed130cbc15432e737da8cc47e1734/tune_conv2d_cuda.ipynb
+++ b/docs/_downloads/732ed130cbc15432e737da8cc47e1734/tune_conv2d_cuda.ipynb
@@ -107,7 +107,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/7455981870c23c8c76482dedf33d8a42/opt_conv_tensorcore.ipynb b/docs/_downloads/7455981870c23c8c76482dedf33d8a42/opt_conv_tensorcore.ipynb
index 80792f0065..857327ad3c 100644
--- a/docs/_downloads/7455981870c23c8c76482dedf33d8a42/opt_conv_tensorcore.ipynb
+++ b/docs/_downloads/7455981870c23c8c76482dedf33d8a42/opt_conv_tensorcore.ipynb
@@ -157,7 +157,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/f407f66fb8174d0d4ec37407af1128d6/using_pipeline_executor.ipynb b/docs/_downloads/74f5b0f70f490cee142574ae66ccf1a3/using_pipeline_executor.zip
similarity index 58%
copy from docs/_downloads/f407f66fb8174d0d4ec37407af1128d6/using_pipeline_executor.ipynb
copy to docs/_downloads/74f5b0f70f490cee142574ae66ccf1a3/using_pipeline_executor.zip
index 8aa3c03ffd..53c816b1de 100644
Binary files a/docs/_downloads/f407f66fb8174d0d4ec37407af1128d6/using_pipeline_executor.ipynb and b/docs/_downloads/74f5b0f70f490cee142574ae66ccf1a3/using_pipeline_executor.zip differ
diff --git a/docs/_downloads/779f52a44f2b8ab22dc21eee0c27fd4d/from_onnx.ipynb b/docs/_downloads/779f52a44f2b8ab22dc21eee0c27fd4d/from_onnx.ipynb
index 0a39119745..7924f26d7f 100644
--- a/docs/_downloads/779f52a44f2b8ab22dc21eee0c27fd4d/from_onnx.ipynb
+++ b/docs/_downloads/779f52a44f2b8ab22dc21eee0c27fd4d/from_onnx.ipynb
@@ -161,7 +161,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/c00933f3fbcf90c4f584d54607b33805/micro_aot.ipynb b/docs/_downloads/7a0a8facfeab14d7bf3a753393370a6d/micro_aot.zip
similarity index 57%
copy from docs/_downloads/c00933f3fbcf90c4f584d54607b33805/micro_aot.ipynb
copy to docs/_downloads/7a0a8facfeab14d7bf3a753393370a6d/micro_aot.zip
index 91f89b299a..d2eea06ac5 100644
Binary files a/docs/_downloads/c00933f3fbcf90c4f584d54607b33805/micro_aot.ipynb and b/docs/_downloads/7a0a8facfeab14d7bf3a753393370a6d/micro_aot.zip differ
diff --git a/docs/_downloads/7c392f39b90d93406ef30c6185c5686c/deploy_model_on_rasp.ipynb b/docs/_downloads/7c392f39b90d93406ef30c6185c5686c/deploy_model_on_rasp.ipynb
index dc05dcbdb7..f1f7512405 100644
--- a/docs/_downloads/7c392f39b90d93406ef30c6185c5686c/deploy_model_on_rasp.ipynb
+++ b/docs/_downloads/7c392f39b90d93406ef30c6185c5686c/deploy_model_on_rasp.ipynb
@@ -193,7 +193,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/31d077cfa7c55c0edcd16ad5d4faf483/relax_transformation.ipynb b/docs/_downloads/7d201684dfa095a5ea48d98e9a2ef7ad/relax_transformation.zip
similarity index 54%
copy from docs/_downloads/31d077cfa7c55c0edcd16ad5d4faf483/relax_transformation.ipynb
copy to docs/_downloads/7d201684dfa095a5ea48d98e9a2ef7ad/relax_transformation.zip
index 8db3cb959f..c6629429d9 100644
Binary files a/docs/_downloads/31d077cfa7c55c0edcd16ad5d4faf483/relax_transformation.ipynb and b/docs/_downloads/7d201684dfa095a5ea48d98e9a2ef7ad/relax_transformation.zip differ
diff --git a/docs/_downloads/7ef14586a3b62fe120d97d5fedf72879/use_pass_infra.ipynb b/docs/_downloads/7ef14586a3b62fe120d97d5fedf72879/use_pass_infra.ipynb
index 924b08a978..63a7967a36 100644
--- a/docs/_downloads/7ef14586a3b62fe120d97d5fedf72879/use_pass_infra.ipynb
+++ b/docs/_downloads/7ef14586a3b62fe120d97d5fedf72879/use_pass_infra.ipynb
@@ -233,7 +233,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/0b60295044fd20226a0d5adc52b50b2f/deploy_sparse.ipynb b/docs/_downloads/80dec3524baf58f5f9ed8fa6b8612a48/deploy_sparse.zip
similarity index 51%
copy from docs/_downloads/0b60295044fd20226a0d5adc52b50b2f/deploy_sparse.ipynb
copy to docs/_downloads/80dec3524baf58f5f9ed8fa6b8612a48/deploy_sparse.zip
index 00a2855683..1fb4bd3618 100644
Binary files a/docs/_downloads/0b60295044fd20226a0d5adc52b50b2f/deploy_sparse.ipynb and b/docs/_downloads/80dec3524baf58f5f9ed8fa6b8612a48/deploy_sparse.zip differ
diff --git a/docs/_downloads/825671e45a9bdc4733400384984cd9dd/build_gcn.ipynb b/docs/_downloads/825671e45a9bdc4733400384984cd9dd/build_gcn.ipynb
index 940fa772e9..1a618ecfdd 100644
--- a/docs/_downloads/825671e45a9bdc4733400384984cd9dd/build_gcn.ipynb
+++ b/docs/_downloads/825671e45a9bdc4733400384984cd9dd/build_gcn.ipynb
@@ -233,7 +233,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/a608d8b69371e9bc149dd89f6db2c38e/from_paddle.ipynb b/docs/_downloads/8273019539cb2cc267aa9c5f0439b3d4/from_paddle.zip
similarity index 56%
copy from docs/_downloads/a608d8b69371e9bc149dd89f6db2c38e/from_paddle.ipynb
copy to docs/_downloads/8273019539cb2cc267aa9c5f0439b3d4/from_paddle.zip
index b58c2ddad3..15d4b1dd55 100644
Binary files a/docs/_downloads/a608d8b69371e9bc149dd89f6db2c38e/from_paddle.ipynb and b/docs/_downloads/8273019539cb2cc267aa9c5f0439b3d4/from_paddle.zip differ
diff --git a/docs/_downloads/0f8d36b3ffd04a5a08089dc671eb788e/opt_gemm.ipynb b/docs/_downloads/829154f7eb05db31b895205b5d7e2f99/opt_gemm.zip
similarity index 53%
copy from docs/_downloads/0f8d36b3ffd04a5a08089dc671eb788e/opt_gemm.ipynb
copy to docs/_downloads/829154f7eb05db31b895205b5d7e2f99/opt_gemm.zip
index a9e057f08d..834fb4c200 100644
Binary files a/docs/_downloads/0f8d36b3ffd04a5a08089dc671eb788e/opt_gemm.ipynb and b/docs/_downloads/829154f7eb05db31b895205b5d7e2f99/opt_gemm.zip differ
diff --git a/docs/_downloads/a883b8474634054b6a79c17a288aa8ed/from_coreml.ipynb b/docs/_downloads/830507434e967d7cc5bc83181689c468/from_coreml.zip
similarity index 56%
copy from docs/_downloads/a883b8474634054b6a79c17a288aa8ed/from_coreml.ipynb
copy to docs/_downloads/830507434e967d7cc5bc83181689c468/from_coreml.zip
index 54e6ecb972..552fec7c80 100644
Binary files a/docs/_downloads/a883b8474634054b6a79c17a288aa8ed/from_coreml.ipynb and b/docs/_downloads/830507434e967d7cc5bc83181689c468/from_coreml.zip differ
diff --git a/docs/_downloads/4459ebf5b03d332f7f380abdaef81c05/tensor_expr_get_started.ipynb b/docs/_downloads/830f5c13ef1fc3d702a3382a73906bd4/tensor_expr_get_started.zip
similarity index 53%
copy from docs/_downloads/4459ebf5b03d332f7f380abdaef81c05/tensor_expr_get_started.ipynb
copy to docs/_downloads/830f5c13ef1fc3d702a3382a73906bd4/tensor_expr_get_started.zip
index a99a0e388c..9573c3f1fb 100644
Binary files a/docs/_downloads/4459ebf5b03d332f7f380abdaef81c05/tensor_expr_get_started.ipynb and b/docs/_downloads/830f5c13ef1fc3d702a3382a73906bd4/tensor_expr_get_started.zip differ
diff --git a/docs/_downloads/83e3b018e8bac8d31bb331d200a33a04/from_tensorflow.ipynb b/docs/_downloads/83e3b018e8bac8d31bb331d200a33a04/from_tensorflow.ipynb
index e0cb4c0c89..1860b87423 100644
--- a/docs/_downloads/83e3b018e8bac8d31bb331d200a33a04/from_tensorflow.ipynb
+++ b/docs/_downloads/83e3b018e8bac8d31bb331d200a33a04/from_tensorflow.ipynb
@@ -226,7 +226,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/ab03cb35cd7f92b5425a8974fcab921a/optimize_llm.ipynb b/docs/_downloads/83e85f38cf16f1d926d06615fd54095c/optimize_llm.zip
similarity index 53%
copy from docs/_downloads/ab03cb35cd7f92b5425a8974fcab921a/optimize_llm.ipynb
copy to docs/_downloads/83e85f38cf16f1d926d06615fd54095c/optimize_llm.zip
index fbdc52530d..42e7105c1a 100644
Binary files a/docs/_downloads/ab03cb35cd7f92b5425a8974fcab921a/optimize_llm.ipynb and b/docs/_downloads/83e85f38cf16f1d926d06615fd54095c/optimize_llm.zip differ
diff --git a/docs/_downloads/8472bea81cf679760d7e4e77e895726f/extern_op.ipynb b/docs/_downloads/8472bea81cf679760d7e4e77e895726f/extern_op.ipynb
index 9d88b3d3bd..3d1f1f8ed4 100644
--- a/docs/_downloads/8472bea81cf679760d7e4e77e895726f/extern_op.ipynb
+++ b/docs/_downloads/8472bea81cf679760d7e4e77e895726f/extern_op.ipynb
@@ -125,7 +125,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/854257a66df713b1f3f82eb3577f95e3/opt_conv_cuda.ipynb b/docs/_downloads/854257a66df713b1f3f82eb3577f95e3/opt_conv_cuda.ipynb
index 5d0816d5b9..a4bd04a790 100644
--- a/docs/_downloads/854257a66df713b1f3f82eb3577f95e3/opt_conv_cuda.ipynb
+++ b/docs/_downloads/854257a66df713b1f3f82eb3577f95e3/opt_conv_cuda.ipynb
@@ -143,7 +143,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/729378592a96230b4f7be71b44da43a4/scan.ipynb b/docs/_downloads/8712a7f81c72da24e0d2118cd5d66549/scan.zip
similarity index 54%
copy from docs/_downloads/729378592a96230b4f7be71b44da43a4/scan.ipynb
copy to docs/_downloads/8712a7f81c72da24e0d2118cd5d66549/scan.zip
index 2ce749227a..52afcb18e9 100644
Binary files a/docs/_downloads/729378592a96230b4f7be71b44da43a4/scan.ipynb and b/docs/_downloads/8712a7f81c72da24e0d2118cd5d66549/scan.zip differ
diff --git a/docs/_downloads/6b0f549107f73f2e48c894372be08bcb/tune_relay_mobile_gpu.ipynb b/docs/_downloads/886edbd1fd6bcf1d48cd5babf22143a4/tune_relay_mobile_gpu.zip
similarity index 51%
copy from docs/_downloads/6b0f549107f73f2e48c894372be08bcb/tune_relay_mobile_gpu.ipynb
copy to docs/_downloads/886edbd1fd6bcf1d48cd5babf22143a4/tune_relay_mobile_gpu.zip
index ef9344858d..0321fcc958 100644
Binary files a/docs/_downloads/6b0f549107f73f2e48c894372be08bcb/tune_relay_mobile_gpu.ipynb and b/docs/_downloads/886edbd1fd6bcf1d48cd5babf22143a4/tune_relay_mobile_gpu.zip differ
diff --git a/docs/_downloads/c9bb7875c6ca5b2da162e177d3c9aac0/tensor_ir_blitz_course.ipynb b/docs/_downloads/8babc70257fafd593cd8111bdb5a8932/tensor_ir_blitz_course.zip
similarity index 55%
copy from docs/_downloads/c9bb7875c6ca5b2da162e177d3c9aac0/tensor_ir_blitz_course.ipynb
copy to docs/_downloads/8babc70257fafd593cd8111bdb5a8932/tensor_ir_blitz_course.zip
index e67ef993ce..4a186c79c9 100644
Binary files a/docs/_downloads/c9bb7875c6ca5b2da162e177d3c9aac0/tensor_ir_blitz_course.ipynb and b/docs/_downloads/8babc70257fafd593cd8111bdb5a8932/tensor_ir_blitz_course.zip differ
diff --git a/docs/_downloads/8d55b8f991fb704002f768367ce2d1a2/tvmc_python.ipynb b/docs/_downloads/8d55b8f991fb704002f768367ce2d1a2/tvmc_python.ipynb
index ac0720088d..d9e9538181 100644
--- a/docs/_downloads/8d55b8f991fb704002f768367ce2d1a2/tvmc_python.ipynb
+++ b/docs/_downloads/8d55b8f991fb704002f768367ce2d1a2/tvmc_python.ipynb
@@ -133,7 +133,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/910e6ecee4ecac8d8ca0baeb6d00689d/tune_relay_x86.ipynb b/docs/_downloads/910e6ecee4ecac8d8ca0baeb6d00689d/tune_relay_x86.ipynb
index 491377fdd6..d6fb692567 100644
--- a/docs/_downloads/910e6ecee4ecac8d8ca0baeb6d00689d/tune_relay_x86.ipynb
+++ b/docs/_downloads/910e6ecee4ecac8d8ca0baeb6d00689d/tune_relay_x86.ipynb
@@ -107,7 +107,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/960e4823b2dcc53ce075442f0f8937e0/tvmc_python.zip b/docs/_downloads/960e4823b2dcc53ce075442f0f8937e0/tvmc_python.zip
new file mode 100644
index 0000000000..5361748e31
Binary files /dev/null and b/docs/_downloads/960e4823b2dcc53ce075442f0f8937e0/tvmc_python.zip differ
diff --git a/docs/_downloads/1a26d790f7b98309d730181290dae3ee/deploy_prequantized_tflite.ipynb b/docs/_downloads/9e8fe1c07958b4a4db552609967c6406/deploy_prequantized_tflite.zip
similarity index 55%
copy from docs/_downloads/1a26d790f7b98309d730181290dae3ee/deploy_prequantized_tflite.ipynb
copy to docs/_downloads/9e8fe1c07958b4a4db552609967c6406/deploy_prequantized_tflite.zip
index 3048824261..b4a9c675b3 100644
Binary files a/docs/_downloads/1a26d790f7b98309d730181290dae3ee/deploy_prequantized_tflite.ipynb and b/docs/_downloads/9e8fe1c07958b4a4db552609967c6406/deploy_prequantized_tflite.zip differ
diff --git a/docs/_downloads/9f81bc348ac4107d0670f512b8943a99/introduction.ipynb b/docs/_downloads/9f81bc348ac4107d0670f512b8943a99/introduction.ipynb
index 59186d00f7..4b582098ae 100644
--- a/docs/_downloads/9f81bc348ac4107d0670f512b8943a99/introduction.ipynb
+++ b/docs/_downloads/9f81bc348ac4107d0670f512b8943a99/introduction.ipynb
@@ -42,7 +42,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/a1417396e306d987107a7a39376ec261/tuple_inputs.ipynb b/docs/_downloads/a1417396e306d987107a7a39376ec261/tuple_inputs.ipynb
index 56da92191b..1edb1633f3 100644
--- a/docs/_downloads/a1417396e306d987107a7a39376ec261/tuple_inputs.ipynb
+++ b/docs/_downloads/a1417396e306d987107a7a39376ec261/tuple_inputs.ipynb
@@ -114,7 +114,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/a39244521ae4623689b29558153f82b4/micro_ethosu.zip b/docs/_downloads/a39244521ae4623689b29558153f82b4/micro_ethosu.zip
new file mode 100644
index 0000000000..4f1514f6a1
Binary files /dev/null and b/docs/_downloads/a39244521ae4623689b29558153f82b4/micro_ethosu.zip differ
diff --git a/docs/_downloads/a608d8b69371e9bc149dd89f6db2c38e/from_paddle.ipynb b/docs/_downloads/a608d8b69371e9bc149dd89f6db2c38e/from_paddle.ipynb
index b58c2ddad3..be0fcb04fc 100644
--- a/docs/_downloads/a608d8b69371e9bc149dd89f6db2c38e/from_paddle.ipynb
+++ b/docs/_downloads/a608d8b69371e9bc149dd89f6db2c38e/from_paddle.ipynb
@@ -154,7 +154,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/a6d7947451d373bc811080cffa18dc7c/ir_module.ipynb b/docs/_downloads/a6d7947451d373bc811080cffa18dc7c/ir_module.ipynb
index 13d8ba92d3..e78eb9d138 100644
--- a/docs/_downloads/a6d7947451d373bc811080cffa18dc7c/ir_module.ipynb
+++ b/docs/_downloads/a6d7947451d373bc811080cffa18dc7c/ir_module.ipynb
@@ -276,7 +276,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/a74627f44186b95116fe0ed6f77e3b99/micro_custom_ide.ipynb b/docs/_downloads/a74627f44186b95116fe0ed6f77e3b99/micro_custom_ide.ipynb
index a3cd654a15..dcafaf2a58 100644
--- a/docs/_downloads/a74627f44186b95116fe0ed6f77e3b99/micro_custom_ide.ipynb
+++ b/docs/_downloads/a74627f44186b95116fe0ed6f77e3b99/micro_custom_ide.ipynb
@@ -153,7 +153,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/a7aff5918e1b86809a5bd1da8bef7229/tedd.ipynb b/docs/_downloads/a7aff5918e1b86809a5bd1da8bef7229/tedd.ipynb
index 82f58c6287..4bf8143e75 100644
--- a/docs/_downloads/a7aff5918e1b86809a5bd1da8bef7229/tedd.ipynb
+++ b/docs/_downloads/a7aff5918e1b86809a5bd1da8bef7229/tedd.ipynb
@@ -157,7 +157,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/a7c7ea4b5017ae70db1f51dd8e6dcd82/micro_train.ipynb b/docs/_downloads/a7c7ea4b5017ae70db1f51dd8e6dcd82/micro_train.ipynb
index 90898b0d05..19a9e15611 100644
--- a/docs/_downloads/a7c7ea4b5017ae70db1f51dd8e6dcd82/micro_train.ipynb
+++ b/docs/_downloads/a7c7ea4b5017ae70db1f51dd8e6dcd82/micro_train.ipynb
@@ -348,7 +348,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/317a8cc53139718b9a36a16ba052e44b/e2e_opt_model.ipynb b/docs/_downloads/a7dd7652b2ad50f82d7b739ce3645799/e2e_opt_model.zip
similarity index 52%
copy from docs/_downloads/317a8cc53139718b9a36a16ba052e44b/e2e_opt_model.ipynb
copy to docs/_downloads/a7dd7652b2ad50f82d7b739ce3645799/e2e_opt_model.zip
index fbc90579ae..47f6b5b7ca 100644
Binary files a/docs/_downloads/317a8cc53139718b9a36a16ba052e44b/e2e_opt_model.ipynb and b/docs/_downloads/a7dd7652b2ad50f82d7b739ce3645799/e2e_opt_model.zip differ
diff --git a/docs/_downloads/a883b8474634054b6a79c17a288aa8ed/from_coreml.ipynb b/docs/_downloads/a883b8474634054b6a79c17a288aa8ed/from_coreml.ipynb
index 54e6ecb972..1086818270 100644
--- a/docs/_downloads/a883b8474634054b6a79c17a288aa8ed/from_coreml.ipynb
+++ b/docs/_downloads/a883b8474634054b6a79c17a288aa8ed/from_coreml.ipynb
@@ -154,7 +154,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/ab03cb35cd7f92b5425a8974fcab921a/optimize_llm.ipynb b/docs/_downloads/ab03cb35cd7f92b5425a8974fcab921a/optimize_llm.ipynb
index fbdc52530d..67394a50de 100644
--- a/docs/_downloads/ab03cb35cd7f92b5425a8974fcab921a/optimize_llm.ipynb
+++ b/docs/_downloads/ab03cb35cd7f92b5425a8974fcab921a/optimize_llm.ipynb
@@ -337,7 +337,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/ad2a7f55d615d188ad664d56696815a6/tune_network_x86.ipynb b/docs/_downloads/ad2a7f55d615d188ad664d56696815a6/tune_network_x86.ipynb
index 13de697244..f292598b09 100644
--- a/docs/_downloads/ad2a7f55d615d188ad664d56696815a6/tune_network_x86.ipynb
+++ b/docs/_downloads/ad2a7f55d615d188ad664d56696815a6/tune_network_x86.ipynb
@@ -139,7 +139,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/af264436d049e3cd84803b67b6620b63/tune_network_cuda.ipynb b/docs/_downloads/af264436d049e3cd84803b67b6620b63/tune_network_cuda.ipynb
index 4acb5f5918..c4dc4a14fa 100644
--- a/docs/_downloads/af264436d049e3cd84803b67b6620b63/tune_network_cuda.ipynb
+++ b/docs/_downloads/af264436d049e3cd84803b67b6620b63/tune_network_cuda.ipynb
@@ -139,7 +139,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/b78f1a6e1b2c2fb073a791dc258a1d7d/schedule_primitives.ipynb b/docs/_downloads/b0cf994bb1e9b65dbb44b4842da41df2/schedule_primitives.zip
similarity index 57%
copy from docs/_downloads/b78f1a6e1b2c2fb073a791dc258a1d7d/schedule_primitives.ipynb
copy to docs/_downloads/b0cf994bb1e9b65dbb44b4842da41df2/schedule_primitives.zip
index d67a3e5ddb..3167c3d0c0 100644
Binary files a/docs/_downloads/b78f1a6e1b2c2fb073a791dc258a1d7d/schedule_primitives.ipynb and b/docs/_downloads/b0cf994bb1e9b65dbb44b4842da41df2/schedule_primitives.zip differ
diff --git a/docs/_downloads/b78f1a6e1b2c2fb073a791dc258a1d7d/schedule_primitives.ipynb b/docs/_downloads/b78f1a6e1b2c2fb073a791dc258a1d7d/schedule_primitives.ipynb
index d67a3e5ddb..a3bc09ab34 100644
--- a/docs/_downloads/b78f1a6e1b2c2fb073a791dc258a1d7d/schedule_primitives.ipynb
+++ b/docs/_downloads/b78f1a6e1b2c2fb073a791dc258a1d7d/schedule_primitives.ipynb
@@ -276,7 +276,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/b954238c1884e83b45d2ae543d824f03/using_relay_viz.ipynb b/docs/_downloads/b954238c1884e83b45d2ae543d824f03/using_relay_viz.ipynb
index d24e442b67..94d82fce19 100644
--- a/docs/_downloads/b954238c1884e83b45d2ae543d824f03/using_relay_viz.ipynb
+++ b/docs/_downloads/b954238c1884e83b45d2ae543d824f03/using_relay_viz.ipynb
@@ -161,7 +161,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/b9e7311d8c56eb6e6aca08f0be35ff03/deploy_model_on_adreno.ipynb b/docs/_downloads/b9e7311d8c56eb6e6aca08f0be35ff03/deploy_model_on_adreno.ipynb
index 6bf3345eec..da9d4110b9 100644
--- a/docs/_downloads/b9e7311d8c56eb6e6aca08f0be35ff03/deploy_model_on_adreno.ipynb
+++ b/docs/_downloads/b9e7311d8c56eb6e6aca08f0be35ff03/deploy_model_on_adreno.ipynb
@@ -283,7 +283,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/eceb05a9badb601d2def02240aa869e9/quick_start.ipynb b/docs/_downloads/bb7db6678496193ed0c55d3b95fa6778/quick_start.zip
similarity index 51%
copy from docs/_downloads/eceb05a9badb601d2def02240aa869e9/quick_start.ipynb
copy to docs/_downloads/bb7db6678496193ed0c55d3b95fa6778/quick_start.zip
index a3d84db0dc..e5311ac61f 100644
Binary files a/docs/_downloads/eceb05a9badb601d2def02240aa869e9/quick_start.ipynb and b/docs/_downloads/bb7db6678496193ed0c55d3b95fa6778/quick_start.zip differ
diff --git a/docs/_downloads/bc33c0d33026b287306b6ead1a50b04a/tune_relay_arm.ipynb b/docs/_downloads/bc33c0d33026b287306b6ead1a50b04a/tune_relay_arm.ipynb
index 2799f2b0d8..dbd9a8c9d0 100644
--- a/docs/_downloads/bc33c0d33026b287306b6ead1a50b04a/tune_relay_arm.ipynb
+++ b/docs/_downloads/bc33c0d33026b287306b6ead1a50b04a/tune_relay_arm.ipynb
@@ -160,7 +160,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/cafefaac0e14b00fd7644da616cab35a/deploy_model_on_nano.ipynb b/docs/_downloads/bdbf278ff39bd5882c5d05f3074253db/deploy_model_on_nano.zip
similarity index 54%
copy from docs/_downloads/cafefaac0e14b00fd7644da616cab35a/deploy_model_on_nano.ipynb
copy to docs/_downloads/bdbf278ff39bd5882c5d05f3074253db/deploy_model_on_nano.zip
index 7d097ec5a3..999697c14f 100644
Binary files a/docs/_downloads/cafefaac0e14b00fd7644da616cab35a/deploy_model_on_nano.ipynb and b/docs/_downloads/bdbf278ff39bd5882c5d05f3074253db/deploy_model_on_nano.zip differ
diff --git a/docs/_downloads/c43b2ae5210f95ce8dae6102e9b060fd/tir_creation.ipynb b/docs/_downloads/be26483bb70b8468499a01c55e8e866c/tir_creation.zip
similarity index 53%
copy from docs/_downloads/c43b2ae5210f95ce8dae6102e9b060fd/tir_creation.ipynb
copy to docs/_downloads/be26483bb70b8468499a01c55e8e866c/tir_creation.zip
index 3d650bad5c..f0c7172f48 100644
Binary files a/docs/_downloads/c43b2ae5210f95ce8dae6102e9b060fd/tir_creation.ipynb and b/docs/_downloads/be26483bb70b8468499a01c55e8e866c/tir_creation.zip differ
diff --git a/docs/_downloads/7ef14586a3b62fe120d97d5fedf72879/use_pass_infra.ipynb b/docs/_downloads/beb31788aa4a3926ec559bc163739705/use_pass_infra.zip
similarity index 53%
copy from docs/_downloads/7ef14586a3b62fe120d97d5fedf72879/use_pass_infra.ipynb
copy to docs/_downloads/beb31788aa4a3926ec559bc163739705/use_pass_infra.zip
index 924b08a978..b81452213a 100644
Binary files a/docs/_downloads/7ef14586a3b62fe120d97d5fedf72879/use_pass_infra.ipynb and b/docs/_downloads/beb31788aa4a3926ec559bc163739705/use_pass_infra.zip differ
diff --git a/docs/_downloads/c00933f3fbcf90c4f584d54607b33805/micro_aot.ipynb b/docs/_downloads/c00933f3fbcf90c4f584d54607b33805/micro_aot.ipynb
index 91f89b299a..876379f037 100644
--- a/docs/_downloads/c00933f3fbcf90c4f584d54607b33805/micro_aot.ipynb
+++ b/docs/_downloads/c00933f3fbcf90c4f584d54607b33805/micro_aot.ipynb
@@ -190,7 +190,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/4dc30a43f3a6aa3ed4bc3077ad35ff70/tune_network_arm.ipynb b/docs/_downloads/c129e5825c4b9f69e01bbea5051a324e/tune_network_arm.zip
similarity index 51%
copy from docs/_downloads/4dc30a43f3a6aa3ed4bc3077ad35ff70/tune_network_arm.ipynb
copy to docs/_downloads/c129e5825c4b9f69e01bbea5051a324e/tune_network_arm.zip
index 2e7285cad6..6a7273ee3c 100644
Binary files a/docs/_downloads/4dc30a43f3a6aa3ed4bc3077ad35ff70/tune_network_arm.ipynb and b/docs/_downloads/c129e5825c4b9f69e01bbea5051a324e/tune_network_arm.zip differ
diff --git a/docs/_downloads/c20f81a94729f461f33b52cc110fd9d6/deploy_prequantized.ipynb b/docs/_downloads/c20f81a94729f461f33b52cc110fd9d6/deploy_prequantized.ipynb
index 52bbfb52cd..48673163e7 100644
--- a/docs/_downloads/c20f81a94729f461f33b52cc110fd9d6/deploy_prequantized.ipynb
+++ b/docs/_downloads/c20f81a94729f461f33b52cc110fd9d6/deploy_prequantized.ipynb
@@ -279,7 +279,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/c43b2ae5210f95ce8dae6102e9b060fd/tir_creation.ipynb b/docs/_downloads/c43b2ae5210f95ce8dae6102e9b060fd/tir_creation.ipynb
index 3d650bad5c..acdd7f8d8a 100644
--- a/docs/_downloads/c43b2ae5210f95ce8dae6102e9b060fd/tir_creation.ipynb
+++ b/docs/_downloads/c43b2ae5210f95ce8dae6102e9b060fd/tir_creation.ipynb
@@ -215,7 +215,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/83e3b018e8bac8d31bb331d200a33a04/from_tensorflow.ipynb b/docs/_downloads/c6f0509da48f057ebf98d1de3197b2b6/from_tensorflow.zip
similarity index 55%
copy from docs/_downloads/83e3b018e8bac8d31bb331d200a33a04/from_tensorflow.ipynb
copy to docs/_downloads/c6f0509da48f057ebf98d1de3197b2b6/from_tensorflow.zip
index e0cb4c0c89..72674884b6 100644
Binary files a/docs/_downloads/83e3b018e8bac8d31bb331d200a33a04/from_tensorflow.ipynb and b/docs/_downloads/c6f0509da48f057ebf98d1de3197b2b6/from_tensorflow.zip differ
diff --git a/docs/_downloads/c82f632d47458e76d2af9821b6778e36/from_keras.ipynb b/docs/_downloads/c82f632d47458e76d2af9821b6778e36/from_keras.ipynb
index bc83dbd7ba..f3f53aa19c 100644
--- a/docs/_downloads/c82f632d47458e76d2af9821b6778e36/from_keras.ipynb
+++ b/docs/_downloads/c82f632d47458e76d2af9821b6778e36/from_keras.ipynb
@@ -154,7 +154,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/c9bb7875c6ca5b2da162e177d3c9aac0/tensor_ir_blitz_course.ipynb b/docs/_downloads/c9bb7875c6ca5b2da162e177d3c9aac0/tensor_ir_blitz_course.ipynb
index e67ef993ce..6c3802a5a1 100644
--- a/docs/_downloads/c9bb7875c6ca5b2da162e177d3c9aac0/tensor_ir_blitz_course.ipynb
+++ b/docs/_downloads/c9bb7875c6ca5b2da162e177d3c9aac0/tensor_ir_blitz_course.ipynb
@@ -215,7 +215,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/613e0775d8981e544e6ca9602a975916/deploy_model_on_adreno_tvmc.ipynb b/docs/_downloads/ca68d46947b37488e0485162d60ff73d/deploy_model_on_adreno_tvmc.zip
similarity index 53%
copy from docs/_downloads/613e0775d8981e544e6ca9602a975916/deploy_model_on_adreno_tvmc.ipynb
copy to docs/_downloads/ca68d46947b37488e0485162d60ff73d/deploy_model_on_adreno_tvmc.zip
index 4fd855d96b..c431d4d5a0 100644
Binary files a/docs/_downloads/613e0775d8981e544e6ca9602a975916/deploy_model_on_adreno_tvmc.ipynb and b/docs/_downloads/ca68d46947b37488e0485162d60ff73d/deploy_model_on_adreno_tvmc.zip differ
diff --git a/docs/_downloads/cafefaac0e14b00fd7644da616cab35a/deploy_model_on_nano.ipynb b/docs/_downloads/cafefaac0e14b00fd7644da616cab35a/deploy_model_on_nano.ipynb
index 7d097ec5a3..afaf57e401 100644
--- a/docs/_downloads/cafefaac0e14b00fd7644da616cab35a/deploy_model_on_nano.ipynb
+++ b/docs/_downloads/cafefaac0e14b00fd7644da616cab35a/deploy_model_on_nano.ipynb
@@ -193,7 +193,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/399e1d7889ca66b69d51655784827503/deploy_object_detection_pytorch.ipynb b/docs/_downloads/cb794be9a8dc7317a891b31b2696e71f/deploy_object_detection_pytorch.zip
similarity index 54%
copy from docs/_downloads/399e1d7889ca66b69d51655784827503/deploy_object_detection_pytorch.ipynb
copy to docs/_downloads/cb794be9a8dc7317a891b31b2696e71f/deploy_object_detection_pytorch.zip
index 17b1efbed6..898e08532d 100644
Binary files a/docs/_downloads/399e1d7889ca66b69d51655784827503/deploy_object_detection_pytorch.ipynb and b/docs/_downloads/cb794be9a8dc7317a891b31b2696e71f/deploy_object_detection_pytorch.zip differ
diff --git a/docs/_downloads/10d831d158490a9ee3abd1901806fc11/reduction.ipynb b/docs/_downloads/ce5acce4e762d86c1eaea8cc8fcc6388/reduction.zip
similarity index 56%
copy from docs/_downloads/10d831d158490a9ee3abd1901806fc11/reduction.ipynb
copy to docs/_downloads/ce5acce4e762d86c1eaea8cc8fcc6388/reduction.zip
index c6666e1659..2f67fd1899 100644
Binary files a/docs/_downloads/10d831d158490a9ee3abd1901806fc11/reduction.ipynb and b/docs/_downloads/ce5acce4e762d86c1eaea8cc8fcc6388/reduction.zip differ
diff --git a/docs/_downloads/a7aff5918e1b86809a5bd1da8bef7229/tedd.ipynb b/docs/_downloads/cf3a85bb0707f70003b9869c04c25a37/tedd.zip
similarity index 53%
copy from docs/_downloads/a7aff5918e1b86809a5bd1da8bef7229/tedd.ipynb
copy to docs/_downloads/cf3a85bb0707f70003b9869c04c25a37/tedd.zip
index 82f58c6287..eb418146aa 100644
Binary files a/docs/_downloads/a7aff5918e1b86809a5bd1da8bef7229/tedd.ipynb and b/docs/_downloads/cf3a85bb0707f70003b9869c04c25a37/tedd.zip differ
diff --git a/docs/_downloads/d1434e80dd27eef6b1c9cbaa13f1197b/tune_relay_cuda.ipynb b/docs/_downloads/d1434e80dd27eef6b1c9cbaa13f1197b/tune_relay_cuda.ipynb
index d5714a69a5..fadee5da3d 100644
--- a/docs/_downloads/d1434e80dd27eef6b1c9cbaa13f1197b/tune_relay_cuda.ipynb
+++ b/docs/_downloads/d1434e80dd27eef6b1c9cbaa13f1197b/tune_relay_cuda.ipynb
@@ -164,7 +164,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/37bbf9e2065ec8deeb64a8d9fa0755bc/autotvm_matmul_x86.ipynb b/docs/_downloads/d310bc6a8e71b77c47ee769e09271d72/autotvm_matmul_x86.zip
similarity index 51%
copy from docs/_downloads/37bbf9e2065ec8deeb64a8d9fa0755bc/autotvm_matmul_x86.ipynb
copy to docs/_downloads/d310bc6a8e71b77c47ee769e09271d72/autotvm_matmul_x86.zip
index 1b0594944f..3f4191c29a 100644
Binary files a/docs/_downloads/37bbf9e2065ec8deeb64a8d9fa0755bc/autotvm_matmul_x86.ipynb and b/docs/_downloads/d310bc6a8e71b77c47ee769e09271d72/autotvm_matmul_x86.zip differ
diff --git a/docs/_downloads/a7c7ea4b5017ae70db1f51dd8e6dcd82/micro_train.ipynb b/docs/_downloads/d37472aa34e782643ad43dda371a31de/micro_train.zip
similarity index 51%
copy from docs/_downloads/a7c7ea4b5017ae70db1f51dd8e6dcd82/micro_train.ipynb
copy to docs/_downloads/d37472aa34e782643ad43dda371a31de/micro_train.zip
index 90898b0d05..79aaaf9f58 100644
Binary files a/docs/_downloads/a7c7ea4b5017ae70db1f51dd8e6dcd82/micro_train.ipynb and b/docs/_downloads/d37472aa34e782643ad43dda371a31de/micro_train.zip differ
diff --git a/docs/_downloads/d58ec306b89044968adefb49e6552378/low_level_custom_pass.ipynb b/docs/_downloads/d58ec306b89044968adefb49e6552378/low_level_custom_pass.ipynb
index 453f83ee4d..b114ea84bf 100644
--- a/docs/_downloads/d58ec306b89044968adefb49e6552378/low_level_custom_pass.ipynb
+++ b/docs/_downloads/d58ec306b89044968adefb49e6552378/low_level_custom_pass.ipynb
@@ -132,7 +132,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/d64d105c8921b2ab908ef001ab382b45/customize_opt.ipynb b/docs/_downloads/d64d105c8921b2ab908ef001ab382b45/customize_opt.ipynb
index 3830130418..c3f08c4577 100644
--- a/docs/_downloads/d64d105c8921b2ab908ef001ab382b45/customize_opt.ipynb
+++ b/docs/_downloads/d64d105c8921b2ab908ef001ab382b45/customize_opt.ipynb
@@ -171,7 +171,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/09df7d9b9c90a2a1bdd570520693fd9f/micro_pytorch.ipynb b/docs/_downloads/d7ab4494ccddafb73c90041071de3116/micro_pytorch.zip
similarity index 55%
copy from docs/_downloads/09df7d9b9c90a2a1bdd570520693fd9f/micro_pytorch.ipynb
copy to docs/_downloads/d7ab4494ccddafb73c90041071de3116/micro_pytorch.zip
index f7eec8b305..9b8ac2ca97 100644
Binary files a/docs/_downloads/09df7d9b9c90a2a1bdd570520693fd9f/micro_pytorch.ipynb and b/docs/_downloads/d7ab4494ccddafb73c90041071de3116/micro_pytorch.zip differ
diff --git a/docs/_downloads/293f8d0753933b706a0b588f909fe38a/tune_sparse_x86.ipynb b/docs/_downloads/da82f31ab658e0c98ddee054192ed764/tune_sparse_x86.zip
similarity index 52%
copy from docs/_downloads/293f8d0753933b706a0b588f909fe38a/tune_sparse_x86.ipynb
copy to docs/_downloads/da82f31ab658e0c98ddee054192ed764/tune_sparse_x86.zip
index 7f3e949b86..c081510d9b 100644
Binary files a/docs/_downloads/293f8d0753933b706a0b588f909fe38a/tune_sparse_x86.ipynb and b/docs/_downloads/da82f31ab658e0c98ddee054192ed764/tune_sparse_x86.zip differ
diff --git a/docs/_downloads/bc33c0d33026b287306b6ead1a50b04a/tune_relay_arm.ipynb b/docs/_downloads/dd49fb82c674b8ad6b7f358bd2d0728e/tune_relay_arm.zip
similarity index 51%
copy from docs/_downloads/bc33c0d33026b287306b6ead1a50b04a/tune_relay_arm.ipynb
copy to docs/_downloads/dd49fb82c674b8ad6b7f358bd2d0728e/tune_relay_arm.zip
index 2799f2b0d8..8353858ebb 100644
Binary files a/docs/_downloads/bc33c0d33026b287306b6ead1a50b04a/tune_relay_arm.ipynb and b/docs/_downloads/dd49fb82c674b8ad6b7f358bd2d0728e/tune_relay_arm.zip differ
diff --git a/docs/_downloads/1fc1683d67bee4f26703504a58d42578/micro_mlperftiny.ipynb b/docs/_downloads/df33b4dd953d96e1a9eccb720279c0f2/micro_mlperftiny.zip
similarity index 55%
copy from docs/_downloads/1fc1683d67bee4f26703504a58d42578/micro_mlperftiny.ipynb
copy to docs/_downloads/df33b4dd953d96e1a9eccb720279c0f2/micro_mlperftiny.zip
index 69a4d2ac62..0d48008512 100644
Binary files a/docs/_downloads/1fc1683d67bee4f26703504a58d42578/micro_mlperftiny.ipynb and b/docs/_downloads/df33b4dd953d96e1a9eccb720279c0f2/micro_mlperftiny.zip differ
diff --git a/docs/_downloads/af264436d049e3cd84803b67b6620b63/tune_network_cuda.ipynb b/docs/_downloads/e12cb3ab06f3319ffc22757df3103de5/tune_network_cuda.zip
similarity index 51%
copy from docs/_downloads/af264436d049e3cd84803b67b6620b63/tune_network_cuda.ipynb
copy to docs/_downloads/e12cb3ab06f3319ffc22757df3103de5/tune_network_cuda.zip
index 4acb5f5918..0520baa74f 100644
Binary files a/docs/_downloads/af264436d049e3cd84803b67b6620b63/tune_network_cuda.ipynb and b/docs/_downloads/e12cb3ab06f3319ffc22757df3103de5/tune_network_cuda.zip differ
diff --git a/docs/_downloads/e2a9c4bfdec7a9365ef67c5335b1aaa4/tir_transformation.ipynb b/docs/_downloads/e2a9c4bfdec7a9365ef67c5335b1aaa4/tir_transformation.ipynb
index 59c8feecff..b35865a93b 100644
--- a/docs/_downloads/e2a9c4bfdec7a9365ef67c5335b1aaa4/tir_transformation.ipynb
+++ b/docs/_downloads/e2a9c4bfdec7a9365ef67c5335b1aaa4/tir_transformation.ipynb
@@ -233,7 +233,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/825671e45a9bdc4733400384984cd9dd/build_gcn.ipynb b/docs/_downloads/e490a8d6eb5a69060ecbeb642c647089/build_gcn.zip
similarity index 54%
copy from docs/_downloads/825671e45a9bdc4733400384984cd9dd/build_gcn.ipynb
copy to docs/_downloads/e490a8d6eb5a69060ecbeb642c647089/build_gcn.zip
index 940fa772e9..fb06f6749a 100644
Binary files a/docs/_downloads/825671e45a9bdc4733400384984cd9dd/build_gcn.ipynb and b/docs/_downloads/e490a8d6eb5a69060ecbeb642c647089/build_gcn.zip differ
diff --git a/docs/_downloads/23968bb778cd9591b7ad858bf17dcc3e/from_tflite.ipynb b/docs/_downloads/e64f9a7a1678aba7b20c1e9db62991f2/from_tflite.zip
similarity index 54%
copy from docs/_downloads/23968bb778cd9591b7ad858bf17dcc3e/from_tflite.ipynb
copy to docs/_downloads/e64f9a7a1678aba7b20c1e9db62991f2/from_tflite.zip
index eed85eb163..64974f0ce6 100644
Binary files a/docs/_downloads/23968bb778cd9591b7ad858bf17dcc3e/from_tflite.ipynb and b/docs/_downloads/e64f9a7a1678aba7b20c1e9db62991f2/from_tflite.zip differ
diff --git a/docs/_downloads/779f52a44f2b8ab22dc21eee0c27fd4d/from_onnx.ipynb b/docs/_downloads/e87b29807b5fbe3aa342c250437de400/from_onnx.zip
similarity index 54%
copy from docs/_downloads/779f52a44f2b8ab22dc21eee0c27fd4d/from_onnx.ipynb
copy to docs/_downloads/e87b29807b5fbe3aa342c250437de400/from_onnx.zip
index 0a39119745..f7513070ae 100644
Binary files a/docs/_downloads/779f52a44f2b8ab22dc21eee0c27fd4d/from_onnx.ipynb and b/docs/_downloads/e87b29807b5fbe3aa342c250437de400/from_onnx.zip differ
diff --git a/docs/_downloads/e9b6693b191fb8fc2c30759ac92b760c/introduction.zip b/docs/_downloads/e9b6693b191fb8fc2c30759ac92b760c/introduction.zip
new file mode 100644
index 0000000000..e2a6ca6961
Binary files /dev/null and b/docs/_downloads/e9b6693b191fb8fc2c30759ac92b760c/introduction.zip differ
diff --git a/docs/_downloads/732ed130cbc15432e737da8cc47e1734/tune_conv2d_cuda.ipynb b/docs/_downloads/ec02924ca684417e8b60fd9ae9fcce5a/tune_conv2d_cuda.zip
similarity index 51%
copy from docs/_downloads/732ed130cbc15432e737da8cc47e1734/tune_conv2d_cuda.ipynb
copy to docs/_downloads/ec02924ca684417e8b60fd9ae9fcce5a/tune_conv2d_cuda.zip
index 7ce0fa1c09..f01213d14f 100644
Binary files a/docs/_downloads/732ed130cbc15432e737da8cc47e1734/tune_conv2d_cuda.ipynb and b/docs/_downloads/ec02924ca684417e8b60fd9ae9fcce5a/tune_conv2d_cuda.zip differ
diff --git a/docs/_downloads/ad2a7f55d615d188ad664d56696815a6/tune_network_x86.ipynb b/docs/_downloads/ece416f9cda64e68d9e717dfc627f9cc/tune_network_x86.zip
similarity index 51%
copy from docs/_downloads/ad2a7f55d615d188ad664d56696815a6/tune_network_x86.ipynb
copy to docs/_downloads/ece416f9cda64e68d9e717dfc627f9cc/tune_network_x86.zip
index 13de697244..473acdefdf 100644
Binary files a/docs/_downloads/ad2a7f55d615d188ad664d56696815a6/tune_network_x86.ipynb and b/docs/_downloads/ece416f9cda64e68d9e717dfc627f9cc/tune_network_x86.zip differ
diff --git a/docs/_downloads/eceb05a9badb601d2def02240aa869e9/quick_start.ipynb b/docs/_downloads/eceb05a9badb601d2def02240aa869e9/quick_start.ipynb
index a3d84db0dc..047c190230 100644
--- a/docs/_downloads/eceb05a9badb601d2def02240aa869e9/quick_start.ipynb
+++ b/docs/_downloads/eceb05a9badb601d2def02240aa869e9/quick_start.ipynb
@@ -135,7 +135,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/1f4943aed1aa607b2775c18b1d71db10/from_pytorch.ipynb b/docs/_downloads/ed4d6cfa14cd1800f89401e657c5be8f/from_pytorch.zip
similarity index 56%
copy from docs/_downloads/1f4943aed1aa607b2775c18b1d71db10/from_pytorch.ipynb
copy to docs/_downloads/ed4d6cfa14cd1800f89401e657c5be8f/from_pytorch.zip
index 3c095fdc27..4ee83375f1 100644
Binary files a/docs/_downloads/1f4943aed1aa607b2775c18b1d71db10/from_pytorch.ipynb and b/docs/_downloads/ed4d6cfa14cd1800f89401e657c5be8f/from_pytorch.zip differ
diff --git a/docs/_downloads/b9e7311d8c56eb6e6aca08f0be35ff03/deploy_model_on_adreno.ipynb b/docs/_downloads/ed68e04c3ec6b6f80b0d07a0aa31d5f2/deploy_model_on_adreno.zip
similarity index 53%
copy from docs/_downloads/b9e7311d8c56eb6e6aca08f0be35ff03/deploy_model_on_adreno.ipynb
copy to docs/_downloads/ed68e04c3ec6b6f80b0d07a0aa31d5f2/deploy_model_on_adreno.zip
index 6bf3345eec..a0b73daf57 100644
Binary files a/docs/_downloads/b9e7311d8c56eb6e6aca08f0be35ff03/deploy_model_on_adreno.ipynb and b/docs/_downloads/ed68e04c3ec6b6f80b0d07a0aa31d5f2/deploy_model_on_adreno.zip differ
diff --git a/docs/_downloads/f6ff0fbc61d45d2cc0f53ebbf11a5fb5/use_pass_instrument.ipynb b/docs/_downloads/edafd7bed037b4b0f5d401d8339d525b/use_pass_instrument.zip
similarity index 55%
copy from docs/_downloads/f6ff0fbc61d45d2cc0f53ebbf11a5fb5/use_pass_instrument.ipynb
copy to docs/_downloads/edafd7bed037b4b0f5d401d8339d525b/use_pass_instrument.zip
index 2729ba3d05..662b1071b4 100644
Binary files a/docs/_downloads/f6ff0fbc61d45d2cc0f53ebbf11a5fb5/use_pass_instrument.ipynb and b/docs/_downloads/edafd7bed037b4b0f5d401d8339d525b/use_pass_instrument.zip differ
diff --git a/docs/_downloads/edc9d28c4fbc249e2e7b78002af63b84/using_external_lib.ipynb b/docs/_downloads/edc9d28c4fbc249e2e7b78002af63b84/using_external_lib.ipynb
index d1a14b6988..64ba4a0dc7 100644
--- a/docs/_downloads/edc9d28c4fbc249e2e7b78002af63b84/using_external_lib.ipynb
+++ b/docs/_downloads/edc9d28c4fbc249e2e7b78002af63b84/using_external_lib.ipynb
@@ -139,7 +139,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/eed2658f15243bab719b2de7769fa45a/deploy_model_on_android.ipynb b/docs/_downloads/eed2658f15243bab719b2de7769fa45a/deploy_model_on_android.ipynb
index 02413adc66..6f7271c40a 100644
--- a/docs/_downloads/eed2658f15243bab719b2de7769fa45a/deploy_model_on_android.ipynb
+++ b/docs/_downloads/eed2658f15243bab719b2de7769fa45a/deploy_model_on_android.ipynb
@@ -182,7 +182,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/efe0b02e219b28e0bd85fbdda35ba8ac/tvmc_command_line_driver.ipynb b/docs/_downloads/efe0b02e219b28e0bd85fbdda35ba8ac/tvmc_command_line_driver.ipynb
index 0b177b585d..d477725d92 100644
--- a/docs/_downloads/efe0b02e219b28e0bd85fbdda35ba8ac/tvmc_command_line_driver.ipynb
+++ b/docs/_downloads/efe0b02e219b28e0bd85fbdda35ba8ac/tvmc_command_line_driver.ipynb
@@ -133,7 +133,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/6e511f5a8ddbf12f2fca2dfadc0cc4a9/micro_tvmc.ipynb b/docs/_downloads/f23c162f9467c03a6d60cfdfd1856890/micro_tvmc.zip
similarity index 52%
copy from docs/_downloads/6e511f5a8ddbf12f2fca2dfadc0cc4a9/micro_tvmc.ipynb
copy to docs/_downloads/f23c162f9467c03a6d60cfdfd1856890/micro_tvmc.zip
index a5a1094259..78d45e67c5 100644
Binary files a/docs/_downloads/6e511f5a8ddbf12f2fca2dfadc0cc4a9/micro_tvmc.ipynb and b/docs/_downloads/f23c162f9467c03a6d60cfdfd1856890/micro_tvmc.zip differ
diff --git a/docs/_downloads/f2425440dd348d54df4e4db0c92dd617/using_external_lib.zip b/docs/_downloads/f2425440dd348d54df4e4db0c92dd617/using_external_lib.zip
new file mode 100644
index 0000000000..e5de3acddd
Binary files /dev/null and b/docs/_downloads/f2425440dd348d54df4e4db0c92dd617/using_external_lib.zip differ
diff --git a/docs/_downloads/c20f81a94729f461f33b52cc110fd9d6/deploy_prequantized.ipynb b/docs/_downloads/f276531c2b534c9f41054d65cd8b806a/deploy_prequantized.zip
similarity index 54%
copy from docs/_downloads/c20f81a94729f461f33b52cc110fd9d6/deploy_prequantized.ipynb
copy to docs/_downloads/f276531c2b534c9f41054d65cd8b806a/deploy_prequantized.zip
index 52bbfb52cd..b4c52b9b41 100644
Binary files a/docs/_downloads/c20f81a94729f461f33b52cc110fd9d6/deploy_prequantized.ipynb and b/docs/_downloads/f276531c2b534c9f41054d65cd8b806a/deploy_prequantized.zip differ
diff --git a/docs/_downloads/f407f66fb8174d0d4ec37407af1128d6/using_pipeline_executor.ipynb b/docs/_downloads/f407f66fb8174d0d4ec37407af1128d6/using_pipeline_executor.ipynb
index 8aa3c03ffd..c6102e86cb 100644
--- a/docs/_downloads/f407f66fb8174d0d4ec37407af1128d6/using_pipeline_executor.ipynb
+++ b/docs/_downloads/f407f66fb8174d0d4ec37407af1128d6/using_pipeline_executor.ipynb
@@ -370,7 +370,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/246d4b8509474fd9046e69f6cc9b7f87/auto_scheduler_matmul_x86.ipynb b/docs/_downloads/f5a441af3750da6e83ae9395c9d3ebc2/auto_scheduler_matmul_x86.zip
similarity index 53%
copy from docs/_downloads/246d4b8509474fd9046e69f6cc9b7f87/auto_scheduler_matmul_x86.ipynb
copy to docs/_downloads/f5a441af3750da6e83ae9395c9d3ebc2/auto_scheduler_matmul_x86.zip
index dafda982ef..986f9ec6f9 100644
Binary files a/docs/_downloads/246d4b8509474fd9046e69f6cc9b7f87/auto_scheduler_matmul_x86.ipynb and b/docs/_downloads/f5a441af3750da6e83ae9395c9d3ebc2/auto_scheduler_matmul_x86.zip differ
diff --git a/docs/_downloads/148819f3421b8d89b1723c3e15e3f19f/cross_compilation_and_rpc.ipynb b/docs/_downloads/f69380821f417ef2210f45503d81bded/cross_compilation_and_rpc.zip
similarity index 52%
copy from docs/_downloads/148819f3421b8d89b1723c3e15e3f19f/cross_compilation_and_rpc.ipynb
copy to docs/_downloads/f69380821f417ef2210f45503d81bded/cross_compilation_and_rpc.zip
index 87c0706288..86d4886821 100644
Binary files a/docs/_downloads/148819f3421b8d89b1723c3e15e3f19f/cross_compilation_and_rpc.ipynb and b/docs/_downloads/f69380821f417ef2210f45503d81bded/cross_compilation_and_rpc.zip differ
diff --git a/docs/_downloads/d64d105c8921b2ab908ef001ab382b45/customize_opt.ipynb b/docs/_downloads/f69433a4a80715725df90d1386679956/customize_opt.zip
similarity index 52%
copy from docs/_downloads/d64d105c8921b2ab908ef001ab382b45/customize_opt.ipynb
copy to docs/_downloads/f69433a4a80715725df90d1386679956/customize_opt.zip
index 3830130418..7ed29a43a2 100644
Binary files a/docs/_downloads/d64d105c8921b2ab908ef001ab382b45/customize_opt.ipynb and b/docs/_downloads/f69433a4a80715725df90d1386679956/customize_opt.zip differ
diff --git a/docs/_downloads/f6ff0fbc61d45d2cc0f53ebbf11a5fb5/use_pass_instrument.ipynb b/docs/_downloads/f6ff0fbc61d45d2cc0f53ebbf11a5fb5/use_pass_instrument.ipynb
index 2729ba3d05..4114f76b65 100644
--- a/docs/_downloads/f6ff0fbc61d45d2cc0f53ebbf11a5fb5/use_pass_instrument.ipynb
+++ b/docs/_downloads/f6ff0fbc61d45d2cc0f53ebbf11a5fb5/use_pass_instrument.ipynb
@@ -334,7 +334,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/f7ae979fbe61064749ce0fb7a621eb4c/from_oneflow.py b/docs/_downloads/f7ae979fbe61064749ce0fb7a621eb4c/from_oneflow.py
deleted file mode 100644
index 64f659316b..0000000000
--- a/docs/_downloads/f7ae979fbe61064749ce0fb7a621eb4c/from_oneflow.py
+++ /dev/null
@@ -1,182 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-"""
-Compile OneFlow Models
-======================
-**Author**: `Xiaoyu Zhang <https://github.com/BBuf/>`_
-
-This article is an introductory tutorial to deploy OneFlow models with Relay.
-
-For us to begin with, OneFlow package should be installed.
-
-A quick solution is to install via pip
-
-.. code-block:: bash
-
- %%shell
- pip install flowvision==0.1.0
- pip install -f https://release.oneflow.info oneflow==0.7.0+cpu
-
-or please refer to official site:
-https://github.com/Oneflow-Inc/oneflow
-
-Currently, TVM supports OneFlow 0.7.0. Other versions may be unstable.
-"""
-
-# sphinx_gallery_start_ignore
-# sphinx_gallery_requires_cuda = True
-# sphinx_gallery_end_ignore
-import os, math
-from matplotlib import pyplot as plt
-import numpy as np
-from PIL import Image
-
-# oneflow imports
-import flowvision
-import oneflow as flow
-import oneflow.nn as nn
-
-import tvm
-from tvm import relay
-from tvm.contrib.download import download_testdata
-
-######################################################################
-# Load a pretrained OneFlow model and save model
-# ----------------------------------------------
-model_name = "resnet18"
-model = getattr(flowvision.models, model_name)(pretrained=True)
-model = model.eval()
-
-model_dir = "resnet18_model"
-if not os.path.exists(model_dir):
- flow.save(model.state_dict(), model_dir)
-
-######################################################################
-# Load a test image
-# -----------------
-# Classic cat example!
-from PIL import Image
-
-img_url = "https://github.com/dmlc/mxnet.js/blob/main/data/cat.png?raw=true"
-img_path = download_testdata(img_url, "cat.png", module="data")
-img = Image.open(img_path).resize((224, 224))
-
-# Preprocess the image and convert to tensor
-from flowvision import transforms
-
-my_preprocess = transforms.Compose(
- [
- transforms.Resize(256),
- transforms.CenterCrop(224),
- transforms.ToTensor(),
- transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),
- ]
-)
-img = my_preprocess(img)
-img = np.expand_dims(img.numpy(), 0)
-
-######################################################################
-# Import the graph to Relay
-# -------------------------
-# Convert OneFlow graph to Relay graph. The input name can be arbitrary.
-class Graph(flow.nn.Graph):
- def __init__(self, module):
- super().__init__()
- self.m = module
-
- def build(self, x):
- out = self.m(x)
- return out
-
-
-graph = Graph(model)
-_ = graph._compile(flow.randn(1, 3, 224, 224))
-
-mod, params = relay.frontend.from_oneflow(graph, model_dir)
-
-######################################################################
-# Relay Build
-# -----------
-# Compile the graph to llvm target with given input specification.
-target = tvm.target.Target("llvm", host="llvm")
-dev = tvm.cpu(0)
-with tvm.transform.PassContext(opt_level=3):
- lib = relay.build(mod, target=target, params=params)
-
-######################################################################
-# Execute the portable graph on TVM
-# ---------------------------------
-# Now we can try deploying the compiled model on target.
-target = "cuda"
-with tvm.transform.PassContext(opt_level=10):
- intrp = relay.build_module.create_executor("graph", mod, tvm.cuda(0), target)
-
-print(type(img))
-print(img.shape)
-tvm_output = intrp.evaluate()(tvm.nd.array(img.astype("float32")), **params)
-
-#####################################################################
-# Look up synset name
-# -------------------
-# Look up prediction top 1 index in 1000 class synset.
-synset_url = "".join(
- [
- "https://raw.githubusercontent.com/Cadene/",
- "pretrained-models.pytorch/master/data/",
- "imagenet_synsets.txt",
- ]
-)
-synset_name = "imagenet_synsets.txt"
-synset_path = download_testdata(synset_url, synset_name, module="data")
-with open(synset_path) as f:
- synsets = f.readlines()
-
-synsets = [x.strip() for x in synsets]
-splits = [line.split(" ") for line in synsets]
-key_to_classname = {spl[0]: " ".join(spl[1:]) for spl in splits}
-
-class_url = "".join(
- [
- "https://raw.githubusercontent.com/Cadene/",
- "pretrained-models.pytorch/master/data/",
- "imagenet_classes.txt",
- ]
-)
-class_name = "imagenet_classes.txt"
-class_path = download_testdata(class_url, class_name, module="data")
-with open(class_path) as f:
- class_id_to_key = f.readlines()
-
-class_id_to_key = [x.strip() for x in class_id_to_key]
-
-# Get top-1 result for TVM
-top1_tvm = np.argmax(tvm_output.numpy()[0])
-tvm_class_key = class_id_to_key[top1_tvm]
-
-# Convert input to OneFlow variable and get OneFlow result for comparison
-with flow.no_grad():
- torch_img = flow.from_numpy(img)
- output = model(torch_img)
-
- # Get top-1 result for OneFlow
- top_oneflow = np.argmax(output.numpy())
- oneflow_class_key = class_id_to_key[top_oneflow]
-
-print("Relay top-1 id: {}, class name: {}".format(top1_tvm, key_to_classname[tvm_class_key]))
-print(
- "OneFlow top-1 id: {}, class name: {}".format(top_oneflow, key_to_classname[oneflow_class_key])
-)
diff --git a/docs/_downloads/f83ba3df2d52f9b54cf141114359481a/micro_autotune.ipynb b/docs/_downloads/f83ba3df2d52f9b54cf141114359481a/micro_autotune.ipynb
index c1912be4aa..48f886e0b8 100644
--- a/docs/_downloads/f83ba3df2d52f9b54cf141114359481a/micro_autotune.ipynb
+++ b/docs/_downloads/f83ba3df2d52f9b54cf141114359481a/micro_autotune.ipynb
@@ -226,7 +226,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/3b5e41b16a898b72d18127ebe2182c66/tensorize.ipynb b/docs/_downloads/f883900a18e6e99f70b43cf9526035c6/tensorize.zip
similarity index 54%
copy from docs/_downloads/3b5e41b16a898b72d18127ebe2182c66/tensorize.ipynb
copy to docs/_downloads/f883900a18e6e99f70b43cf9526035c6/tensorize.zip
index 3c8efe013f..e8878d6045 100644
Binary files a/docs/_downloads/3b5e41b16a898b72d18127ebe2182c66/tensorize.ipynb and b/docs/_downloads/f883900a18e6e99f70b43cf9526035c6/tensorize.zip differ
diff --git a/docs/_downloads/f97d815b408ef3f4d6bcb3e073c2d4dd/from_darknet.ipynb b/docs/_downloads/f97d815b408ef3f4d6bcb3e073c2d4dd/from_darknet.ipynb
index 30944dbc26..6678418566 100644
--- a/docs/_downloads/f97d815b408ef3f4d6bcb3e073c2d4dd/from_darknet.ipynb
+++ b/docs/_downloads/f97d815b408ef3f4d6bcb3e073c2d4dd/from_darknet.ipynb
@@ -147,7 +147,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.8.20"
+ "version": "3.9.20"
}
},
"nbformat": 4,
diff --git a/docs/_downloads/f97d815b408ef3f4d6bcb3e073c2d4dd/from_darknet.ipynb b/docs/_downloads/fbb01a2cb1343a3e0998395f1eef06ca/from_darknet.zip
similarity index 54%
copy from docs/_downloads/f97d815b408ef3f4d6bcb3e073c2d4dd/from_darknet.ipynb
copy to docs/_downloads/fbb01a2cb1343a3e0998395f1eef06ca/from_darknet.zip
index 30944dbc26..760f5c5666 100644
Binary files a/docs/_downloads/f97d815b408ef3f4d6bcb3e073c2d4dd/from_darknet.ipynb and b/docs/_downloads/fbb01a2cb1343a3e0998395f1eef06ca/from_darknet.zip differ
diff --git a/docs/_downloads/63f9e50204143ea3c2d3593c72439b3d/intro_topi.ipynb b/docs/_downloads/fcdac0bf86f887eb19af04382ddf8a23/intro_topi.zip
similarity index 56%
copy from docs/_downloads/63f9e50204143ea3c2d3593c72439b3d/intro_topi.ipynb
copy to docs/_downloads/fcdac0bf86f887eb19af04382ddf8a23/intro_topi.zip
index 8d7ad6ea97..6a026f8a39 100644
Binary files a/docs/_downloads/63f9e50204143ea3c2d3593c72439b3d/intro_topi.ipynb and b/docs/_downloads/fcdac0bf86f887eb19af04382ddf8a23/intro_topi.zip differ
diff --git a/docs/_images/sphx_glr_deploy_model_on_adreno_001.png b/docs/_images/sphx_glr_deploy_model_on_adreno_001.png
index 7a72de4ce8..30bbe4bf15 100644
Binary files a/docs/_images/sphx_glr_deploy_model_on_adreno_001.png and b/docs/_images/sphx_glr_deploy_model_on_adreno_001.png differ
diff --git a/docs/_images/sphx_glr_from_darknet_001.png b/docs/_images/sphx_glr_from_darknet_001.png
index eb36f84e12..cdfaf32ac0 100644
Binary files a/docs/_images/sphx_glr_from_darknet_001.png and b/docs/_images/sphx_glr_from_darknet_001.png differ
diff --git a/docs/_images/sphx_glr_from_keras_001.png b/docs/_images/sphx_glr_from_keras_001.png
index 7a72de4ce8..30bbe4bf15 100644
Binary files a/docs/_images/sphx_glr_from_keras_001.png and b/docs/_images/sphx_glr_from_keras_001.png differ
diff --git a/docs/_images/sphx_glr_from_oneflow_thumb.png b/docs/_images/sphx_glr_from_oneflow_thumb.png
deleted file mode 100644
index 8a5fed589d..0000000000
Binary files a/docs/_images/sphx_glr_from_oneflow_thumb.png and /dev/null differ
diff --git a/docs/_images/sphx_glr_from_onnx_001.png b/docs/_images/sphx_glr_from_onnx_001.png
index 46eeb9a059..3934d15fe6 100644
Binary files a/docs/_images/sphx_glr_from_onnx_001.png and b/docs/_images/sphx_glr_from_onnx_001.png differ
diff --git a/docs/_images/sphx_glr_from_tflite_001.png b/docs/_images/sphx_glr_from_tflite_001.png
index 7a72de4ce8..30bbe4bf15 100644
Binary files a/docs/_images/sphx_glr_from_tflite_001.png and b/docs/_images/sphx_glr_from_tflite_001.png differ
diff --git a/docs/_images/sphx_glr_micro_train_001.png b/docs/_images/sphx_glr_micro_train_001.png
index 55815636a0..9ca43beb17 100644
Binary files a/docs/_images/sphx_glr_micro_train_001.png and b/docs/_images/sphx_glr_micro_train_001.png differ
diff --git a/docs/_sources/deep_dive/relax/tutorials/index.rst.txt b/docs/_sources/deep_dive/relax/tutorials/index.rst.txt
index 8dcbe77b63..abbd39b31d 100644
--- a/docs/_sources/deep_dive/relax/tutorials/index.rst.txt
+++ b/docs/_sources/deep_dive/relax/tutorials/index.rst.txt
@@ -9,6 +9,7 @@ Deep Dive: Relax
<div class="sphx-glr-thumbnails">
+.. thumbnail-parent-div-open
.. raw:: html
@@ -17,7 +18,7 @@ Deep Dive: Relax
.. only:: html
.. image:: /deep_dive/relax/tutorials/images/thumb/sphx_glr_relax_creation_thumb.png
- :alt: Relax Creation
+ :alt:
:ref:`sphx_glr_deep_dive_relax_tutorials_relax_creation.py`
@@ -34,7 +35,7 @@ Deep Dive: Relax
.. only:: html
.. image:: /deep_dive/relax/tutorials/images/thumb/sphx_glr_relax_transformation_thumb.png
- :alt: Transformation
+ :alt:
:ref:`sphx_glr_deep_dive_relax_tutorials_relax_transformation.py`
@@ -44,6 +45,8 @@ Deep Dive: Relax
</div>
+.. thumbnail-parent-div-close
+
.. raw:: html
</div>
diff --git a/docs/_sources/deep_dive/relax/tutorials/relax_creation.rst.txt b/docs/_sources/deep_dive/relax/tutorials/relax_creation.rst.txt
index 2d50b8ef32..05ca17c3fc 100644
--- a/docs/_sources/deep_dive/relax/tutorials/relax_creation.rst.txt
+++ b/docs/_sources/deep_dive/relax/tutorials/relax_creation.rst.txt
@@ -43,7 +43,7 @@ high-level Relax operators using TVMScript.
.. GENERATED FROM PYTHON SOURCE LINES 38-65
-.. code-block:: default
+.. code-block:: Python
from tvm import relax, topi
@@ -112,7 +112,7 @@ TensorIR functions in Relax function.
.. GENERATED FROM PYTHON SOURCE LINES 69-103
-.. code-block:: default
+.. code-block:: Python
@@ -231,7 +231,7 @@ Relax NNModule API.
.. GENERATED FROM PYTHON SOURCE LINES 135-153
-.. code-block:: default
+.. code-block:: Python
from tvm.relax.frontend import nn
@@ -265,7 +265,7 @@ After we define the NNModule, we can export it to TVM IRModule via
.. GENERATED FROM PYTHON SOURCE LINES 156-160
-.. code-block:: default
+.. code-block:: Python
mod, params = NNModule().export_tvm({"forward": {"x": nn.spec.Tensor(("n", 784), "float32")}})
@@ -312,7 +312,7 @@ Tensor Expression(TE), TensorIR functions or other TVM packed functions.
.. GENERATED FROM PYTHON SOURCE LINES 163-216
-.. code-block:: default
+.. code-block:: Python
@@ -447,7 +447,7 @@ customized pass.
.. GENERATED FROM PYTHON SOURCE LINES 223-242
-.. code-block:: default
+.. code-block:: Python
bb = relax.BlockBuilder()
@@ -508,7 +508,7 @@ Relax functions, TensorIR functions and other TVM packed functions.
.. GENERATED FROM PYTHON SOURCE LINES 245-270
-.. code-block:: default
+.. code-block:: Python
bb = relax.BlockBuilder()
@@ -625,14 +625,17 @@ NNModule API, Block Builder API and PackedFunc API for different use cases.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: relax_creation.ipynb <relax_creation.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: relax_creation.py <relax_creation.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: relax_creation.ipynb <relax_creation.ipynb>`
+ :download:`Download zipped: relax_creation.zip <relax_creation.zip>`
.. only:: html
diff --git a/docs/_sources/deep_dive/relax/tutorials/relax_transformation.rst.txt b/docs/_sources/deep_dive/relax/tutorials/relax_transformation.rst.txt
index 0d1f0d3657..0ad6d54337 100644
--- a/docs/_sources/deep_dive/relax/tutorials/relax_transformation.rst.txt
+++ b/docs/_sources/deep_dive/relax/tutorials/relax_transformation.rst.txt
@@ -37,7 +37,7 @@ the :ref:`previous section <relax-creation>`.
.. GENERATED FROM PYTHON SOURCE LINES 31-56
-.. code-block:: default
+.. code-block:: Python
import tvm
@@ -109,7 +109,7 @@ into low-level operators.
.. GENERATED FROM PYTHON SOURCE LINES 63-67
-.. code-block:: default
+.. code-block:: Python
mod = tvm.relax.transform.LegalizeOps()(origin_mod)
@@ -257,7 +257,7 @@ a set of passes. We can apply them in a sequence.
.. GENERATED FROM PYTHON SOURCE LINES 74-84
-.. code-block:: default
+.. code-block:: Python
mod = tvm.ir.transform.Sequential(
@@ -391,7 +391,7 @@ First, we need to write a Relax IR Mutator to do the rewriting.
.. GENERATED FROM PYTHON SOURCE LINES 96-113
-.. code-block:: default
+.. code-block:: Python
from tvm.relax.expr_functor import PyExprMutator, mutator
@@ -423,7 +423,7 @@ Then we can write a pass to apply the mutator to the whole module.
.. GENERATED FROM PYTHON SOURCE LINES 115-132
-.. code-block:: default
+.. code-block:: Python
@@ -495,14 +495,17 @@ We have also shown how to define and apply custom transformations.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: relax_transformation.ipynb <relax_transformation.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: relax_transformation.py <relax_transformation.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: relax_transformation.ipynb <relax_transformation.ipynb>`
+ :download:`Download zipped: relax_transformation.zip <relax_transformation.zip>`
.. only:: html
diff --git a/docs/_sources/deep_dive/relax/tutorials/sg_execution_times.rst.txt b/docs/_sources/deep_dive/relax/tutorials/sg_execution_times.rst.txt
index 3abaae460d..f2bbaef611 100644
--- a/docs/_sources/deep_dive/relax/tutorials/sg_execution_times.rst.txt
+++ b/docs/_sources/deep_dive/relax/tutorials/sg_execution_times.rst.txt
@@ -3,12 +3,38 @@
.. _sphx_glr_deep_dive_relax_tutorials_sg_execution_times:
+
Computation times
=================
-**00:00.264** total execution time for **deep_dive_relax_tutorials** files:
+**00:00.305** total execution time for 2 files **from deep_dive/relax/tutorials**:
+
+.. container::
+
+ .. raw:: html
+
+ <style scoped>
+ <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet" />
+ <link href="https://cdn.datatables.net/1.13.6/css/dataTables.bootstrap5.min.css" rel="stylesheet" />
+ </style>
+ <script src="https://code.jquery.com/jquery-3.7.0.js"></script>
+ <script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
+ <script src="https://cdn.datatables.net/1.13.6/js/dataTables.bootstrap5.min.js"></script>
+ <script type="text/javascript" class="init">
+ $(document).ready( function () {
+ $('table.sg-datatable').DataTable({order: [[1, 'desc']]});
+ } );
+ </script>
+
+ .. list-table::
+ :header-rows: 1
+ :class: table table-striped sg-datatable
-+-------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_deep_dive_relax_tutorials_relax_creation.py` (``relax_creation.py``) | 00:00.178 | 0.0 MB |
-+-------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_deep_dive_relax_tutorials_relax_transformation.py` (``relax_transformation.py``) | 00:00.086 | 0.0 MB |
-+-------------------------------------------------------------------------------------------------+-----------+--------+
+ * - Example
+ - Time
+ - Mem (MB)
+ * - :ref:`sphx_glr_deep_dive_relax_tutorials_relax_creation.py` (``relax_creation.py``)
+ - 00:00.214
+ - 0.0
+ * - :ref:`sphx_glr_deep_dive_relax_tutorials_relax_transformation.py` (``relax_transformation.py``)
+ - 00:00.091
+ - 0.0
diff --git a/docs/_sources/deep_dive/tensor_ir/tutorials/index.rst.txt b/docs/_sources/deep_dive/tensor_ir/tutorials/index.rst.txt
index 2cd4bb7e7b..1539390a24 100644
--- a/docs/_sources/deep_dive/tensor_ir/tutorials/index.rst.txt
+++ b/docs/_sources/deep_dive/tensor_ir/tutorials/index.rst.txt
@@ -9,15 +9,16 @@ Deep Dive: TensorIR
<div class="sphx-glr-thumbnails">
+.. thumbnail-parent-div-open
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip=" This tutorial concentrates on the construction of **standalone** TensorIR functions. The ...">
+ <div class="sphx-glr-thumbcontainer" tooltip=" This tutorial concentrates on the construction of standalone TensorIR functions. The techniques presented here are not requisite for end users to compile Relax models.">
.. only:: html
.. image:: /deep_dive/tensor_ir/tutorials/images/thumb/sphx_glr_tir_creation_thumb.png
- :alt: TensorIR Creation
+ :alt:
:ref:`sphx_glr_deep_dive_tensor_ir_tutorials_tir_creation.py`
@@ -34,7 +35,7 @@ Deep Dive: TensorIR
.. only:: html
.. image:: /deep_dive/tensor_ir/tutorials/images/thumb/sphx_glr_tir_transformation_thumb.png
- :alt: Transformation
+ :alt:
:ref:`sphx_glr_deep_dive_tensor_ir_tutorials_tir_transformation.py`
@@ -44,6 +45,8 @@ Deep Dive: TensorIR
</div>
+.. thumbnail-parent-div-close
+
.. raw:: html
</div>
diff --git a/docs/_sources/deep_dive/tensor_ir/tutorials/sg_execution_times.rst.txt b/docs/_sources/deep_dive/tensor_ir/tutorials/sg_execution_times.rst.txt
index b89df157de..a4a62975a3 100644
--- a/docs/_sources/deep_dive/tensor_ir/tutorials/sg_execution_times.rst.txt
+++ b/docs/_sources/deep_dive/tensor_ir/tutorials/sg_execution_times.rst.txt
@@ -3,12 +3,38 @@
.. _sphx_glr_deep_dive_tensor_ir_tutorials_sg_execution_times:
+
Computation times
=================
-**00:00.574** total execution time for **deep_dive_tensor_ir_tutorials** files:
+**00:00.654** total execution time for 2 files **from deep_dive/tensor_ir/tutorials**:
+
+.. container::
+
+ .. raw:: html
+
+ <style scoped>
+ <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet" />
+ <link href="https://cdn.datatables.net/1.13.6/css/dataTables.bootstrap5.min.css" rel="stylesheet" />
+ </style>
+ <script src="https://code.jquery.com/jquery-3.7.0.js"></script>
+ <script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
+ <script src="https://cdn.datatables.net/1.13.6/js/dataTables.bootstrap5.min.js"></script>
+ <script type="text/javascript" class="init">
+ $(document).ready( function () {
+ $('table.sg-datatable').DataTable({order: [[1, 'desc']]});
+ } );
+ </script>
+
+ .. list-table::
+ :header-rows: 1
+ :class: table table-striped sg-datatable
-+-------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_deep_dive_tensor_ir_tutorials_tir_transformation.py` (``tir_transformation.py``) | 00:00.330 | 0.0 MB |
-+-------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_deep_dive_tensor_ir_tutorials_tir_creation.py` (``tir_creation.py``) | 00:00.244 | 0.0 MB |
-+-------------------------------------------------------------------------------------------------+-----------+--------+
+ * - Example
+ - Time
+ - Mem (MB)
+ * - :ref:`sphx_glr_deep_dive_tensor_ir_tutorials_tir_transformation.py` (``tir_transformation.py``)
+ - 00:00.364
+ - 0.0
+ * - :ref:`sphx_glr_deep_dive_tensor_ir_tutorials_tir_creation.py` (``tir_creation.py``)
+ - 00:00.291
+ - 0.0
diff --git a/docs/_sources/deep_dive/tensor_ir/tutorials/tir_creation.rst.txt b/docs/_sources/deep_dive/tensor_ir/tutorials/tir_creation.rst.txt
index ab935c8922..2ba34ef700 100644
--- a/docs/_sources/deep_dive/tensor_ir/tutorials/tir_creation.rst.txt
+++ b/docs/_sources/deep_dive/tensor_ir/tutorials/tir_creation.rst.txt
@@ -58,7 +58,7 @@ format of the ir_module and in TVMScript:
.. GENERATED FROM PYTHON SOURCE LINES 53-92
-.. code-block:: default
+.. code-block:: Python
@@ -120,7 +120,7 @@ streamline the code:
.. GENERATED FROM PYTHON SOURCE LINES 102-125
-.. code-block:: default
+.. code-block:: Python
@@ -158,7 +158,7 @@ We can use the following code to verify that the two modules are equivalent:
.. GENERATED FROM PYTHON SOURCE LINES 127-130
-.. code-block:: default
+.. code-block:: Python
print(tvm.ir.structural_equal(MyModule, ConciseModule))
@@ -186,7 +186,7 @@ be used to ascertain the shape and data type of a TensorIR.
.. GENERATED FROM PYTHON SOURCE LINES 136-164
-.. code-block:: default
+.. code-block:: Python
# Python variables
@@ -229,7 +229,7 @@ Check the equivalence:
.. GENERATED FROM PYTHON SOURCE LINES 166-170
-.. code-block:: default
+.. code-block:: Python
print(tvm.ir.structural_equal(ConciseModule, ConciseModuleFromPython))
@@ -258,7 +258,7 @@ be used to ascertain the shape and data type of a TensorIR.
.. GENERATED FROM PYTHON SOURCE LINES 176-202
-.. code-block:: default
+.. code-block:: Python
@@ -299,7 +299,7 @@ Now let's check the runtime dynamic shape inference:
.. GENERATED FROM PYTHON SOURCE LINES 204-220
-.. code-block:: default
+.. code-block:: Python
@@ -365,7 +365,7 @@ TE creation method.
.. GENERATED FROM PYTHON SOURCE LINES 241-250
-.. code-block:: default
+.. code-block:: Python
from tvm import te
@@ -401,7 +401,7 @@ and one output parameter **C**.
.. GENERATED FROM PYTHON SOURCE LINES 264-269
-.. code-block:: default
+.. code-block:: Python
te_func = te.create_prim_func([A, B, C]).with_attr({"global_symbol": "mm_relu"})
@@ -454,7 +454,7 @@ is that we need to specify the shape of the input tensors as symbolic variables.
.. GENERATED FROM PYTHON SOURCE LINES 274-286
-.. code-block:: default
+.. code-block:: Python
# Declare symbolic variables
@@ -517,14 +517,17 @@ is that we need to specify the shape of the input tensors as symbolic variables.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: tir_creation.ipynb <tir_creation.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: tir_creation.py <tir_creation.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: tir_creation.ipynb <tir_creation.ipynb>`
+ :download:`Download zipped: tir_creation.zip <tir_creation.zip>`
.. only:: html
diff --git a/docs/_sources/deep_dive/tensor_ir/tutorials/tir_transformation.rst.txt b/docs/_sources/deep_dive/tensor_ir/tutorials/tir_transformation.rst.txt
index 5c2e96e73a..4e1c8778a8 100644
--- a/docs/_sources/deep_dive/tensor_ir/tutorials/tir_transformation.rst.txt
+++ b/docs/_sources/deep_dive/tensor_ir/tutorials/tir_transformation.rst.txt
@@ -43,7 +43,7 @@ First, let's take a look at the implementation of ``mm_relu`` in the previous se
.. GENERATED FROM PYTHON SOURCE LINES 37-65
-.. code-block:: default
+.. code-block:: Python
import tvm
@@ -87,7 +87,7 @@ original implementation.
.. GENERATED FROM PYTHON SOURCE LINES 68-92
-.. code-block:: default
+.. code-block:: Python
import numpy as np
@@ -123,7 +123,7 @@ original implementation.
Execution time summary:
mean (ms) median (ms) max (ms) min (ms) std (ms)
- 2.2492 2.2492 2.2492 2.2492 0.0000
+ 2.3166 2.3166 2.3166 2.3166 0.0000
@@ -137,7 +137,7 @@ utilizing the provided **MyModule** as input.
.. GENERATED FROM PYTHON SOURCE LINES 97-100
-.. code-block:: default
+.. code-block:: Python
sch = tvm.tir.Schedule(MyModule)
@@ -158,7 +158,7 @@ block **Y** and its associated loops.
.. GENERATED FROM PYTHON SOURCE LINES 105-109
-.. code-block:: default
+.. code-block:: Python
block_Y = sch.get_block("Y")
@@ -181,7 +181,7 @@ non-existence of variable ``j``.
.. GENERATED FROM PYTHON SOURCE LINES 115-118
-.. code-block:: default
+.. code-block:: Python
j0, j1 = sch.split(j, factors=[None, 8])
@@ -199,7 +199,7 @@ The outcome of the transformation can be examined, as it is retained within ``sc
.. GENERATED FROM PYTHON SOURCE LINES 120-123
-.. code-block:: default
+.. code-block:: Python
sch.mod.show()
@@ -251,7 +251,7 @@ action involves reordering these two loops.
.. GENERATED FROM PYTHON SOURCE LINES 127-132
-.. code-block:: default
+.. code-block:: Python
sch.reorder(j0, k, j1)
@@ -295,7 +295,7 @@ action involves reordering these two loops.
Execution time summary:
mean (ms) median (ms) max (ms) min (ms) std (ms)
- 0.9331 0.9331 0.9331 0.9331 0.0000
+ 0.9777 0.9777 0.9777 0.9777 0.0000
@@ -310,7 +310,7 @@ variant. First, we employ a primitive known as **reverse_compute_at** to relocat
.. GENERATED FROM PYTHON SOURCE LINES 138-143
-.. code-block:: default
+.. code-block:: Python
block_C = sch.get_block("C")
@@ -372,7 +372,7 @@ from the reduction update via the **decompose_reduction** primitive.
.. GENERATED FROM PYTHON SOURCE LINES 153-158
-.. code-block:: default
+.. code-block:: Python
sch.decompose_reduction(block_Y, k)
@@ -423,7 +423,7 @@ from the reduction update via the **decompose_reduction** primitive.
Execution time summary:
mean (ms) median (ms) max (ms) min (ms) std (ms)
- 0.3198 0.3198 0.3198 0.3198 0.0000
+ 0.3289 0.3289 0.3289 0.3289 0.0000
@@ -441,7 +441,7 @@ of the schedule by ``sch.trace``.
.. GENERATED FROM PYTHON SOURCE LINES 167-170
-.. code-block:: default
+.. code-block:: Python
sch.trace.show()
@@ -474,7 +474,7 @@ Alternatively, we can output the IRModule in conjunction with the historical tra
.. GENERATED FROM PYTHON SOURCE LINES 172-174
-.. code-block:: default
+.. code-block:: Python
sch.show()
@@ -541,14 +541,17 @@ Alternatively, we can output the IRModule in conjunction with the historical tra
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: tir_transformation.ipynb <tir_transformation.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: tir_transformation.py <tir_transformation.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: tir_transformation.ipynb <tir_transformation.ipynb>`
+ :download:`Download zipped: tir_transformation.zip <tir_transformation.zip>`
.. only:: html
diff --git a/docs/_sources/get_started/tutorials/index.rst.txt b/docs/_sources/get_started/tutorials/index.rst.txt
index d423306de0..c4347d3918 100644
--- a/docs/_sources/get_started/tutorials/index.rst.txt
+++ b/docs/_sources/get_started/tutorials/index.rst.txt
@@ -9,6 +9,7 @@ Get Started
<div class="sphx-glr-thumbnails">
+.. thumbnail-parent-div-open
.. raw:: html
@@ -17,7 +18,7 @@ Get Started
.. only:: html
.. image:: /get_started/tutorials/images/thumb/sphx_glr_ir_module_thumb.png
- :alt: IRModule
+ :alt:
:ref:`sphx_glr_get_started_tutorials_ir_module.py`
@@ -29,12 +30,12 @@ Get Started
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="This tutorial is for people who are new to Apache TVM. Taking an simple example to show how to ...">
+ <div class="sphx-glr-thumbcontainer" tooltip="This tutorial is for people who are new to Apache TVM. Taking an simple example to show how to use Apache TVM to compile a simple neural network.">
.. only:: html
.. image:: /get_started/tutorials/images/thumb/sphx_glr_quick_start_thumb.png
- :alt: Quick Start
+ :alt:
:ref:`sphx_glr_get_started_tutorials_quick_start.py`
@@ -44,6 +45,8 @@ Get Started
</div>
+.. thumbnail-parent-div-close
+
.. raw:: html
</div>
diff --git a/docs/_sources/get_started/tutorials/ir_module.rst.txt b/docs/_sources/get_started/tutorials/ir_module.rst.txt
index 23a54ff618..5551610763 100644
--- a/docs/_sources/get_started/tutorials/ir_module.rst.txt
+++ b/docs/_sources/get_started/tutorials/ir_module.rst.txt
@@ -36,7 +36,7 @@ computational graph, tensor programs, and potential calls to external libraries.
.. GENERATED FROM PYTHON SOURCE LINES 31-36
-.. code-block:: default
+.. code-block:: Python
import numpy as np
@@ -59,7 +59,7 @@ below.
.. GENERATED FROM PYTHON SOURCE LINES 41-47
-.. code-block:: default
+.. code-block:: Python
import torch
@@ -85,7 +85,7 @@ from PyTorch.
.. GENERATED FROM PYTHON SOURCE LINES 54-85
-.. code-block:: default
+.. code-block:: Python
@@ -159,7 +159,7 @@ write the IRModule directly.
.. GENERATED FROM PYTHON SOURCE LINES 90-113
-.. code-block:: default
+.. code-block:: Python
from tvm.relax.frontend import nn
@@ -226,7 +226,7 @@ parse the TVMScript to obtain an IRModule.
.. GENERATED FROM PYTHON SOURCE LINES 119-151
-.. code-block:: default
+.. code-block:: Python
from tvm.script import ir as I
@@ -300,7 +300,7 @@ An IRModule is a collection of functions, indexed by GlobalVars.
.. GENERATED FROM PYTHON SOURCE LINES 155-159
-.. code-block:: default
+.. code-block:: Python
mod = mod_from_torch
@@ -326,7 +326,7 @@ or their names
.. GENERATED FROM PYTHON SOURCE LINES 162-169
-.. code-block:: default
+.. code-block:: Python
# index by global var name
@@ -384,7 +384,7 @@ within the same module. Meanwhile, the Relax operators will be converted into ``
.. GENERATED FROM PYTHON SOURCE LINES 185-190
-.. code-block:: default
+.. code-block:: Python
mod = mod_from_torch
@@ -513,7 +513,7 @@ the global vars again.
.. GENERATED FROM PYTHON SOURCE LINES 193-196
-.. code-block:: default
+.. code-block:: Python
print(mod.get_global_vars())
@@ -558,7 +558,7 @@ The default **zero** pipeline contains very fundamental transformations, includi
.. GENERATED FROM PYTHON SOURCE LINES 219-223
-.. code-block:: default
+.. code-block:: Python
mod = relax.get_pipeline("zero")(mod)
@@ -678,7 +678,7 @@ We can deploy the IRModule on CPU by specifying the target as ``llvm``.
.. GENERATED FROM PYTHON SOURCE LINES 234-244
-.. code-block:: default
+.. code-block:: Python
exec = relax.build(mod, target="llvm")
@@ -718,7 +718,7 @@ the details of ``DLight``.
.. GENERATED FROM PYTHON SOURCE LINES 254-263
-.. code-block:: default
+.. code-block:: Python
from tvm import dlight as dl
@@ -742,7 +742,7 @@ Now we can compile the IRModule on GPU, the similar way as we did on CPU.
.. GENERATED FROM PYTHON SOURCE LINES 265-278
-.. code-block:: default
+.. code-block:: Python
exec = relax.build(gpu_mod, target="cuda")
@@ -787,14 +787,17 @@ GPU backend.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: ir_module.ipynb <ir_module.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: ir_module.py <ir_module.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: ir_module.ipynb <ir_module.ipynb>`
+ :download:`Download zipped: ir_module.zip <ir_module.zip>`
.. only:: html
diff --git a/docs/_sources/get_started/tutorials/quick_start.rst.txt b/docs/_sources/get_started/tutorials/quick_start.rst.txt
index 692a4d457b..a2a143f7e6 100644
--- a/docs/_sources/get_started/tutorials/quick_start.rst.txt
+++ b/docs/_sources/get_started/tutorials/quick_start.rst.txt
@@ -87,7 +87,7 @@ directly in this script with TVM Relax frontend, which is a similar API to PyTor
.. GENERATED FROM PYTHON SOURCE LINES 80-100
-.. code-block:: default
+.. code-block:: Python
import tvm
@@ -123,7 +123,7 @@ in TVM.
.. GENERATED FROM PYTHON SOURCE LINES 103-109
-.. code-block:: default
+.. code-block:: Python
mod, param_spec = MLPModel().export_tvm(
@@ -184,7 +184,7 @@ The pipeline encapsulates a collection of transformation that gets two goals (at
.. GENERATED FROM PYTHON SOURCE LINES 126-130
-.. code-block:: default
+.. code-block:: Python
mod = relax.get_pipeline("zero")(mod)
@@ -206,7 +206,7 @@ different devices.
.. GENERATED FROM PYTHON SOURCE LINES 135-149
-.. code-block:: default
+.. code-block:: Python
@@ -291,14 +291,17 @@ For more advanced or specific topics, please refer to the following tutorials
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: quick_start.ipynb <quick_start.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: quick_start.py <quick_start.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: quick_start.ipynb <quick_start.ipynb>`
+ :download:`Download zipped: quick_start.zip <quick_start.zip>`
.. only:: html
diff --git a/docs/_sources/get_started/tutorials/sg_execution_times.rst.txt b/docs/_sources/get_started/tutorials/sg_execution_times.rst.txt
index a183e4bdee..3064c57960 100644
--- a/docs/_sources/get_started/tutorials/sg_execution_times.rst.txt
+++ b/docs/_sources/get_started/tutorials/sg_execution_times.rst.txt
@@ -3,12 +3,38 @@
.. _sphx_glr_get_started_tutorials_sg_execution_times:
+
Computation times
=================
-**00:02.705** total execution time for **get_started_tutorials** files:
+**00:03.262** total execution time for 2 files **from get_started/tutorials**:
+
+.. container::
+
+ .. raw:: html
+
+ <style scoped>
+ <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet" />
+ <link href="https://cdn.datatables.net/1.13.6/css/dataTables.bootstrap5.min.css" rel="stylesheet" />
+ </style>
+ <script src="https://code.jquery.com/jquery-3.7.0.js"></script>
+ <script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
+ <script src="https://cdn.datatables.net/1.13.6/js/dataTables.bootstrap5.min.js"></script>
+ <script type="text/javascript" class="init">
+ $(document).ready( function () {
+ $('table.sg-datatable').DataTable({order: [[1, 'desc']]});
+ } );
+ </script>
+
+ .. list-table::
+ :header-rows: 1
+ :class: table table-striped sg-datatable
-+---------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_get_started_tutorials_ir_module.py` (``ir_module.py``) | 00:02.501 | 0.0 MB |
-+---------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_get_started_tutorials_quick_start.py` (``quick_start.py``) | 00:00.204 | 0.0 MB |
-+---------------------------------------------------------------------------+-----------+--------+
+ * - Example
+ - Time
+ - Mem (MB)
+ * - :ref:`sphx_glr_get_started_tutorials_ir_module.py` (``ir_module.py``)
+ - 00:02.979
+ - 0.0
+ * - :ref:`sphx_glr_get_started_tutorials_quick_start.py` (``quick_start.py``)
+ - 00:00.283
+ - 0.0
diff --git a/docs/_sources/how_to/compile_models/from_coreml.rst.txt b/docs/_sources/how_to/compile_models/from_coreml.rst.txt
index 59cda69c52..88189a81d1 100644
--- a/docs/_sources/how_to/compile_models/from_coreml.rst.txt
+++ b/docs/_sources/how_to/compile_models/from_coreml.rst.txt
@@ -40,7 +40,7 @@ https://github.com/apple/coremltools
.. GENERATED FROM PYTHON SOURCE LINES 36-45
-.. code-block:: default
+.. code-block:: Python
import tvm
@@ -67,7 +67,7 @@ provided by apple in this example
.. GENERATED FROM PYTHON SOURCE LINES 50-56
-.. code-block:: default
+.. code-block:: Python
model_url = "https://docs-assets.developer.apple.com/coreml/models/MobileNet.mlmodel"
model_file = "mobilenet.mlmodel"
@@ -90,7 +90,7 @@ A single cat dominates the examples!
.. GENERATED FROM PYTHON SOURCE LINES 60-67
-.. code-block:: default
+.. code-block:: Python
img_url = "https://github.com/dmlc/mxnet.js/blob/main/data/cat.png?raw=true"
img_path = download_testdata(img_url, "cat.png", module="data")
@@ -114,7 +114,7 @@ We should be familiar with the process right now.
.. GENERATED FROM PYTHON SOURCE LINES 71-80
-.. code-block:: default
+.. code-block:: Python
target = "llvm"
shape_dict = {"image": x.shape}
@@ -140,7 +140,7 @@ The process is no different from other example
.. GENERATED FROM PYTHON SOURCE LINES 84-97
-.. code-block:: default
+.. code-block:: Python
from tvm.contrib import graph_executor
@@ -170,7 +170,7 @@ Look up prediction top 1 index in 1000 class synset.
.. GENERATED FROM PYTHON SOURCE LINES 101-115
-.. code-block:: default
+.. code-block:: Python
synset_url = "".join(
[
@@ -206,14 +206,17 @@ Look up prediction top 1 index in 1000 class synset.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: from_coreml.ipynb <from_coreml.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: from_coreml.py <from_coreml.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: from_coreml.ipynb <from_coreml.ipynb>`
+ :download:`Download zipped: from_coreml.zip <from_coreml.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/compile_models/from_darknet.rst.txt b/docs/_sources/how_to/compile_models/from_darknet.rst.txt
index 9da2931043..c8a4156ea2 100644
--- a/docs/_sources/how_to/compile_models/from_darknet.rst.txt
+++ b/docs/_sources/how_to/compile_models/from_darknet.rst.txt
@@ -39,7 +39,7 @@ Please install CFFI and CV2 before executing this script
.. GENERATED FROM PYTHON SOURCE LINES 34-50
-.. code-block:: default
+.. code-block:: Python
# numpy and matplotlib
@@ -72,7 +72,7 @@ Models are: 'yolov2', 'yolov3' or 'yolov3-tiny'
.. GENERATED FROM PYTHON SOURCE LINES 54-58
-.. code-block:: default
+.. code-block:: Python
# Model name
@@ -93,7 +93,7 @@ Download cfg and weights file if first time.
.. GENERATED FROM PYTHON SOURCE LINES 62-94
-.. code-block:: default
+.. code-block:: Python
CFG_NAME = MODEL_NAME + ".cfg"
WEIGHTS_NAME = MODEL_NAME + ".weights"
@@ -148,7 +148,7 @@ compile the model
.. GENERATED FROM PYTHON SOURCE LINES 98-107
-.. code-block:: default
+.. code-block:: Python
target = tvm.target.Target("llvm", host="llvm")
dev = tvm.cpu(0)
@@ -179,7 +179,7 @@ Load a test image
.. GENERATED FROM PYTHON SOURCE LINES 110-116
-.. code-block:: default
+.. code-block:: Python
test_image = "dog.jpg"
print("Loading the test image...")
@@ -208,7 +208,7 @@ The process is no different from other examples.
.. GENERATED FROM PYTHON SOURCE LINES 120-204
-.. code-block:: default
+.. code-block:: Python
from tvm.contrib import graph_executor
@@ -318,7 +318,7 @@ The process is no different from other examples.
.. rst-class:: sphx-glr-timing
- **Total running time of the script:** ( 1 minutes 36.619 seconds)
+ **Total running time of the script:** (1 minutes 44.860 seconds)
.. _sphx_glr_download_how_to_compile_models_from_darknet.py:
@@ -327,14 +327,17 @@ The process is no different from other examples.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: from_darknet.ipynb <from_darknet.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: from_darknet.py <from_darknet.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: from_darknet.ipynb <from_darknet.ipynb>`
+ :download:`Download zipped: from_darknet.zip <from_darknet.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/compile_models/from_keras.rst.txt b/docs/_sources/how_to/compile_models/from_keras.rst.txt
index 357885aa8a..3d3f84561d 100644
--- a/docs/_sources/how_to/compile_models/from_keras.rst.txt
+++ b/docs/_sources/how_to/compile_models/from_keras.rst.txt
@@ -43,7 +43,7 @@ https://keras.io/#installation
.. GENERATED FROM PYTHON SOURCE LINES 37-46
-.. code-block:: default
+.. code-block:: Python
import tvm
@@ -69,7 +69,7 @@ We load a pretrained resnet-50 classification model provided by keras.
.. GENERATED FROM PYTHON SOURCE LINES 53-78
-.. code-block:: default
+.. code-block:: Python
if tuple(keras.__version__.split(".")) < ("2", "4", "0"):
@@ -111,7 +111,7 @@ A single cat dominates the examples!
.. GENERATED FROM PYTHON SOURCE LINES 82-96
-.. code-block:: default
+.. code-block:: Python
from PIL import Image
from matplotlib import pyplot as plt
@@ -153,7 +153,7 @@ convert the keras model(NHWC layout) to Relay format(NCHW layout).
.. GENERATED FROM PYTHON SOURCE LINES 100-114
-.. code-block:: default
+.. code-block:: Python
shape_dict = {"input_1": data.shape}
mod, params = relay.frontend.from_keras(keras_resnet50, shape_dict)
@@ -183,7 +183,7 @@ Execute on TVM
.. GENERATED FROM PYTHON SOURCE LINES 117-121
-.. code-block:: default
+.. code-block:: Python
dtype = "float32"
tvm_out = model(tvm.nd.array(data.astype(dtype)))
@@ -204,7 +204,7 @@ Look up prediction top 1 index in 1000 class synset.
.. GENERATED FROM PYTHON SOURCE LINES 125-142
-.. code-block:: default
+.. code-block:: Python
synset_url = "".join(
[
@@ -232,7 +232,7 @@ Look up prediction top 1 index in 1000 class synset.
.. code-block:: none
Relay top-1 id: 285, class name: Egyptian cat
- 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 1s 898ms/step
+ 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 1s 1s/step
Keras top-1 id: 285, class name: Egyptian cat
@@ -245,14 +245,17 @@ Look up prediction top 1 index in 1000 class synset.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: from_keras.ipynb <from_keras.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: from_keras.py <from_keras.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: from_keras.ipynb <from_keras.ipynb>`
+ :download:`Download zipped: from_keras.zip <from_keras.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/compile_models/from_oneflow.rst.txt b/docs/_sources/how_to/compile_models/from_oneflow.rst.txt
deleted file mode 100644
index 7b96c46629..0000000000
--- a/docs/_sources/how_to/compile_models/from_oneflow.rst.txt
+++ /dev/null
@@ -1,344 +0,0 @@
-
-.. DO NOT EDIT. THIS FILE WAS AUTOMATICALLY GENERATED BY
-.. TVM'S MONKEY-PATCHED VERSION OF SPHINX-GALLERY. TO MAKE
-.. CHANGES, EDIT THE SOURCE PYTHON FILE:
-.. "how_to/compile_models/from_oneflow.py"
-
-.. only:: html
-
- .. note::
- :class: sphx-glr-download-link-note
-
- This tutorial can be used interactively with Google Colab! You can also click
- :ref:`here <sphx_glr_download_how_to_compile_models_from_oneflow.py>` to run the Jupyter notebook locally.
-
- .. image:: https://raw.githubusercontent.com/tlc-pack/web-data/main/images/utilities/colab_button.svg
- :align: center
- :target: https://colab.research.google.com/github/apache/tvm-site/blob/asf-site/docs/_downloads/2e7b51cb39c472626dd3f046d9b89966/from_oneflow.ipynb
- :width: 300px
-
-.. rst-class:: sphx-glr-example-title
-
-.. _sphx_glr_how_to_compile_models_from_oneflow.py:
-
-
-Compile OneFlow Models
-======================
-**Author**: `Xiaoyu Zhang <https://github.com/BBuf/>`_
-
-This article is an introductory tutorial to deploy OneFlow models with Relay.
-
-For us to begin with, OneFlow package should be installed.
-
-A quick solution is to install via pip
-
-.. code-block:: bash
-
- %%shell
- pip install flowvision==0.1.0
- pip install -f https://release.oneflow.info oneflow==0.7.0+cpu
-
-or please refer to official site:
-https://github.com/Oneflow-Inc/oneflow
-
-Currently, TVM supports OneFlow 0.7.0. Other versions may be unstable.
-
-.. GENERATED FROM PYTHON SOURCE LINES 39-54
-
-.. code-block:: default
-
-
- import os, math
- from matplotlib import pyplot as plt
- import numpy as np
- from PIL import Image
-
- # oneflow imports
- import flowvision
- import oneflow as flow
- import oneflow.nn as nn
-
- import tvm
- from tvm import relay
- from tvm.contrib.download import download_testdata
-
-
-
-
-
-.. rst-class:: sphx-glr-script-out
-
- .. code-block:: none
-
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/oneflow/framework/dtype.py:48: DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
- Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
- oneflow.bool: np.bool,
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/flowvision/transforms/functional_pil.py:193: DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead.
- def resize(img, size, interpolation=Image.BILINEAR):
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/flowvision/transforms/functional.py:65: DeprecationWarning: NEAREST is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.NEAREST or Dither.NONE instead.
- Image.NEAREST: "nearest",
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/flowvision/transforms/functional.py:66: DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead.
- Image.BILINEAR: "bilinear",
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/flowvision/transforms/functional.py:67: DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BICUBIC instead.
- Image.BICUBIC: "bicubic",
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/flowvision/transforms/functional.py:68: DeprecationWarning: BOX is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BOX instead.
- Image.BOX: "box",
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/flowvision/transforms/functional.py:69: DeprecationWarning: HAMMING is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.HAMMING instead.
- Image.HAMMING: "hamming",
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/flowvision/transforms/functional.py:70: DeprecationWarning: LANCZOS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
- Image.LANCZOS: "lanczos",
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/flowvision/data/auto_augment.py:28: DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead.
- _RANDOM_INTERPOLATION = (Image.BILINEAR, Image.BICUBIC)
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/flowvision/data/auto_augment.py:28: DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BICUBIC instead.
- _RANDOM_INTERPOLATION = (Image.BILINEAR, Image.BICUBIC)
-
-
-
-
-.. GENERATED FROM PYTHON SOURCE LINES 58-60
-
-Load a pretrained OneFlow model and save model
-----------------------------------------------
-
-.. GENERATED FROM PYTHON SOURCE LINES 60-68
-
-.. code-block:: default
-
- model_name = "resnet18"
- model = getattr(flowvision.models, model_name)(pretrained=True)
- model = model.eval()
-
- model_dir = "resnet18_model"
- if not os.path.exists(model_dir):
- flow.save(model.state_dict(), model_dir)
-
-
-
-
-
-.. rst-class:: sphx-glr-script-out
-
- .. code-block:: none
-
- Downloading: "https://oneflow-public.oss-cn-beijing.aliyuncs.com/model_zoo/flowvision/classification/ResNet/resnet18.zip" to /workspace/.oneflow/flowvision_cache/resnet18.zip
- 0%| | 0.00/41.5M [00:00<?, ?B/s] 15%|#5 | 6.33M/41.5M [00:00<00:00, 66.3MB/s] 31%|### | 12.7M/41.5M [00:00<00:00, 65.2MB/s] 46%|####5 | 18.9M/41.5M [00:00<00:00, 47.7MB/s] 58%|#####7 | 24.0M/41.5M [00:00<00:00, 41.8MB/s] 77%|#######7 | 32.0M/41.5M [00:00<00:00, 43.7MB/s] 96%|#########6| 40.0M/41.5M [00:00<00:00, 48.5MB/s] 100%|##########| 41.5M/41.5M [00:00<00:00, 50.0MB/s]
-
-
-
-
-.. GENERATED FROM PYTHON SOURCE LINES 69-72
-
-Load a test image
------------------
-Classic cat example!
-
-.. GENERATED FROM PYTHON SOURCE LINES 72-92
-
-.. code-block:: default
-
- from PIL import Image
-
- img_url = "https://github.com/dmlc/mxnet.js/blob/main/data/cat.png?raw=true"
- img_path = download_testdata(img_url, "cat.png", module="data")
- img = Image.open(img_path).resize((224, 224))
-
- # Preprocess the image and convert to tensor
- from flowvision import transforms
-
- my_preprocess = transforms.Compose(
- [
- transforms.Resize(256),
- transforms.CenterCrop(224),
- transforms.ToTensor(),
- transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),
- ]
- )
- img = my_preprocess(img)
- img = np.expand_dims(img.numpy(), 0)
-
-
-
-
-
-
-
-
-.. GENERATED FROM PYTHON SOURCE LINES 93-96
-
-Import the graph to Relay
--------------------------
-Convert OneFlow graph to Relay graph. The input name can be arbitrary.
-
-.. GENERATED FROM PYTHON SOURCE LINES 96-111
-
-.. code-block:: default
-
- class Graph(flow.nn.Graph):
- def __init__(self, module):
- super().__init__()
- self.m = module
-
- def build(self, x):
- out = self.m(x)
- return out
-
-
- graph = Graph(model)
- _ = graph._compile(flow.randn(1, 3, 224, 224))
-
- mod, params = relay.frontend.from_oneflow(graph, model_dir)
-
-
-
-
-
-
-
-
-.. GENERATED FROM PYTHON SOURCE LINES 112-115
-
-Relay Build
------------
-Compile the graph to llvm target with given input specification.
-
-.. GENERATED FROM PYTHON SOURCE LINES 115-120
-
-.. code-block:: default
-
- target = tvm.target.Target("llvm", host="llvm")
- dev = tvm.cpu(0)
- with tvm.transform.PassContext(opt_level=3):
- lib = relay.build(mod, target=target, params=params)
-
-
-
-
-
-
-
-
-.. GENERATED FROM PYTHON SOURCE LINES 121-124
-
-Execute the portable graph on TVM
----------------------------------
-Now we can try deploying the compiled model on target.
-
-.. GENERATED FROM PYTHON SOURCE LINES 124-132
-
-.. code-block:: default
-
- target = "cuda"
- with tvm.transform.PassContext(opt_level=10):
- intrp = relay.build_module.create_executor("graph", mod, tvm.cuda(0), target)
-
- print(type(img))
- print(img.shape)
- tvm_output = intrp.evaluate()(tvm.nd.array(img.astype("float32")), **params)
-
-
-
-
-
-.. rst-class:: sphx-glr-script-out
-
- .. code-block:: none
-
- <class 'numpy.ndarray'>
- (1, 3, 224, 224)
-
-
-
-
-.. GENERATED FROM PYTHON SOURCE LINES 133-136
-
-Look up synset name
--------------------
-Look up prediction top 1 index in 1000 class synset.
-
-.. GENERATED FROM PYTHON SOURCE LINES 136-183
-
-.. code-block:: default
-
- synset_url = "".join(
- [
- "https://raw.githubusercontent.com/Cadene/",
- "pretrained-models.pytorch/master/data/",
- "imagenet_synsets.txt",
- ]
- )
- synset_name = "imagenet_synsets.txt"
- synset_path = download_testdata(synset_url, synset_name, module="data")
- with open(synset_path) as f:
- synsets = f.readlines()
-
- synsets = [x.strip() for x in synsets]
- splits = [line.split(" ") for line in synsets]
- key_to_classname = {spl[0]: " ".join(spl[1:]) for spl in splits}
-
- class_url = "".join(
- [
- "https://raw.githubusercontent.com/Cadene/",
- "pretrained-models.pytorch/master/data/",
- "imagenet_classes.txt",
- ]
- )
- class_name = "imagenet_classes.txt"
- class_path = download_testdata(class_url, class_name, module="data")
- with open(class_path) as f:
- class_id_to_key = f.readlines()
-
- class_id_to_key = [x.strip() for x in class_id_to_key]
-
- # Get top-1 result for TVM
- top1_tvm = np.argmax(tvm_output.numpy()[0])
- tvm_class_key = class_id_to_key[top1_tvm]
-
- # Convert input to OneFlow variable and get OneFlow result for comparison
- with flow.no_grad():
- torch_img = flow.from_numpy(img)
- output = model(torch_img)
-
- # Get top-1 result for OneFlow
- top_oneflow = np.argmax(output.numpy())
- oneflow_class_key = class_id_to_key[top_oneflow]
-
- print("Relay top-1 id: {}, class name: {}".format(top1_tvm, key_to_classname[tvm_class_key]))
- print(
- "OneFlow top-1 id: {}, class name: {}".format(top_oneflow, key_to_classname[oneflow_class_key])
- )
-
-
-
-
-.. rst-class:: sphx-glr-script-out
-
- .. code-block:: none
-
- Relay top-1 id: 281, class name: tabby, tabby cat
- OneFlow top-1 id: 281, class name: tabby, tabby cat
-
-
-
-
-
-.. _sphx_glr_download_how_to_compile_models_from_oneflow.py:
-
-.. only:: html
-
- .. container:: sphx-glr-footer sphx-glr-footer-example
-
-
- .. container:: sphx-glr-download sphx-glr-download-python
-
- :download:`Download Python source code: from_oneflow.py <from_oneflow.py>`
-
- .. container:: sphx-glr-download sphx-glr-download-jupyter
-
- :download:`Download Jupyter notebook: from_oneflow.ipynb <from_oneflow.ipynb>`
-
-
-.. only:: html
-
- .. rst-class:: sphx-glr-signature
-
- `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_
diff --git a/docs/_sources/how_to/compile_models/from_onnx.rst.txt b/docs/_sources/how_to/compile_models/from_onnx.rst.txt
index 7b01838eb1..5b594e68a4 100644
--- a/docs/_sources/how_to/compile_models/from_onnx.rst.txt
+++ b/docs/_sources/how_to/compile_models/from_onnx.rst.txt
@@ -40,7 +40,7 @@ https://github.com/onnx/onnx
.. GENERATED FROM PYTHON SOURCE LINES 34-42
-.. code-block:: default
+.. code-block:: Python
import onnx
@@ -67,7 +67,7 @@ we skip the pytorch model construction part, and download the saved onnx model
.. GENERATED FROM PYTHON SOURCE LINES 48-60
-.. code-block:: default
+.. code-block:: Python
model_url = "".join(
[
@@ -100,7 +100,7 @@ luminance (`Y`) channel.
.. GENERATED FROM PYTHON SOURCE LINES 68-77
-.. code-block:: default
+.. code-block:: Python
from PIL import Image
@@ -133,7 +133,7 @@ provides a static definition of the input size.
.. GENERATED FROM PYTHON SOURCE LINES 88-99
-.. code-block:: default
+.. code-block:: Python
target = "llvm"
@@ -169,7 +169,7 @@ Execute on TVM
.. GENERATED FROM PYTHON SOURCE LINES 102-105
-.. code-block:: default
+.. code-block:: Python
dtype = "float32"
tvm_output = executor(tvm.nd.array(x.astype(dtype))).numpy()
@@ -191,7 +191,7 @@ bicubic algorithm. The image is then recombined and converted back to `RGB`.
.. GENERATED FROM PYTHON SOURCE LINES 111-123
-.. code-block:: default
+.. code-block:: Python
from matplotlib import pyplot as plt
@@ -248,14 +248,17 @@ will still be valid.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: from_onnx.ipynb <from_onnx.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: from_onnx.py <from_onnx.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: from_onnx.ipynb <from_onnx.ipynb>`
+ :download:`Download zipped: from_onnx.zip <from_onnx.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/compile_models/from_paddle.rst.txt b/docs/_sources/how_to/compile_models/from_paddle.rst.txt
index d985626b88..17dd734d12 100644
--- a/docs/_sources/how_to/compile_models/from_paddle.rst.txt
+++ b/docs/_sources/how_to/compile_models/from_paddle.rst.txt
@@ -39,7 +39,7 @@ https://www.paddlepaddle.org.cn/install/quick?docurl=/documentation/docs/zh/inst
.. GENERATED FROM PYTHON SOURCE LINES 33-41
-.. code-block:: default
+.. code-block:: Python
import tarfile
@@ -64,7 +64,7 @@ We load a pretrained ResNet50 provided by PaddlePaddle.
.. GENERATED FROM PYTHON SOURCE LINES 45-55
-.. code-block:: default
+.. code-block:: Python
url = "https://bj.bcebos.com/x2paddle/models/paddle_resnet50.tar"
model_path = download_testdata(url, "paddle_resnet50.tar", module="model")
@@ -91,7 +91,7 @@ A single cat dominates the examples!
.. GENERATED FROM PYTHON SOURCE LINES 59-80
-.. code-block:: default
+.. code-block:: Python
from PIL import Image
@@ -128,7 +128,7 @@ Compile the model with relay
.. GENERATED FROM PYTHON SOURCE LINES 83-93
-.. code-block:: default
+.. code-block:: Python
target = "llvm"
@@ -154,7 +154,7 @@ Execute on TVM
.. GENERATED FROM PYTHON SOURCE LINES 96-99
-.. code-block:: default
+.. code-block:: Python
dtype = "float32"
tvm_output = executor(tvm.nd.array(img.astype(dtype))).numpy()
@@ -174,7 +174,7 @@ Look up prediction top 1 index in 1000 class synset.
.. GENERATED FROM PYTHON SOURCE LINES 103-119
-.. code-block:: default
+.. code-block:: Python
synset_url = "".join(
@@ -209,7 +209,7 @@ Look up prediction top 1 index in 1000 class synset.
.. rst-class:: sphx-glr-timing
- **Total running time of the script:** ( 1 minutes 3.720 seconds)
+ **Total running time of the script:** (1 minutes 13.707 seconds)
.. _sphx_glr_download_how_to_compile_models_from_paddle.py:
@@ -218,14 +218,17 @@ Look up prediction top 1 index in 1000 class synset.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: from_paddle.ipynb <from_paddle.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: from_paddle.py <from_paddle.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: from_paddle.ipynb <from_paddle.ipynb>`
+ :download:`Download zipped: from_paddle.zip <from_paddle.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/compile_models/from_pytorch.rst.txt b/docs/_sources/how_to/compile_models/from_pytorch.rst.txt
index 4ac1295509..2435470e4b 100644
--- a/docs/_sources/how_to/compile_models/from_pytorch.rst.txt
+++ b/docs/_sources/how_to/compile_models/from_pytorch.rst.txt
@@ -49,7 +49,7 @@ be unstable.
.. GENERATED FROM PYTHON SOURCE LINES 43-55
-.. code-block:: default
+.. code-block:: Python
import tvm
@@ -77,7 +77,7 @@ Load a pretrained PyTorch model
.. GENERATED FROM PYTHON SOURCE LINES 58-67
-.. code-block:: default
+.. code-block:: Python
model_name = "resnet18"
model = getattr(torchvision.models, model_name)(pretrained=True)
@@ -96,12 +96,12 @@ Load a pretrained PyTorch model
.. code-block:: none
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.
+ /venv/apache-tvm-py3.9/lib/python3.9/site-packages/torchvision/models/_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.
warnings.warn(
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=ResNet18_Weights.IMAGENET1K_V1`. You can also use `weights=ResNet18_Weights.DEFAULT` to get the most up-to-date weights.
+ /venv/apache-tvm-py3.9/lib/python3.9/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=ResNet18_Weights.IMAGENET1K_V1`. You can also use `weights=ResNet18_Weights.DEFAULT` to get the most up-to-date weights.
warnings.warn(msg)
Downloading: "https://download.pytorch.org/models/resnet18-f37072fd.pth" to /workspace/.cache/torch/hub/checkpoints/resnet18-f37072fd.pth
- 0%| | 0.00/44.7M [00:00<?, ?B/s] 2%|2 | 1.00M/44.7M [00:00<00:04, 10.2MB/s] 17%|#7 | 7.75M/44.7M [00:00<00:00, 45.4MB/s] 34%|###3 | 15.1M/44.7M [00:00<00:00, 59.4MB/s] 50%|##### | 22.4M/44.7M [00:00<00:00, 65.7MB/s] 66%|######6 | 29.6M/44.7M [00:00<00:00, 69.4MB/s] 83%|########2 | 37.0M/44.7M [00:00<00:00, 71.8MB/s] 100%|#########9| 44.6M/44.7M [00:00<00:00, 74.0MB/s] 100%|##########| 44.7M/44.7M [00:00<00:00, 66.0MB/s]
+ 0%| | 0.00/44.7M [00:00<?, ?B/s] 15%|█▍ | 6.50M/44.7M [00:00<00:00, 67.9MB/s] 30%|██▉ | 13.2M/44.7M [00:00<00:00, 69.4MB/s] 46%|████▋ | 20.8M/44.7M [00:00<00:00, 73.6MB/s] 62%|██████▏ | 27.9M/44.7M [00:00<00:00, 73.9MB/s] 78%|███████▊ | 35.0M/44.7M [00:00<00:00, 73.2MB/s] 94%|█████████▍| 42.0M/44.7M [00:00<00:00, 62.9MB/s] 100%|██████████| 44.7M/44.7M [00:00<00:00, 67.9MB/s]
@@ -114,7 +114,7 @@ Classic cat example!
.. GENERATED FROM PYTHON SOURCE LINES 71-91
-.. code-block:: default
+.. code-block:: Python
from PIL import Image
@@ -151,7 +151,7 @@ Convert PyTorch graph to Relay graph. The input name can be arbitrary.
.. GENERATED FROM PYTHON SOURCE LINES 95-99
-.. code-block:: default
+.. code-block:: Python
input_name = "input0"
shape_list = [(input_name, img.shape)]
@@ -172,7 +172,7 @@ Compile the graph to llvm target with given input specification.
.. GENERATED FROM PYTHON SOURCE LINES 103-108
-.. code-block:: default
+.. code-block:: Python
target = tvm.target.Target("llvm", host="llvm")
dev = tvm.cpu(0)
@@ -194,7 +194,7 @@ Now we can try deploying the compiled model on target.
.. GENERATED FROM PYTHON SOURCE LINES 112-123
-.. code-block:: default
+.. code-block:: Python
from tvm.contrib import graph_executor
@@ -222,7 +222,7 @@ Look up prediction top 1 index in 1000 class synset.
.. GENERATED FROM PYTHON SOURCE LINES 127-172
-.. code-block:: default
+.. code-block:: Python
synset_url = "".join(
[
@@ -290,14 +290,17 @@ Look up prediction top 1 index in 1000 class synset.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: from_pytorch.ipynb <from_pytorch.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: from_pytorch.py <from_pytorch.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: from_pytorch.ipynb <from_pytorch.ipynb>`
+ :download:`Download zipped: from_pytorch.zip <from_pytorch.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/compile_models/from_tensorflow.rst.txt b/docs/_sources/how_to/compile_models/from_tensorflow.rst.txt
index af64c3ae40..f5bdabd62e 100644
--- a/docs/_sources/how_to/compile_models/from_tensorflow.rst.txt
+++ b/docs/_sources/how_to/compile_models/from_tensorflow.rst.txt
@@ -37,7 +37,7 @@ Please refer to https://www.tensorflow.org/install
.. GENERATED FROM PYTHON SOURCE LINES 31-74
-.. code-block:: default
+.. code-block:: Python
# tvm, relay
@@ -98,7 +98,7 @@ from tensorflow.
.. GENERATED FROM PYTHON SOURCE LINES 79-100
-.. code-block:: default
+.. code-block:: Python
model_name = "classify_image_graph_def-with_shapes.pb"
@@ -136,7 +136,7 @@ Download files listed above.
.. GENERATED FROM PYTHON SOURCE LINES 104-111
-.. code-block:: default
+.. code-block:: Python
from tvm.contrib.download import download_testdata
@@ -160,7 +160,7 @@ Creates tensorflow graph definition from protobuf file.
.. GENERATED FROM PYTHON SOURCE LINES 115-126
-.. code-block:: default
+.. code-block:: Python
with tf_compat_v1.gfile.GFile(model_path, "rb") as f:
@@ -193,7 +193,7 @@ Decode image
.. GENERATED FROM PYTHON SOURCE LINES 135-142
-.. code-block:: default
+.. code-block:: Python
from PIL import Image
@@ -221,7 +221,7 @@ Results:
.. GENERATED FROM PYTHON SOURCE LINES 150-155
-.. code-block:: default
+.. code-block:: Python
shape_dict = {"DecodeJpeg/contents": x.shape}
dtype_dict = {"DecodeJpeg/contents": "uint8"}
@@ -258,7 +258,7 @@ Results:
.. GENERATED FROM PYTHON SOURCE LINES 164-168
-.. code-block:: default
+.. code-block:: Python
with tvm.transform.PassContext(opt_level=3):
@@ -279,7 +279,7 @@ Now we can try deploying the compiled model on target.
.. GENERATED FROM PYTHON SOURCE LINES 172-184
-.. code-block:: default
+.. code-block:: Python
from tvm.contrib import graph_executor
@@ -308,7 +308,7 @@ Process the model output to human readable text for InceptionV1.
.. GENERATED FROM PYTHON SOURCE LINES 188-201
-.. code-block:: default
+.. code-block:: Python
predictions = tvm_output.numpy()
predictions = np.squeeze(predictions)
@@ -348,7 +348,7 @@ Run the corresponding model on tensorflow
.. GENERATED FROM PYTHON SOURCE LINES 205-258
-.. code-block:: default
+.. code-block:: Python
@@ -424,7 +424,7 @@ Run the corresponding model on tensorflow
.. rst-class:: sphx-glr-timing
- **Total running time of the script:** ( 1 minutes 31.106 seconds)
+ **Total running time of the script:** (1 minutes 46.340 seconds)
.. _sphx_glr_download_how_to_compile_models_from_tensorflow.py:
@@ -433,14 +433,17 @@ Run the corresponding model on tensorflow
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: from_tensorflow.ipynb <from_tensorflow.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: from_tensorflow.py <from_tensorflow.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: from_tensorflow.ipynb <from_tensorflow.ipynb>`
+ :download:`Download zipped: from_tensorflow.zip <from_tensorflow.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/compile_models/from_tflite.rst.txt b/docs/_sources/how_to/compile_models/from_tflite.rst.txt
index a13bf64dca..0d0e770c51 100644
--- a/docs/_sources/how_to/compile_models/from_tflite.rst.txt
+++ b/docs/_sources/how_to/compile_models/from_tflite.rst.txt
@@ -65,7 +65,7 @@ Utils for downloading and extracting zip files
.. GENERATED FROM PYTHON SOURCE LINES 58-74
-.. code-block:: default
+.. code-block:: Python
import os
@@ -98,7 +98,7 @@ Load mobilenet V1 TFLite model provided by Google
.. GENERATED FROM PYTHON SOURCE LINES 78-101
-.. code-block:: default
+.. code-block:: Python
from tvm.contrib.download import download_testdata
@@ -138,7 +138,7 @@ A single cat dominates the examples!
.. GENERATED FROM PYTHON SOURCE LINES 105-126
-.. code-block:: default
+.. code-block:: Python
from PIL import Image
from matplotlib import pyplot as plt
@@ -186,7 +186,7 @@ Compile the model with relay
.. GENERATED FROM PYTHON SOURCE LINES 129-147
-.. code-block:: default
+.. code-block:: Python
# TFLite input tensor name, shape and type
@@ -220,7 +220,7 @@ Execute on TVM
.. GENERATED FROM PYTHON SOURCE LINES 150-166
-.. code-block:: default
+.. code-block:: Python
import tvm
from tvm import te
@@ -252,7 +252,7 @@ Display results
.. GENERATED FROM PYTHON SOURCE LINES 169-194
-.. code-block:: default
+.. code-block:: Python
# Load label file
@@ -300,14 +300,17 @@ Display results
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: from_tflite.ipynb <from_tflite.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: from_tflite.py <from_tflite.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: from_tflite.ipynb <from_tflite.ipynb>`
+ :download:`Download zipped: from_tflite.zip <from_tflite.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/compile_models/index.rst.txt b/docs/_sources/how_to/compile_models/index.rst.txt
index 995dde51ec..90042070bb 100644
--- a/docs/_sources/how_to/compile_models/index.rst.txt
+++ b/docs/_sources/how_to/compile_models/index.rst.txt
@@ -14,6 +14,7 @@ formats. These how-tos demostrate how to import models using the Python API.
<div class="sphx-glr-thumbnails">
+.. thumbnail-parent-div-open
.. raw:: html
@@ -22,7 +23,7 @@ formats. These how-tos demostrate how to import models using the Python API.
.. only:: html
.. image:: /how_to/compile_models/images/thumb/sphx_glr_from_pytorch_thumb.png
- :alt: Compile PyTorch Models
+ :alt:
:ref:`sphx_glr_how_to_compile_models_from_pytorch.py`
@@ -39,7 +40,7 @@ formats. These how-tos demostrate how to import models using the Python API.
.. only:: html
.. image:: /how_to/compile_models/images/thumb/sphx_glr_from_tensorflow_thumb.png
- :alt: Compile Tensorflow Models
+ :alt:
:ref:`sphx_glr_how_to_compile_models_from_tensorflow.py`
@@ -56,7 +57,7 @@ formats. These how-tos demostrate how to import models using the Python API.
.. only:: html
.. image:: /how_to/compile_models/images/thumb/sphx_glr_from_onnx_thumb.png
- :alt: Compile ONNX Models
+ :alt:
:ref:`sphx_glr_how_to_compile_models_from_onnx.py`
@@ -73,7 +74,7 @@ formats. These how-tos demostrate how to import models using the Python API.
.. only:: html
.. image:: /how_to/compile_models/images/thumb/sphx_glr_from_keras_thumb.png
- :alt: Compile Keras Models
+ :alt:
:ref:`sphx_glr_how_to_compile_models_from_keras.py`
@@ -90,7 +91,7 @@ formats. These how-tos demostrate how to import models using the Python API.
.. only:: html
.. image:: /how_to/compile_models/images/thumb/sphx_glr_from_tflite_thumb.png
- :alt: Compile TFLite Models
+ :alt:
:ref:`sphx_glr_how_to_compile_models_from_tflite.py`
@@ -107,7 +108,7 @@ formats. These how-tos demostrate how to import models using the Python API.
.. only:: html
.. image:: /how_to/compile_models/images/thumb/sphx_glr_from_coreml_thumb.png
- :alt: Compile CoreML Models
+ :alt:
:ref:`sphx_glr_how_to_compile_models_from_coreml.py`
@@ -119,12 +120,12 @@ formats. These how-tos demostrate how to import models using the Python API.
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="This article is an introductory tutorial to deploy darknet models with TVM. All the required mo...">
+ <div class="sphx-glr-thumbcontainer" tooltip="This article is an introductory tutorial to deploy darknet models with TVM. All the required models and libraries will be downloaded from the internet by the script. This script runs the YOLO-V2 and YOLO-V3 Model with the bounding boxes Darknet parsing have dependancy with CFFI and CV2 library Please install CFFI and CV2 before executing this script">
.. only:: html
.. image:: /how_to/compile_models/images/thumb/sphx_glr_from_darknet_thumb.png
- :alt: Compile YOLO-V2 and YOLO-V3 in DarkNet Models
+ :alt:
:ref:`sphx_glr_how_to_compile_models_from_darknet.py`
@@ -136,12 +137,12 @@ formats. These how-tos demostrate how to import models using the Python API.
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="This article is an introductory tutorial to deploy PaddlePaddle models with Relay. To begin, we...">
+ <div class="sphx-glr-thumbcontainer" tooltip="This article is an introductory tutorial to deploy PaddlePaddle models with Relay. To begin, we'll install PaddlePaddle>=2.1.3:">
.. only:: html
.. image:: /how_to/compile_models/images/thumb/sphx_glr_from_paddle_thumb.png
- :alt: Compile PaddlePaddle Models
+ :alt:
:ref:`sphx_glr_how_to_compile_models_from_paddle.py`
@@ -151,22 +152,7 @@ formats. These how-tos demostrate how to import models using the Python API.
</div>
-.. raw:: html
-
- <div class="sphx-glr-thumbcontainer" tooltip="This article is an introductory tutorial to deploy OneFlow models with Relay.">
-
-.. only:: html
-
- .. image:: /how_to/compile_models/images/thumb/sphx_glr_from_oneflow_thumb.png
- :alt: Compile OneFlow Models
-
- :ref:`sphx_glr_how_to_compile_models_from_oneflow.py`
-
-.. raw:: html
-
- <div class="sphx-glr-thumbnail-title">Compile OneFlow Models</div>
- </div>
-
+.. thumbnail-parent-div-close
.. raw:: html
@@ -184,7 +170,6 @@ formats. These how-tos demostrate how to import models using the Python API.
/how_to/compile_models/from_coreml
/how_to/compile_models/from_darknet
/how_to/compile_models/from_paddle
- /how_to/compile_models/from_oneflow
diff --git a/docs/_sources/how_to/compile_models/sg_execution_times.rst.txt b/docs/_sources/how_to/compile_models/sg_execution_times.rst.txt
index 84bbccd066..db10fd8a2c 100644
--- a/docs/_sources/how_to/compile_models/sg_execution_times.rst.txt
+++ b/docs/_sources/how_to/compile_models/sg_execution_times.rst.txt
@@ -3,26 +3,56 @@
.. _sphx_glr_how_to_compile_models_sg_execution_times:
+
Computation times
=================
-**06:44.601** total execution time for **how_to_compile_models** files:
-
-+-----------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_compile_models_from_darknet.py` (``from_darknet.py``) | 01:36.619 | 0.0 MB |
-+-----------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_compile_models_from_tensorflow.py` (``from_tensorflow.py``) | 01:31.106 | 0.0 MB |
-+-----------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_compile_models_from_paddle.py` (``from_paddle.py``) | 01:03.720 | 0.0 MB |
-+-----------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_compile_models_from_oneflow.py` (``from_oneflow.py``) | 00:43.371 | 0.0 MB |
-+-----------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_compile_models_from_coreml.py` (``from_coreml.py``) | 00:40.359 | 0.0 MB |
-+-----------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_compile_models_from_pytorch.py` (``from_pytorch.py``) | 00:28.822 | 0.0 MB |
-+-----------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_compile_models_from_keras.py` (``from_keras.py``) | 00:25.918 | 0.0 MB |
-+-----------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_compile_models_from_tflite.py` (``from_tflite.py``) | 00:11.799 | 0.0 MB |
-+-----------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_compile_models_from_onnx.py` (``from_onnx.py``) | 00:02.888 | 0.0 MB |
-+-----------------------------------------------------------------------------------+-----------+--------+
+**06:50.467** total execution time for 8 files **from how_to/compile_models**:
+
+.. container::
+
+ .. raw:: html
+
+ <style scoped>
+ <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet" />
+ <link href="https://cdn.datatables.net/1.13.6/css/dataTables.bootstrap5.min.css" rel="stylesheet" />
+ </style>
+ <script src="https://code.jquery.com/jquery-3.7.0.js"></script>
+ <script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
+ <script src="https://cdn.datatables.net/1.13.6/js/dataTables.bootstrap5.min.js"></script>
+ <script type="text/javascript" class="init">
+ $(document).ready( function () {
+ $('table.sg-datatable').DataTable({order: [[1, 'desc']]});
+ } );
+ </script>
+
+ .. list-table::
+ :header-rows: 1
+ :class: table table-striped sg-datatable
+
+ * - Example
+ - Time
+ - Mem (MB)
+ * - :ref:`sphx_glr_how_to_compile_models_from_tensorflow.py` (``from_tensorflow.py``)
+ - 01:46.340
+ - 0.0
+ * - :ref:`sphx_glr_how_to_compile_models_from_darknet.py` (``from_darknet.py``)
+ - 01:44.860
+ - 0.0
+ * - :ref:`sphx_glr_how_to_compile_models_from_paddle.py` (``from_paddle.py``)
+ - 01:13.707
+ - 0.0
+ * - :ref:`sphx_glr_how_to_compile_models_from_coreml.py` (``from_coreml.py``)
+ - 00:47.238
+ - 0.0
+ * - :ref:`sphx_glr_how_to_compile_models_from_pytorch.py` (``from_pytorch.py``)
+ - 00:32.273
+ - 0.0
+ * - :ref:`sphx_glr_how_to_compile_models_from_keras.py` (``from_keras.py``)
+ - 00:30.347
+ - 0.0
+ * - :ref:`sphx_glr_how_to_compile_models_from_tflite.py` (``from_tflite.py``)
+ - 00:12.541
+ - 0.0
+ * - :ref:`sphx_glr_how_to_compile_models_from_onnx.py` (``from_onnx.py``)
+ - 00:03.161
+ - 0.0
diff --git a/docs/_sources/how_to/deploy_models/deploy_model_on_adreno.rst.txt b/docs/_sources/how_to/deploy_models/deploy_model_on_adreno.rst.txt
index 4762dc8d1c..9a041e54fd 100644
--- a/docs/_sources/how_to/deploy_models/deploy_model_on_adreno.rst.txt
+++ b/docs/_sources/how_to/deploy_models/deploy_model_on_adreno.rst.txt
@@ -134,7 +134,7 @@ Configuration
.. GENERATED FROM PYTHON SOURCE LINES 127-178
-.. code-block:: default
+.. code-block:: Python
import os
@@ -202,7 +202,7 @@ Get resnet18 from torchvision models
.. GENERATED FROM PYTHON SOURCE LINES 182-191
-.. code-block:: default
+.. code-block:: Python
model_name = "resnet18"
model = getattr(torchvision.models, model_name)(pretrained=True)
@@ -221,9 +221,9 @@ Get resnet18 from torchvision models
.. code-block:: none
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.
+ /venv/apache-tvm-py3.9/lib/python3.9/site-packages/torchvision/models/_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.
warnings.warn(
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=ResNet18_Weights.IMAGENET1K_V1`. You can also use `weights=ResNet18_Weights.DEFAULT` to get the most up-to-date weights.
+ /venv/apache-tvm-py3.9/lib/python3.9/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=ResNet18_Weights.IMAGENET1K_V1`. You can also use `weights=ResNet18_Weights.DEFAULT` to get the most up-to-date weights.
warnings.warn(msg)
@@ -237,7 +237,7 @@ As an example we would use classical cat image from ImageNet
.. GENERATED FROM PYTHON SOURCE LINES 195-221
-.. code-block:: default
+.. code-block:: Python
from PIL import Image
@@ -287,7 +287,7 @@ Input name can be arbitrary
.. GENERATED FROM PYTHON SOURCE LINES 227-232
-.. code-block:: default
+.. code-block:: Python
input_name = "input0"
shape_list = [(input_name, img.shape)]
@@ -308,7 +308,7 @@ Precisions
.. GENERATED FROM PYTHON SOURCE LINES 235-260
-.. code-block:: default
+.. code-block:: Python
# Adreno devices are efficient with float16 compared to float32
@@ -355,7 +355,7 @@ Prepare TVM Target
.. GENERATED FROM PYTHON SOURCE LINES 268-280
-.. code-block:: default
+.. code-block:: Python
# This generated example running on our x86 server for demonstration.
@@ -384,7 +384,7 @@ The below few instructions can auto tune the relay module with xgboost being the
.. GENERATED FROM PYTHON SOURCE LINES 284-377
-.. code-block:: default
+.. code-block:: Python
# Auto Tuning process involces stages of extracting the tasks, defining tuning congiguration and
@@ -495,7 +495,7 @@ by using OpenCLML proprietory operator library.
.. GENERATED FROM PYTHON SOURCE LINES 382-388
-.. code-block:: default
+.. code-block:: Python
# By default :code:`enable_clml` is set to False in above configuration section.
@@ -518,7 +518,7 @@ Use tuning cache if exists.
.. GENERATED FROM PYTHON SOURCE LINES 392-400
-.. code-block:: default
+.. code-block:: Python
if os.path.exists(tune_log):
with autotvm.apply_history_best(tune_log):
@@ -544,7 +544,7 @@ machine to the remote Adreno device
.. GENERATED FROM PYTHON SOURCE LINES 405-429
-.. code-block:: default
+.. code-block:: Python
if local_demo:
remote = rpc.LocalSession()
@@ -585,7 +585,7 @@ We now can set inputs, infer our model and get predictions as output
.. GENERATED FROM PYTHON SOURCE LINES 433-437
-.. code-block:: default
+.. code-block:: Python
m.set_input(input_name, tvm.nd.array(img.astype("float32")))
m.run()
@@ -607,7 +607,7 @@ well as provides information about the model's performance
.. GENERATED FROM PYTHON SOURCE LINES 442-474
-.. code-block:: default
+.. code-block:: Python
from os.path import join, isfile
from matplotlib import pyplot as plt
@@ -664,7 +664,7 @@ well as provides information about the model's performance
Evaluate inference time cost...
Execution time summary:
mean (ms) median (ms) max (ms) min (ms) std (ms)
- 3991.2290 3990.5781 3998.2903 3988.2808 2.8142
+ 4145.2366 4145.0039 4152.0037 4141.2334 3.2930
@@ -672,7 +672,7 @@ well as provides information about the model's performance
.. rst-class:: sphx-glr-timing
- **Total running time of the script:** ( 1 minutes 19.213 seconds)
+ **Total running time of the script:** (1 minutes 25.280 seconds)
.. _sphx_glr_download_how_to_deploy_models_deploy_model_on_adreno.py:
@@ -681,14 +681,17 @@ well as provides information about the model's performance
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: deploy_model_on_adreno.ipynb <deploy_model_on_adreno.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: deploy_model_on_adreno.py <deploy_model_on_adreno.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: deploy_model_on_adreno.ipynb <deploy_model_on_adreno.ipynb>`
+ :download:`Download zipped: deploy_model_on_adreno.zip <deploy_model_on_adreno.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/deploy_models/deploy_model_on_adreno_tvmc.rst.txt b/docs/_sources/how_to/deploy_models/deploy_model_on_adreno_tvmc.rst.txt
index 1632311af9..f294197f36 100644
--- a/docs/_sources/how_to/deploy_models/deploy_model_on_adreno_tvmc.rst.txt
+++ b/docs/_sources/how_to/deploy_models/deploy_model_on_adreno_tvmc.rst.txt
@@ -37,7 +37,7 @@ See the following instructions on how to build it and setup RPC environment.
.. GENERATED FROM PYTHON SOURCE LINES 33-42
-.. code-block:: default
+.. code-block:: Python
import os
@@ -68,7 +68,7 @@ to run this tutorial with a real device over rpc.
.. GENERATED FROM PYTHON SOURCE LINES 51-73
-.. code-block:: default
+.. code-block:: Python
local_demo = True
@@ -106,7 +106,7 @@ Make a PyTorch Resnet50 Model
.. GENERATED FROM PYTHON SOURCE LINES 76-97
-.. code-block:: default
+.. code-block:: Python
import torch
@@ -137,12 +137,12 @@ Make a PyTorch Resnet50 Model
.. code-block:: none
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.
+ /venv/apache-tvm-py3.9/lib/python3.9/site-packages/torchvision/models/_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.
warnings.warn(
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=ResNet50_Weights.IMAGENET1K_V1`. You can also use `weights=ResNet50_Weights.DEFAULT` to get the most up-to-date weights.
+ /venv/apache-tvm-py3.9/lib/python3.9/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=ResNet50_Weights.IMAGENET1K_V1`. You can also use `weights=ResNet50_Weights.DEFAULT` to get the most up-to-date weights.
warnings.warn(msg)
Downloading: "https://download.pytorch.org/models/resnet50-0676ba61.pth" to /workspace/.cache/torch/hub/checkpoints/resnet50-0676ba61.pth
- 0%| | 0.00/97.8M [00:00<?, ?B/s] 11%|#1 | 11.0M/97.8M [00:00<00:00, 115MB/s] 30%|### | 29.5M/97.8M [00:00<00:00, 161MB/s] 49%|####9 | 48.4M/97.8M [00:00<00:00, 177MB/s] 69%|######8 | 67.4M/97.8M [00:00<00:00, 186MB/s] 88%|########8 | 86.4M/97.8M [00:00<00:00, 190MB/s] 100%|##########| 97.8M/97.8M [00:00<00:00, 182MB/s]
+ 0%| | 0.00/97.8M [00:00<?, ?B/s] 10%|█ | 9.88M/97.8M [00:00<00:00, 103MB/s] 21%|██ | 20.5M/97.8M [00:00<00:00, 108MB/s] 43%|████▎ | 42.0M/97.8M [00:00<00:00, 161MB/s] 65%|██████▍ | 63.4M/97.8M [00:00<00:00, 186MB/s] 87%|████████▋ | 84.8M/97.8M [00:00<00:00, 199MB/s] 100%|██████████| 97.8M/97.8M [00:00<00:00, 182MB/s]
@@ -156,7 +156,7 @@ tvmc.load supports models from any framework (like tensorflow saves_model, onnx,
.. GENERATED FROM PYTHON SOURCE LINES 102-112
-.. code-block:: default
+.. code-block:: Python
input_shape = (1, 3, 224, 224) # Batch size, channels, height, width
@@ -536,7 +536,7 @@ Tuning required RPC setup and please refer to
.. GENERATED FROM PYTHON SOURCE LINES 118-146
-.. code-block:: default
+.. code-block:: Python
rpc_tracker_host = os.environ.get("TVM_TRACKER_HOST", "127.0.0.1")
@@ -581,7 +581,7 @@ Compilation to produce tvm artifacts
.. GENERATED FROM PYTHON SOURCE LINES 150-192
-.. code-block:: default
+.. code-block:: Python
# This generated example running on our x86 server for demonstration.
@@ -641,7 +641,7 @@ Let tvmc fill inputs using random
.. GENERATED FROM PYTHON SOURCE LINES 197-213
-.. code-block:: default
+.. code-block:: Python
# Run on RPC setup
@@ -677,7 +677,7 @@ Let tvmc fill inputs using random
.. rst-class:: sphx-glr-timing
- **Total running time of the script:** ( 1 minutes 3.473 seconds)
+ **Total running time of the script:** (1 minutes 14.549 seconds)
.. _sphx_glr_download_how_to_deploy_models_deploy_model_on_adreno_tvmc.py:
@@ -686,14 +686,17 @@ Let tvmc fill inputs using random
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: deploy_model_on_adreno_tvmc.ipynb <deploy_model_on_adreno_tvmc.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: deploy_model_on_adreno_tvmc.py <deploy_model_on_adreno_tvmc.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: deploy_model_on_adreno_tvmc.ipynb <deploy_model_on_adreno_tvmc.ipynb>`
+ :download:`Download zipped: deploy_model_on_adreno_tvmc.zip <deploy_model_on_adreno_tvmc.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/deploy_models/deploy_model_on_android.rst.txt b/docs/_sources/how_to/deploy_models/deploy_model_on_android.rst.txt
index 37e6f96efb..ed43446e00 100644
--- a/docs/_sources/how_to/deploy_models/deploy_model_on_android.rst.txt
+++ b/docs/_sources/how_to/deploy_models/deploy_model_on_android.rst.txt
@@ -32,7 +32,7 @@ This is an example of using Relay to compile a keras model and deploy it on Andr
.. GENERATED FROM PYTHON SOURCE LINES 27-42
-.. code-block:: default
+.. code-block:: Python
@@ -212,7 +212,7 @@ We load a pretrained MobileNetV2(alpha=0.5) classification model provided by ker
.. GENERATED FROM PYTHON SOURCE LINES 191-206
-.. code-block:: default
+.. code-block:: Python
keras.backend.clear_session() # Destroys the current TF graph and creates a new one.
weights_url = "".join(
@@ -243,7 +243,7 @@ transform its format.
.. GENERATED FROM PYTHON SOURCE LINES 209-226
-.. code-block:: default
+.. code-block:: Python
img_url = "https://github.com/dmlc/mxnet.js/blob/main/data/cat.png?raw=true"
img_name = "cat.png"
@@ -276,7 +276,7 @@ the word human can understand.
.. GENERATED FROM PYTHON SOURCE LINES 229-243
-.. code-block:: default
+.. code-block:: Python
synset_url = "".join(
[
@@ -310,7 +310,7 @@ to run this tutorial with a real device.
.. GENERATED FROM PYTHON SOURCE LINES 250-286
-.. code-block:: default
+.. code-block:: Python
local_demo = True
@@ -364,7 +364,7 @@ to the remote android device.
.. GENERATED FROM PYTHON SOURCE LINES 291-319
-.. code-block:: default
+.. code-block:: Python
tracker_host = os.environ.get("TVM_TRACKER_HOST", "127.0.0.1")
@@ -408,7 +408,7 @@ Execute on TVM
.. GENERATED FROM PYTHON SOURCE LINES 322-337
-.. code-block:: default
+.. code-block:: Python
# set input data
@@ -437,7 +437,7 @@ Execute on TVM
Evaluate inference time cost...
Execution time summary:
mean (ms) median (ms) max (ms) min (ms) std (ms)
- 15.2125 15.3662 15.5234 14.4204 0.3871
+ 16.9095 16.8923 18.0605 16.2384 0.6199
@@ -469,20 +469,28 @@ To speed up, we need to write and optimize the schedule according to the GPU arc
Mean inference time (std dev): 465.80 ms (4.52 ms)
+.. rst-class:: sphx-glr-timing
+
+ **Total running time of the script:** (1 minutes 2.676 seconds)
+
+
.. _sphx_glr_download_how_to_deploy_models_deploy_model_on_android.py:
.. only:: html
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: deploy_model_on_android.ipynb <deploy_model_on_android.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: deploy_model_on_android.py <deploy_model_on_android.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: deploy_model_on_android.ipynb <deploy_model_on_android.ipynb>`
+ :download:`Download zipped: deploy_model_on_android.zip <deploy_model_on_android.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/deploy_models/deploy_model_on_nano.rst.txt b/docs/_sources/how_to/deploy_models/deploy_model_on_nano.rst.txt
index 27e5ef5c13..27737d31f5 100644
--- a/docs/_sources/how_to/deploy_models/deploy_model_on_nano.rst.txt
+++ b/docs/_sources/how_to/deploy_models/deploy_model_on_nano.rst.txt
@@ -33,7 +33,7 @@ it on Jetson Nano.
.. GENERATED FROM PYTHON SOURCE LINES 27-35
-.. code-block:: default
+.. code-block:: Python
import tvm
@@ -124,7 +124,7 @@ We will use pre-trained model from torchvision
.. GENERATED FROM PYTHON SOURCE LINES 106-122
-.. code-block:: default
+.. code-block:: Python
import torch
@@ -150,9 +150,9 @@ We will use pre-trained model from torchvision
.. code-block:: none
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.
+ /venv/apache-tvm-py3.9/lib/python3.9/site-packages/torchvision/models/_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.
warnings.warn(
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=ResNet18_Weights.IMAGENET1K_V1`. You can also use `weights=ResNet18_Weights.DEFAULT` to get the most up-to-date weights.
+ /venv/apache-tvm-py3.9/lib/python3.9/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=ResNet18_Weights.IMAGENET1K_V1`. You can also use `weights=ResNet18_Weights.DEFAULT` to get the most up-to-date weights.
warnings.warn(msg)
@@ -165,7 +165,7 @@ transform its format.
.. GENERATED FROM PYTHON SOURCE LINES 125-141
-.. code-block:: default
+.. code-block:: Python
img_url = "https://github.com/dmlc/mxnet.js/blob/main/data/cat.png?raw=true"
img_name = "cat.png"
@@ -197,7 +197,7 @@ the word human can understand.
.. GENERATED FROM PYTHON SOURCE LINES 144-157
-.. code-block:: default
+.. code-block:: Python
synset_url = "".join(
[
@@ -226,7 +226,7 @@ It's as easy as several lines.
.. GENERATED FROM PYTHON SOURCE LINES 160-168
-.. code-block:: default
+.. code-block:: Python
input_name = "input0"
@@ -249,7 +249,7 @@ Here are some basic data workload configurations.
.. GENERATED FROM PYTHON SOURCE LINES 170-175
-.. code-block:: default
+.. code-block:: Python
batch_size = 1
num_classes = 1000
@@ -284,7 +284,7 @@ if you want to run this tutorial with a real device.
.. GENERATED FROM PYTHON SOURCE LINES 191-217
-.. code-block:: default
+.. code-block:: Python
local_demo = True
@@ -335,7 +335,7 @@ to the remote device.
.. GENERATED FROM PYTHON SOURCE LINES 222-252
-.. code-block:: default
+.. code-block:: Python
# obtain an RPC session from remote device.
@@ -387,14 +387,17 @@ to the remote device.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: deploy_model_on_nano.ipynb <deploy_model_on_nano.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: deploy_model_on_nano.py <deploy_model_on_nano.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: deploy_model_on_nano.ipynb <deploy_model_on_nano.ipynb>`
+ :download:`Download zipped: deploy_model_on_nano.zip <deploy_model_on_nano.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/deploy_models/deploy_model_on_rasp.rst.txt b/docs/_sources/how_to/deploy_models/deploy_model_on_rasp.rst.txt
index 2662e0f716..3a2b2381bc 100644
--- a/docs/_sources/how_to/deploy_models/deploy_model_on_rasp.rst.txt
+++ b/docs/_sources/how_to/deploy_models/deploy_model_on_rasp.rst.txt
@@ -33,7 +33,7 @@ it on Raspberry Pi.
.. GENERATED FROM PYTHON SOURCE LINES 28-36
-.. code-block:: default
+.. code-block:: Python
import tvm
@@ -119,7 +119,7 @@ We will use pre-trained model from torchvision
.. GENERATED FROM PYTHON SOURCE LINES 99-115
-.. code-block:: default
+.. code-block:: Python
import torch
@@ -145,9 +145,9 @@ We will use pre-trained model from torchvision
.. code-block:: none
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.
+ /venv/apache-tvm-py3.9/lib/python3.9/site-packages/torchvision/models/_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.
warnings.warn(
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=ResNet18_Weights.IMAGENET1K_V1`. You can also use `weights=ResNet18_Weights.DEFAULT` to get the most up-to-date weights.
+ /venv/apache-tvm-py3.9/lib/python3.9/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=ResNet18_Weights.IMAGENET1K_V1`. You can also use `weights=ResNet18_Weights.DEFAULT` to get the most up-to-date weights.
warnings.warn(msg)
@@ -160,7 +160,7 @@ transform its format.
.. GENERATED FROM PYTHON SOURCE LINES 118-134
-.. code-block:: default
+.. code-block:: Python
img_url = "https://github.com/dmlc/mxnet.js/blob/main/data/cat.png?raw=true"
img_name = "cat.png"
@@ -192,7 +192,7 @@ the word human can understand.
.. GENERATED FROM PYTHON SOURCE LINES 137-150
-.. code-block:: default
+.. code-block:: Python
synset_url = "".join(
[
@@ -221,7 +221,7 @@ It's as easy as several lines.
.. GENERATED FROM PYTHON SOURCE LINES 153-161
-.. code-block:: default
+.. code-block:: Python
input_name = "input0"
@@ -244,7 +244,7 @@ Here are some basic data workload configurations.
.. GENERATED FROM PYTHON SOURCE LINES 163-168
-.. code-block:: default
+.. code-block:: Python
batch_size = 1
num_classes = 1000
@@ -279,7 +279,7 @@ to run this tutorial with a real device.
.. GENERATED FROM PYTHON SOURCE LINES 184-206
-.. code-block:: default
+.. code-block:: Python
local_demo = True
@@ -326,7 +326,7 @@ to the remote device.
.. GENERATED FROM PYTHON SOURCE LINES 211-237
-.. code-block:: default
+.. code-block:: Python
# obtain an RPC session from remote device.
@@ -374,14 +374,17 @@ to the remote device.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: deploy_model_on_rasp.ipynb <deploy_model_on_rasp.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: deploy_model_on_rasp.py <deploy_model_on_rasp.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: deploy_model_on_rasp.ipynb <deploy_model_on_rasp.ipynb>`
+ :download:`Download zipped: deploy_model_on_rasp.zip <deploy_model_on_rasp.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/deploy_models/deploy_object_detection_pytorch.rst.txt b/docs/_sources/how_to/deploy_models/deploy_object_detection_pytorch.rst.txt
index d55379169e..db02ab2d07 100644
--- a/docs/_sources/how_to/deploy_models/deploy_object_detection_pytorch.rst.txt
+++ b/docs/_sources/how_to/deploy_models/deploy_object_detection_pytorch.rst.txt
@@ -48,7 +48,7 @@ be unstable.
.. GENERATED FROM PYTHON SOURCE LINES 42-56
-.. code-block:: default
+.. code-block:: Python
import tvm
@@ -78,7 +78,7 @@ Load pre-trained maskrcnn from torchvision and do tracing
.. GENERATED FROM PYTHON SOURCE LINES 59-96
-.. code-block:: default
+.. code-block:: Python
in_size = 300
@@ -125,67 +125,25 @@ Load pre-trained maskrcnn from torchvision and do tracing
.. code-block:: none
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.
+ /venv/apache-tvm-py3.9/lib/python3.9/site-packages/torchvision/models/_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.
warnings.warn(
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=MaskRCNN_ResNet50_FPN_Weights.COCO_V1`. You can also use `weights=MaskRCNN_ResNet50_FPN_Weights.DEFAULT` to get the most up-to-date weights.
+ /venv/apache-tvm-py3.9/lib/python3.9/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=MaskRCNN_ResNet50_FPN_Weights.COCO_V1`. You can also use `weights=MaskRCNN_ResNet50_FPN_Weights.DEFAULT` to get the most up-to-date weights.
warnings.warn(msg)
Downloading: "https://download.pytorch.org/models/maskrcnn_resnet50_fpn_coco-bf2d0c1e.pth" to /workspace/.cache/torch/hub/checkpoints/maskrcnn_resnet50_fpn_coco-bf2d0c1e.pth
- 0%| | 0.00/170M [00:00<?, ?B/s] 7%|7 | 12.5M/170M [00:00<00:01, 131MB/s] 19%|#9 | 32.6M/170M [00:00<00:00, 178MB/s] 32%|###1 | 53.8M/170M [00:00<00:00, 197MB/s] 44%|####4 | 75.5M/170M [00:00<00:00, 209MB/s] 58%|#####7 | 98.1M/170M [00:00<00:00, 219MB/s] 71%|#######1 | 121M/170M [00:00<00:00, 226MB/s] 85%|########4 | 144M/170M [00:00<00:00, 229MB/s] 98%|#########7| 166M/170M [00:00<00:00, 232MB/s] 100%|##########| 170M/170M [00:00<00:00, 218MB/s]
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/detection/generalized_rcnn.py:75: TracerWarning: Iterating over a tensor might cause the trace to be incorrect. Passing a tensor of different shape won't change the number of iterations executed (and might lead to errors or silently give incorrect results).
- for img in images:
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/detection/transform.py:122: TracerWarning: Iterating over a tensor might cause the trace to be incorrect. Passing a tensor of different shape won't change the number of iterations executed (and might lead to errors or silently give incorrect results).
- images = [img for img in images]
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/detection/transform.py:167: TracerWarning: torch.as_tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
- mean = torch.as_tensor(self.image_mean, dtype=dtype, device=device)
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/detection/transform.py:168: TracerWarning: torch.as_tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
- std = torch.as_tensor(self.image_std, dtype=dtype, device=device)
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torch/nn/functional.py:4031: TracerWarning: torch.tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
+ 0%| | 0.00/170M [00:00<?, ?B/s] 4%|▍ | 6.88M/170M [00:00<00:02, 71.1MB/s] 9%|▊ | 14.8M/170M [00:00<00:02, 76.3MB/s] 13%|█▎ | 22.1M/170M [00:00<00:02, 75.2MB/s] 17%|█▋ | 29.5M/170M [00:00<00:01, 75.6MB/s] 22%|██▏ | 36.8M/170M [00:00<00:01, 72.0MB/s] 26%|██▌ | 43.8M/170M [00:00<00:01, 72.0MB/s] 30%|███ | 51.8M/170M [00:00<00:01, 75.3MB/s] 35%|███▍ | 59.0M/170M [00:00<00:01, 74.9MB/s] 39%|███▉ | 66.4M/170M [00:00<00:01, 75.6MB/s] 43%|████▎ | 73.6M/170M [00:01<00:01, 74.4MB/s] 48%|████▊ | 81.5M/170M [00:01<00:01, 76.6MB/s] 53%|█████▎ | 89.2M/170M [00:01<00:01, 77.6MB/s] 57%|█████▋ | 96.8M/170M [00:01<00:01, 72.3MB/s] 61%|██████▏ | 104M/170M [00:01<00:00, 73.3MB/s] 66%|██████▌ | 111M/170M [00:01<00:00, 69
.9MB/s] 70%|██████▉ | 119M/170M [00:01<00:00, 71.9MB/s] 74%|███████▍ | 126M/170M [00:01<00:00, 72.3MB/s] 79%|███████▉ | 134M/170M [00:01<00:00, 76.1MB/s] 83%|████████▎ | 142M/170M [00:01<00:00, 76.7MB/s] 88%|████████▊ | 149M/170M [00:02<00:00, 74.2MB/s] 92%|█████████▏| 156M/170M [00:02<00:00, 74.9MB/s] 97%|█████████▋| 164M/170M [00:02<00:00, 76.5MB/s] 100%|██████████| 170M/170M [00:02<00:00, 74.7MB/s]
+ /venv/apache-tvm-py3.9/lib/python3.9/site-packages/torch/nn/functional.py:4031: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
(torch.floor((input.size(i + 2).float() * torch.tensor(scale_factors[i], dtype=torch.float32)).float()))
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torch/nn/functional.py:4031: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
- (torch.floor((input.size(i + 2).float() * torch.tensor(scale_factors[i], dtype=torch.float32)).float()))
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/detection/_utils.py:176: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
- if box_sum > 0:
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/detection/_utils.py:216: TracerWarning: torch.tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
- c_to_c_h = torch.tensor(0.5, dtype=pred_ctr_y.dtype, device=pred_h.device) * pred_h
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/detection/_utils.py:217: TracerWarning: torch.tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
- c_to_c_w = torch.tensor(0.5, dtype=pred_ctr_x.dtype, device=pred_w.device) * pred_w
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/detection/_utils.py:179: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
- if box_sum > 0:
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/detection/_utils.py:511: TracerWarning: torch.tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
- min_kval = torch.min(torch.cat((torch.tensor([orig_kval], dtype=axis_dim_val.dtype), axis_dim_val), 0))
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/detection/rpn.py:276: TracerWarning: Iterating over a tensor might cause the trace to be incorrect. Passing a tensor of different shape won't change the number of iterations executed (and might lead to errors or silently give incorrect results).
- for boxes, scores, lvl, img_shape in zip(proposals, objectness_prob, levels, image_shapes):
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/ops/boxes.py:165: TracerWarning: torch.tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
- boxes_x = torch.max(boxes_x, torch.tensor(0, dtype=boxes.dtype, device=boxes.device))
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/ops/boxes.py:166: TracerWarning: torch.tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
- boxes_x = torch.min(boxes_x, torch.tensor(width, dtype=boxes.dtype, device=boxes.device))
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/ops/boxes.py:166: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
+ /venv/apache-tvm-py3.9/lib/python3.9/site-packages/torchvision/ops/boxes.py:166: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
boxes_x = torch.min(boxes_x, torch.tensor(width, dtype=boxes.dtype, device=boxes.device))
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/ops/boxes.py:167: TracerWarning: torch.tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
- boxes_y = torch.max(boxes_y, torch.tensor(0, dtype=boxes.dtype, device=boxes.device))
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/ops/boxes.py:168: TracerWarning: torch.tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
+ /venv/apache-tvm-py3.9/lib/python3.9/site-packages/torchvision/ops/boxes.py:168: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
boxes_y = torch.min(boxes_y, torch.tensor(height, dtype=boxes.dtype, device=boxes.device))
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/ops/boxes.py:168: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
- boxes_y = torch.min(boxes_y, torch.tensor(height, dtype=boxes.dtype, device=boxes.device))
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/ops/boxes.py:72: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
- if boxes.numel() > (4000 if boxes.device.type == "cpu" else 20000) and not torchvision._is_tracing():
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/ops/poolers.py:82: TracerWarning: torch.tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
- target_lvls = torch.floor(self.lvl0 + torch.log2(s / self.s0) + torch.tensor(self.eps, dtype=s.dtype))
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/ops/poolers.py:185: TracerWarning: Using len to get tensor shape might cause the trace to be incorrect. Recommended usage would be tensor.shape[0]. Passing a tensor of different shape might lead to errors or silently give incorrect results.
- num_rois = len(rois)
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torch/__init__.py:1777: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
+ /venv/apache-tvm-py3.9/lib/python3.9/site-packages/torch/__init__.py:1777: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
assert condition, message
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/detection/transform.py:308: TracerWarning: torch.tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
- torch.tensor(s, dtype=torch.float32, device=boxes.device)
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/detection/transform.py:308: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
+ /venv/apache-tvm-py3.9/lib/python3.9/site-packages/torchvision/models/detection/transform.py:308: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
torch.tensor(s, dtype=torch.float32, device=boxes.device)
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/detection/transform.py:309: TracerWarning: torch.tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
+ /venv/apache-tvm-py3.9/lib/python3.9/site-packages/torchvision/models/detection/transform.py:309: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
/ torch.tensor(s_orig, dtype=torch.float32, device=boxes.device)
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/detection/transform.py:309: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
- / torch.tensor(s_orig, dtype=torch.float32, device=boxes.device)
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/detection/roi_heads.py:389: TracerWarning: torch.tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
- return torch.tensor(M + 2 * padding).to(torch.float32) / torch.tensor(M).to(torch.float32)
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/detection/roi_heads.py:389: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
+ /venv/apache-tvm-py3.9/lib/python3.9/site-packages/torchvision/models/detection/roi_heads.py:389: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
return torch.tensor(M + 2 * padding).to(torch.float32) / torch.tensor(M).to(torch.float32)
@@ -198,7 +156,7 @@ Download a test image and pre-process
.. GENERATED FROM PYTHON SOURCE LINES 99-110
-.. code-block:: default
+.. code-block:: Python
img_url = (
"https://raw.githubusercontent.com/dmlc/web-data/master/gluoncv/detection/street_small.jpg"
@@ -225,7 +183,7 @@ Import the graph to Relay
.. GENERATED FROM PYTHON SOURCE LINES 113-117
-.. code-block:: default
+.. code-block:: Python
input_name = "input0"
shape_list = [(input_name, input_shape)]
@@ -256,7 +214,7 @@ torchvision rcnn models.
.. GENERATED FROM PYTHON SOURCE LINES 124-133
-.. code-block:: default
+.. code-block:: Python
# Add "-libs=mkl" to get best performance on x86 target.
@@ -271,6 +229,17 @@ torchvision rcnn models.
+.. rst-class:: sphx-glr-script-out
+
+ .. code-block:: none
+
+ /usr/lib/python3.9/ast.py:407: DeprecationWarning: visit_Str is deprecated; add visit_Constant
+ return visitor(node)
+ /usr/lib/python3.9/ast.py:407: DeprecationWarning: visit_Num is deprecated; add visit_Constant
+ return visitor(node)
+ /usr/lib/python3.9/ast.py:407: DeprecationWarning: visit_NameConstant is deprecated; add visit_Constant
+ return visitor(node)
+
@@ -281,7 +250,7 @@ Inference with Relay VM
.. GENERATED FROM PYTHON SOURCE LINES 136-141
-.. code-block:: default
+.. code-block:: Python
dev = tvm.cpu()
vm = VirtualMachine(vm_exec, dev)
@@ -302,7 +271,7 @@ Get boxes with score larger than 0.9
.. GENERATED FROM PYTHON SOURCE LINES 144-154
-.. code-block:: default
+.. code-block:: Python
score_threshold = 0.9
boxes = tvm_res[0].numpy().tolist()
@@ -330,7 +299,7 @@ Get boxes with score larger than 0.9
.. rst-class:: sphx-glr-timing
- **Total running time of the script:** ( 3 minutes 37.414 seconds)
+ **Total running time of the script:** (4 minutes 37.081 seconds)
.. _sphx_glr_download_how_to_deploy_models_deploy_object_detection_pytorch.py:
@@ -339,14 +308,17 @@ Get boxes with score larger than 0.9
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: deploy_object_detection_pytorch.ipynb <deploy_object_detection_pytorch.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: deploy_object_detection_pytorch.py <deploy_object_detection_pytorch.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: deploy_object_detection_pytorch.ipynb <deploy_object_detection_pytorch.ipynb>`
+ :download:`Download zipped: deploy_object_detection_pytorch.zip <deploy_object_detection_pytorch.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/deploy_models/deploy_prequantized.rst.txt b/docs/_sources/how_to/deploy_models/deploy_prequantized.rst.txt
index 8da0a38795..c0725cca4b 100644
--- a/docs/_sources/how_to/deploy_models/deploy_prequantized.rst.txt
+++ b/docs/_sources/how_to/deploy_models/deploy_prequantized.rst.txt
@@ -40,7 +40,7 @@ First, necessary imports
.. GENERATED FROM PYTHON SOURCE LINES 34-46
-.. code-block:: default
+.. code-block:: Python
from PIL import Image
@@ -67,7 +67,7 @@ Helper functions to run the demo
.. GENERATED FROM PYTHON SOURCE LINES 48-101
-.. code-block:: default
+.. code-block:: Python
def get_transform():
import torchvision.transforms as transforms
@@ -136,7 +136,7 @@ are reasonable
.. GENERATED FROM PYTHON SOURCE LINES 104-106
-.. code-block:: default
+.. code-block:: Python
synset = get_synset()
@@ -153,7 +153,7 @@ Everyone's favorite cat image for demonstration
.. GENERATED FROM PYTHON SOURCE LINES 108-110
-.. code-block:: default
+.. code-block:: Python
inp = get_imagenet_input()
@@ -181,7 +181,7 @@ The model is per-channel quantized.
.. GENERATED FROM PYTHON SOURCE LINES 123-134
-.. code-block:: default
+.. code-block:: Python
@@ -210,7 +210,7 @@ training. Other models require a full post training calibration.
.. GENERATED FROM PYTHON SOURCE LINES 139-141
-.. code-block:: default
+.. code-block:: Python
qmodel = qmobilenet.mobilenet_v2(pretrained=True).eval()
@@ -222,12 +222,10 @@ training. Other models require a full post training calibration.
.. code-block:: none
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.
- warnings.warn(
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=MobileNet_V2_Weights.IMAGENET1K_V1`. You can also use `weights=MobileNet_V2_Weights.DEFAULT` to get the most up-to-date weights.
+ /venv/apache-tvm-py3.9/lib/python3.9/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=MobileNet_V2_Weights.IMAGENET1K_V1`. You can also use `weights=MobileNet_V2_Weights.DEFAULT` to get the most up-to-date weights.
warnings.warn(msg)
Downloading: "https://download.pytorch.org/models/mobilenet_v2-b0353104.pth" to /workspace/.cache/torch/hub/checkpoints/mobilenet_v2-b0353104.pth
- 0%| | 0.00/13.6M [00:00<?, ?B/s] 100%|##########| 13.6M/13.6M [00:00<00:00, 148MB/s]
+ 0%| | 0.00/13.6M [00:00<?, ?B/s] 100%|██████████| 13.6M/13.6M [00:00<00:00, 151MB/s]
@@ -241,7 +239,7 @@ on the PyTorch website to learn about quantization and jit.
.. GENERATED FROM PYTHON SOURCE LINES 146-153
-.. code-block:: default
+.. code-block:: Python
pt_inp = torch.from_numpy(inp)
quantize_model(qmodel, pt_inp)
@@ -258,14 +256,10 @@ on the PyTorch website to learn about quantization and jit.
.. code-block:: none
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torch/ao/quantization/observer.py:221: UserWarning: Please use quant_min and quant_max to specify the range for observers. reduce_range will be deprecated in a future release of PyTorch.
+ /venv/apache-tvm-py3.9/lib/python3.9/site-packages/torch/ao/quantization/observer.py:221: UserWarning: Please use quant_min and quant_max to specify the range for observers. reduce_range will be deprecated in a future release of PyTorch.
warnings.warn(
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torch/ao/quantization/observer.py:1289: UserWarning: must run observer before calling calculate_qparams. Returning default scale and zero point
+ /venv/apache-tvm-py3.9/lib/python3.9/site-packages/torch/ao/quantization/observer.py:1289: UserWarning: must run observer before calling calculate_qparams. Returning default scale and zero point
warnings.warn(
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torch/ao/nn/quantized/modules/__init__.py:98: TracerWarning: Converting a tensor to a Python float might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
- return torch.quantize_per_tensor(X, float(self.scale),
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torch/ao/nn/quantized/modules/__init__.py:99: TracerWarning: Converting a tensor to a Python integer might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
- int(self.zero_point), self.dtype)
@@ -286,7 +280,7 @@ qnn.quantize, qnn.dequantize, qnn.requantize, and qnn.conv2d etc.
.. GENERATED FROM PYTHON SOURCE LINES 165-170
-.. code-block:: default
+.. code-block:: Python
input_name = "input" # the input name can be arbitrary for PyTorch frontend.
input_shapes = [(input_name, (1, 3, 224, 224))]
@@ -313,7 +307,7 @@ standard Relay operators before compilation.
.. GENERATED FROM PYTHON SOURCE LINES 179-182
-.. code-block:: default
+.. code-block:: Python
target = "llvm"
tvm_result, rt_mod = run_tvm_model(mod, params, input_name, inp, target=target)
@@ -333,7 +327,7 @@ We should see identical labels printed.
.. GENERATED FROM PYTHON SOURCE LINES 186-192
-.. code-block:: default
+.. code-block:: Python
pt_top3_labels = np.argsort(pt_result[0])[::-1][:3]
tvm_top3_labels = np.argsort(tvm_result[0])[::-1][:3]
@@ -363,7 +357,7 @@ output values are identical out of 1000 outputs from mobilenet v2.
.. GENERATED FROM PYTHON SOURCE LINES 196-198
-.. code-block:: default
+.. code-block:: Python
print("%d in 1000 raw floating outputs identical." % np.sum(tvm_result[0] == pt_result[0]))
@@ -388,7 +382,7 @@ Here we give an example of how to measure performance of TVM compiled models.
.. GENERATED FROM PYTHON SOURCE LINES 202-206
-.. code-block:: default
+.. code-block:: Python
n_repeat = 100 # should be bigger to make the measurement more accurate
dev = tvm.cpu(0)
@@ -404,7 +398,7 @@ Here we give an example of how to measure performance of TVM compiled models.
Execution time summary:
mean (ms) median (ms) max (ms) min (ms) std (ms)
- 86.3875 86.3346 89.3087 85.9239 0.3950
+ 90.4647 90.4161 91.5291 89.7735 0.3520
@@ -452,7 +446,7 @@ TODO
.. rst-class:: sphx-glr-timing
- **Total running time of the script:** ( 1 minutes 32.110 seconds)
+ **Total running time of the script:** (1 minutes 52.686 seconds)
.. _sphx_glr_download_how_to_deploy_models_deploy_prequantized.py:
@@ -461,14 +455,17 @@ TODO
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: deploy_prequantized.ipynb <deploy_prequantized.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: deploy_prequantized.py <deploy_prequantized.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: deploy_prequantized.ipynb <deploy_prequantized.ipynb>`
+ :download:`Download zipped: deploy_prequantized.zip <deploy_prequantized.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/deploy_models/deploy_prequantized_tflite.rst.txt b/docs/_sources/how_to/deploy_models/deploy_prequantized_tflite.rst.txt
index b184cae155..58f9596ae1 100644
--- a/docs/_sources/how_to/deploy_models/deploy_prequantized_tflite.rst.txt
+++ b/docs/_sources/how_to/deploy_models/deploy_prequantized_tflite.rst.txt
@@ -54,7 +54,7 @@ Necessary imports
.. GENERATED FROM PYTHON SOURCE LINES 49-58
-.. code-block:: default
+.. code-block:: Python
import os
@@ -79,7 +79,7 @@ Download pretrained Quantized TFLite model
.. GENERATED FROM PYTHON SOURCE LINES 61-77
-.. code-block:: default
+.. code-block:: Python
# Download mobilenet V2 TFLite model provided by Google
@@ -111,7 +111,7 @@ Utils for downloading and extracting zip files
.. GENERATED FROM PYTHON SOURCE LINES 80-95
-.. code-block:: default
+.. code-block:: Python
def extract(path):
import tarfile
@@ -147,7 +147,7 @@ Get a real image for e2e testing
.. GENERATED FROM PYTHON SOURCE LINES 102-117
-.. code-block:: default
+.. code-block:: Python
def get_real_image(im_height, im_width):
from PIL import Image
@@ -182,7 +182,7 @@ Now we can open mobilenet_v2_1.0_224.tflite
.. GENERATED FROM PYTHON SOURCE LINES 123-136
-.. code-block:: default
+.. code-block:: Python
tflite_model_file = os.path.join(model_dir, "mobilenet_v2_1.0_224_quant.tflite")
tflite_model_buf = open(tflite_model_file, "rb").read()
@@ -210,7 +210,7 @@ Lets run TFLite pre-quantized model inference and get the TFLite prediction.
.. GENERATED FROM PYTHON SOURCE LINES 138-169
-.. code-block:: default
+.. code-block:: Python
def run_tflite_model(tflite_model_buf, input_data):
"""Generic function to execute TFLite"""
@@ -256,7 +256,7 @@ Lets run TVM compiled pre-quantized model inference and get the TVM prediction.
.. GENERATED FROM PYTHON SOURCE LINES 171-182
-.. code-block:: default
+.. code-block:: Python
def run_tvm(lib):
from tvm.contrib import graph_executor
@@ -287,7 +287,7 @@ Run TFLite inference on the quantized model.
.. GENERATED FROM PYTHON SOURCE LINES 188-191
-.. code-block:: default
+.. code-block:: Python
tflite_res = run_tflite_model(tflite_model_buf, data)
tflite_pred = np.squeeze(tflite_res).argsort()[-5:][::-1]
@@ -313,7 +313,7 @@ will see many QNN operators, like, Requantize, Quantize and QNN Conv2D.
.. GENERATED FROM PYTHON SOURCE LINES 200-206
-.. code-block:: default
+.. code-block:: Python
dtype_dict = {"input": data.dtype.name}
shape_dict = {"input": data.shape}
@@ -335,7 +335,7 @@ target platform that you are interested in.
.. GENERATED FROM PYTHON SOURCE LINES 209-213
-.. code-block:: default
+.. code-block:: Python
target = "llvm"
with tvm.transform.PassContext(opt_level=3):
@@ -354,7 +354,7 @@ Finally, lets call inference on the TVM compiled module.
.. GENERATED FROM PYTHON SOURCE LINES 215-217
-.. code-block:: default
+.. code-block:: Python
tvm_pred, rt_mod = run_tvm(lib)
@@ -378,7 +378,7 @@ TFLite and Relay. This cause final output numbers to mismatch. So, testing accur
.. GENERATED FROM PYTHON SOURCE LINES 225-230
-.. code-block:: default
+.. code-block:: Python
print("TVM Top-5 labels:", tvm_pred)
@@ -407,7 +407,7 @@ Here we give an example of how to measure performance of TVM compiled models.
.. GENERATED FROM PYTHON SOURCE LINES 234-238
-.. code-block:: default
+.. code-block:: Python
n_repeat = 100 # should be bigger to make the measurement more accurate
dev = tvm.cpu(0)
@@ -423,7 +423,7 @@ Here we give an example of how to measure performance of TVM compiled models.
Execution time summary:
mean (ms) median (ms) max (ms) min (ms) std (ms)
- 107.6026 107.5668 115.0040 106.7582 0.8393
+ 112.3656 112.3075 114.5278 111.6508 0.4215
@@ -463,14 +463,17 @@ Here we give an example of how to measure performance of TVM compiled models.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: deploy_prequantized_tflite.ipynb <deploy_prequantized_tflite.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: deploy_prequantized_tflite.py <deploy_prequantized_tflite.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: deploy_prequantized_tflite.ipynb <deploy_prequantized_tflite.ipynb>`
+ :download:`Download zipped: deploy_prequantized_tflite.zip <deploy_prequantized_tflite.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/deploy_models/deploy_sparse.rst.txt b/docs/_sources/how_to/deploy_models/deploy_sparse.rst.txt
index 4e76d5f5ad..13fd80780b 100644
--- a/docs/_sources/how_to/deploy_models/deploy_sparse.rst.txt
+++ b/docs/_sources/how_to/deploy_models/deploy_sparse.rst.txt
@@ -85,7 +85,7 @@ tensorflow 2.2+ are required.
.. GENERATED FROM PYTHON SOURCE LINES 79-108
-.. code-block:: default
+.. code-block:: Python
import os
import tvm
@@ -132,7 +132,7 @@ and sparsity to run.
.. GENERATED FROM PYTHON SOURCE LINES 113-137
-.. code-block:: default
+.. code-block:: Python
# The name of the transformer model to download and run.
@@ -175,7 +175,7 @@ a relay graph that we can optimize and deploy.
.. GENERATED FROM PYTHON SOURCE LINES 143-179
-.. code-block:: default
+.. code-block:: Python
def load_keras_model(module, name, seq_len, batch_size, report_runtime=True):
model = module.from_pretrained(name)
@@ -231,7 +231,7 @@ to reimport from tensorflow each time this script is run.
.. GENERATED FROM PYTHON SOURCE LINES 186-219
-.. code-block:: default
+.. code-block:: Python
def import_graphdef(
name,
@@ -284,7 +284,7 @@ tensors instead of sparse aware kernels.
.. GENERATED FROM PYTHON SOURCE LINES 226-246
-.. code-block:: default
+.. code-block:: Python
def run_relay_graph(mod, params, shape_dict, target, dev):
with relay.build_config(opt_level=3):
@@ -339,7 +339,7 @@ run faster.
.. GENERATED FROM PYTHON SOURCE LINES 268-317
-.. code-block:: default
+.. code-block:: Python
def random_bsr_matrix(M, N, BS_R, BS_C, density, dtype="float32"):
Y = np.zeros((M, N), dtype=dtype)
@@ -407,7 +407,7 @@ you'll need to uncomment the last line first.
.. GENERATED FROM PYTHON SOURCE LINES 323-333
-.. code-block:: default
+.. code-block:: Python
def benchmark():
mod, params, shape_dict = import_graphdef(name, batch_size, seq_len)
@@ -435,7 +435,7 @@ and shows about a 2.5X speedup from using sparsity.
.. GENERATED FROM PYTHON SOURCE LINES 338-364
-.. code-block:: default
+.. code-block:: Python
# Dense Model Benchmark:
@@ -477,14 +477,17 @@ and shows about a 2.5X speedup from using sparsity.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: deploy_sparse.ipynb <deploy_sparse.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: deploy_sparse.py <deploy_sparse.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: deploy_sparse.ipynb <deploy_sparse.ipynb>`
+ :download:`Download zipped: deploy_sparse.zip <deploy_sparse.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/deploy_models/index.rst.txt b/docs/_sources/how_to/deploy_models/index.rst.txt
index 438fdded9e..784b0198e5 100644
--- a/docs/_sources/how_to/deploy_models/index.rst.txt
+++ b/docs/_sources/how_to/deploy_models/index.rst.txt
@@ -13,15 +13,16 @@ backends.
<div class="sphx-glr-thumbnails">
+.. thumbnail-parent-div-open
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="This article is a step-by-step tutorial to deploy pretrained Pytorch ResNet-18 model on Adreno ...">
+ <div class="sphx-glr-thumbcontainer" tooltip="This article is a step-by-step tutorial to deploy pretrained Pytorch ResNet-18 model on Adreno (on different precisions).">
.. only:: html
.. image:: /how_to/deploy_models/images/thumb/sphx_glr_deploy_model_on_adreno_thumb.png
- :alt: Deploy the Pretrained Model on Adreno™
+ :alt:
:ref:`sphx_glr_how_to_deploy_models_deploy_model_on_adreno.py`
@@ -38,7 +39,7 @@ backends.
.. only:: html
.. image:: /how_to/deploy_models/images/thumb/sphx_glr_deploy_model_on_adreno_tvmc_thumb.png
- :alt: Deploy the Pretrained Model on Adreno™ with tvmc Interface
+ :alt:
:ref:`sphx_glr_how_to_deploy_models_deploy_model_on_adreno_tvmc.py`
@@ -55,7 +56,7 @@ backends.
.. only:: html
.. image:: /how_to/deploy_models/images/thumb/sphx_glr_deploy_model_on_android_thumb.png
- :alt: Deploy the Pretrained Model on Android
+ :alt:
:ref:`sphx_glr_how_to_deploy_models_deploy_model_on_android.py`
@@ -72,7 +73,7 @@ backends.
.. only:: html
.. image:: /how_to/deploy_models/images/thumb/sphx_glr_deploy_model_on_nano_thumb.png
- :alt: Deploy the Pretrained Model on Jetson Nano
+ :alt:
:ref:`sphx_glr_how_to_deploy_models_deploy_model_on_nano.py`
@@ -89,7 +90,7 @@ backends.
.. only:: html
.. image:: /how_to/deploy_models/images/thumb/sphx_glr_deploy_model_on_rasp_thumb.png
- :alt: Deploy the Pretrained Model on Raspberry Pi
+ :alt:
:ref:`sphx_glr_how_to_deploy_models_deploy_model_on_rasp.py`
@@ -101,12 +102,12 @@ backends.
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="For us to begin with, PyTorch should be installed. TorchVision is also required since we will b...">
+ <div class="sphx-glr-thumbcontainer" tooltip="For us to begin with, PyTorch should be installed. TorchVision is also required since we will be using it as our model zoo.">
.. only:: html
.. image:: /how_to/deploy_models/images/thumb/sphx_glr_deploy_object_detection_pytorch_thumb.png
- :alt: Compile PyTorch Object Detection Models
+ :alt:
:ref:`sphx_glr_how_to_deploy_models_deploy_object_detection_pytorch.py`
@@ -118,12 +119,12 @@ backends.
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="This is a tutorial on loading models quantized by deep learning frameworks into TVM. Pre-quanti...">
+ <div class="sphx-glr-thumbcontainer" tooltip="This is a tutorial on loading models quantized by deep learning frameworks into TVM. Pre-quantized model import is one of the quantization support we have in TVM. More details on the quantization story in TVM can be found here.">
.. only:: html
.. image:: /how_to/deploy_models/images/thumb/sphx_glr_deploy_prequantized_thumb.png
- :alt: Deploy a Framework-prequantized Model with TVM
+ :alt:
:ref:`sphx_glr_how_to_deploy_models_deploy_prequantized.py`
@@ -135,12 +136,12 @@ backends.
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="Welcome to part 3 of the Deploy Framework-Prequantized Model with TVM tutorial. In this part, w...">
+ <div class="sphx-glr-thumbcontainer" tooltip="Welcome to part 3 of the Deploy Framework-Prequantized Model with TVM tutorial. In this part, we will start with a Quantized TFLite graph and then compile and execute it via TVM.">
.. only:: html
.. image:: /how_to/deploy_models/images/thumb/sphx_glr_deploy_prequantized_tflite_thumb.png
- :alt: Deploy a Framework-prequantized Model with TVM - Part 3 (TFLite)
+ :alt:
:ref:`sphx_glr_how_to_deploy_models_deploy_prequantized_tflite.py`
@@ -152,12 +153,12 @@ backends.
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="This tutorial demonstrates how to take any pruned model, in this case `PruneBert from Hugging F...">
+ <div class="sphx-glr-thumbcontainer" tooltip="This tutorial demonstrates how to take any pruned model, in this case PruneBert from Hugging Face, and use TVM to leverage the model's sparsity support to produce real speedups. Although the primary purpose of this tutorial is to realize speedups on already pruned models, it may also be useful to estimate how fast a model would be if it were pruned. To this end, we also provide a function that takes an unpruned model and replaces its [...]
.. only:: html
.. image:: /how_to/deploy_models/images/thumb/sphx_glr_deploy_sparse_thumb.png
- :alt: Deploy a Hugging Face Pruned Model on CPU
+ :alt:
:ref:`sphx_glr_how_to_deploy_models_deploy_sparse.py`
@@ -167,6 +168,8 @@ backends.
</div>
+.. thumbnail-parent-div-close
+
.. raw:: html
</div>
diff --git a/docs/_sources/how_to/deploy_models/sg_execution_times.rst.txt b/docs/_sources/how_to/deploy_models/sg_execution_times.rst.txt
index 83ca0404d9..246dc46b4c 100644
--- a/docs/_sources/how_to/deploy_models/sg_execution_times.rst.txt
+++ b/docs/_sources/how_to/deploy_models/sg_execution_times.rst.txt
@@ -3,26 +3,59 @@
.. _sphx_glr_how_to_deploy_models_sg_execution_times:
+
Computation times
=================
-**10:18.796** total execution time for **how_to_deploy_models** files:
-
-+------------------------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_deploy_models_deploy_object_detection_pytorch.py` (``deploy_object_detection_pytorch.py``) | 03:37.414 | 0.0 MB |
-+------------------------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_deploy_models_deploy_prequantized.py` (``deploy_prequantized.py``) | 01:32.110 | 0.0 MB |
-+------------------------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_deploy_models_deploy_model_on_adreno.py` (``deploy_model_on_adreno.py``) | 01:19.213 | 0.0 MB |
-+------------------------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_deploy_models_deploy_model_on_adreno_tvmc.py` (``deploy_model_on_adreno_tvmc.py``) | 01:03.473 | 0.0 MB |
-+------------------------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_deploy_models_deploy_model_on_android.py` (``deploy_model_on_android.py``) | 00:53.044 | 0.0 MB |
-+------------------------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_deploy_models_deploy_prequantized_tflite.py` (``deploy_prequantized_tflite.py``) | 00:52.160 | 0.0 MB |
-+------------------------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_deploy_models_deploy_model_on_nano.py` (``deploy_model_on_nano.py``) | 00:30.754 | 0.0 MB |
-+------------------------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_deploy_models_deploy_model_on_rasp.py` (``deploy_model_on_rasp.py``) | 00:30.620 | 0.0 MB |
-+------------------------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_deploy_models_deploy_sparse.py` (``deploy_sparse.py``) | 00:00.008 | 0.0 MB |
-+------------------------------------------------------------------------------------------------------------------+-----------+--------+
+**12:20.887** total execution time for 9 files **from how_to/deploy_models**:
+
+.. container::
+
+ .. raw:: html
+
+ <style scoped>
+ <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet" />
+ <link href="https://cdn.datatables.net/1.13.6/css/dataTables.bootstrap5.min.css" rel="stylesheet" />
+ </style>
+ <script src="https://code.jquery.com/jquery-3.7.0.js"></script>
+ <script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
+ <script src="https://cdn.datatables.net/1.13.6/js/dataTables.bootstrap5.min.js"></script>
+ <script type="text/javascript" class="init">
+ $(document).ready( function () {
+ $('table.sg-datatable').DataTable({order: [[1, 'desc']]});
+ } );
+ </script>
+
+ .. list-table::
+ :header-rows: 1
+ :class: table table-striped sg-datatable
+
+ * - Example
+ - Time
+ - Mem (MB)
+ * - :ref:`sphx_glr_how_to_deploy_models_deploy_object_detection_pytorch.py` (``deploy_object_detection_pytorch.py``)
+ - 04:37.081
+ - 0.0
+ * - :ref:`sphx_glr_how_to_deploy_models_deploy_prequantized.py` (``deploy_prequantized.py``)
+ - 01:52.686
+ - 0.0
+ * - :ref:`sphx_glr_how_to_deploy_models_deploy_model_on_adreno.py` (``deploy_model_on_adreno.py``)
+ - 01:25.280
+ - 0.0
+ * - :ref:`sphx_glr_how_to_deploy_models_deploy_model_on_adreno_tvmc.py` (``deploy_model_on_adreno_tvmc.py``)
+ - 01:14.549
+ - 0.0
+ * - :ref:`sphx_glr_how_to_deploy_models_deploy_model_on_android.py` (``deploy_model_on_android.py``)
+ - 01:02.676
+ - 0.0
+ * - :ref:`sphx_glr_how_to_deploy_models_deploy_prequantized_tflite.py` (``deploy_prequantized_tflite.py``)
+ - 00:58.365
+ - 0.0
+ * - :ref:`sphx_glr_how_to_deploy_models_deploy_model_on_nano.py` (``deploy_model_on_nano.py``)
+ - 00:35.292
+ - 0.0
+ * - :ref:`sphx_glr_how_to_deploy_models_deploy_model_on_rasp.py` (``deploy_model_on_rasp.py``)
+ - 00:34.953
+ - 0.0
+ * - :ref:`sphx_glr_how_to_deploy_models_deploy_sparse.py` (``deploy_sparse.py``)
+ - 00:00.007
+ - 0.0
diff --git a/docs/_sources/how_to/extend_tvm/index.rst.txt b/docs/_sources/how_to/extend_tvm/index.rst.txt
index 2fd8784f6c..9715d6b54a 100644
--- a/docs/_sources/how_to/extend_tvm/index.rst.txt
+++ b/docs/_sources/how_to/extend_tvm/index.rst.txt
@@ -14,15 +14,16 @@ extended.
<div class="sphx-glr-thumbnails">
+.. thumbnail-parent-div-open
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="TVM is a framework that abstracts away the heterogenity of machine learning accelerators. Somet...">
+ <div class="sphx-glr-thumbcontainer" tooltip="TVM is a framework that abstracts away the heterogenity of machine learning accelerators. Sometimes users may want customize some analysis and IR transformations to adapt TVM to their own specialized hardware. This tutorial helps users write a customized pass in TVM.">
.. only:: html
.. image:: /how_to/extend_tvm/images/thumb/sphx_glr_low_level_custom_pass_thumb.png
- :alt: Writing a Customized Pass
+ :alt:
:ref:`sphx_glr_how_to_extend_tvm_low_level_custom_pass.py`
@@ -34,12 +35,12 @@ extended.
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="As the number of optimization passes increases in Relay/tir, it becomes intractable to execute ...">
+ <div class="sphx-glr-thumbcontainer" tooltip="As the number of optimization passes increases in Relay/tir, it becomes intractable to execute them and maintain their dependencies manually. Therefore, we have introduced an infrastructure to manage the optimization passes and make it applicable to different layers of the IR in the TVM stack.">
.. only:: html
.. image:: /how_to/extend_tvm/images/thumb/sphx_glr_use_pass_infra_thumb.png
- :alt: How to Use TVM Pass Infra
+ :alt:
:ref:`sphx_glr_how_to_extend_tvm_use_pass_infra.py`
@@ -51,12 +52,12 @@ extended.
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="As more and more passes are implemented, it becomes useful to instrument pass execution, analyz...">
+ <div class="sphx-glr-thumbcontainer" tooltip="As more and more passes are implemented, it becomes useful to instrument pass execution, analyze per-pass effects, and observe various events.">
.. only:: html
.. image:: /how_to/extend_tvm/images/thumb/sphx_glr_use_pass_instrument_thumb.png
- :alt: How to Use TVM Pass Instrument
+ :alt:
:ref:`sphx_glr_how_to_extend_tvm_use_pass_instrument.py`
@@ -66,6 +67,8 @@ extended.
</div>
+.. thumbnail-parent-div-close
+
.. raw:: html
</div>
diff --git a/docs/_sources/how_to/extend_tvm/low_level_custom_pass.rst.txt b/docs/_sources/how_to/extend_tvm/low_level_custom_pass.rst.txt
index 99694af5f1..83270c4e04 100644
--- a/docs/_sources/how_to/extend_tvm/low_level_custom_pass.rst.txt
+++ b/docs/_sources/how_to/extend_tvm/low_level_custom_pass.rst.txt
@@ -48,7 +48,7 @@ Before reading this tutorial, we assume readers have already known these topics
.. GENERATED FROM PYTHON SOURCE LINES 43-48
-.. code-block:: default
+.. code-block:: Python
import tvm
@@ -70,7 +70,7 @@ our customized lowering pass to manipulate the IR directly instead of using sche
.. GENERATED FROM PYTHON SOURCE LINES 52-62
-.. code-block:: default
+.. code-block:: Python
n = tvm.tir.const(128, "int32")
@@ -132,7 +132,7 @@ return value of ``func`` will be ignored.
.. GENERATED FROM PYTHON SOURCE LINES 85-97
-.. code-block:: default
+.. code-block:: Python
loops = []
@@ -171,7 +171,7 @@ this value.
.. GENERATED FROM PYTHON SOURCE LINES 111-140
-.. code-block:: default
+.. code-block:: Python
@@ -233,7 +233,7 @@ Thus, a good place to put this transformation pass is just after Phase 1.
.. GENERATED FROM PYTHON SOURCE LINES 160-164
-.. code-block:: default
+.. code-block:: Python
with tvm.transform.PassContext(config={"tir.add_lower_pass": [(1, vectorize)]}):
@@ -280,14 +280,17 @@ This tutorial gives a quick view of writing a customized IR transformation pass:
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: low_level_custom_pass.ipynb <low_level_custom_pass.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: low_level_custom_pass.py <low_level_custom_pass.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: low_level_custom_pass.ipynb <low_level_custom_pass.ipynb>`
+ :download:`Download zipped: low_level_custom_pass.zip <low_level_custom_pass.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/extend_tvm/sg_execution_times.rst.txt b/docs/_sources/how_to/extend_tvm/sg_execution_times.rst.txt
index e3fc69e5b2..2a6d9755b8 100644
--- a/docs/_sources/how_to/extend_tvm/sg_execution_times.rst.txt
+++ b/docs/_sources/how_to/extend_tvm/sg_execution_times.rst.txt
@@ -3,14 +3,41 @@
.. _sphx_glr_how_to_extend_tvm_sg_execution_times:
+
Computation times
=================
-**00:04.096** total execution time for **how_to_extend_tvm** files:
-
-+-------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_extend_tvm_use_pass_instrument.py` (``use_pass_instrument.py``) | 00:02.842 | 0.0 MB |
-+-------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_extend_tvm_use_pass_infra.py` (``use_pass_infra.py``) | 00:01.247 | 0.0 MB |
-+-------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_extend_tvm_low_level_custom_pass.py` (``low_level_custom_pass.py``) | 00:00.007 | 0.0 MB |
-+-------------------------------------------------------------------------------------------+-----------+--------+
+**00:05.309** total execution time for 3 files **from how_to/extend_tvm**:
+
+.. container::
+
+ .. raw:: html
+
+ <style scoped>
+ <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet" />
+ <link href="https://cdn.datatables.net/1.13.6/css/dataTables.bootstrap5.min.css" rel="stylesheet" />
+ </style>
+ <script src="https://code.jquery.com/jquery-3.7.0.js"></script>
+ <script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
+ <script src="https://cdn.datatables.net/1.13.6/js/dataTables.bootstrap5.min.js"></script>
+ <script type="text/javascript" class="init">
+ $(document).ready( function () {
+ $('table.sg-datatable').DataTable({order: [[1, 'desc']]});
+ } );
+ </script>
+
+ .. list-table::
+ :header-rows: 1
+ :class: table table-striped sg-datatable
+
+ * - Example
+ - Time
+ - Mem (MB)
+ * - :ref:`sphx_glr_how_to_extend_tvm_use_pass_instrument.py` (``use_pass_instrument.py``)
+ - 00:03.715
+ - 0.0
+ * - :ref:`sphx_glr_how_to_extend_tvm_use_pass_infra.py` (``use_pass_infra.py``)
+ - 00:01.585
+ - 0.0
+ * - :ref:`sphx_glr_how_to_extend_tvm_low_level_custom_pass.py` (``low_level_custom_pass.py``)
+ - 00:00.009
+ - 0.0
diff --git a/docs/_sources/how_to/extend_tvm/use_pass_infra.rst.txt b/docs/_sources/how_to/extend_tvm/use_pass_infra.rst.txt
index 92db838106..435d8bae53 100644
--- a/docs/_sources/how_to/extend_tvm/use_pass_infra.rst.txt
+++ b/docs/_sources/how_to/extend_tvm/use_pass_infra.rst.txt
@@ -47,7 +47,7 @@ The same approach can be used for tir as well.
.. GENERATED FROM PYTHON SOURCE LINES 42-49
-.. code-block:: default
+.. code-block:: Python
@@ -73,7 +73,7 @@ Similarly, users can write a tir primitive function and apply the tir passes.
.. GENERATED FROM PYTHON SOURCE LINES 55-73
-.. code-block:: default
+.. code-block:: Python
@@ -115,7 +115,7 @@ Manually Apply Optimization Passes
.. GENERATED FROM PYTHON SOURCE LINES 84-101
-.. code-block:: default
+.. code-block:: Python
# Let's first create a relay Module which contains one or multiple Relay
@@ -142,6 +142,8 @@ Manually Apply Optimization Passes
.. code-block:: none
+ /workspace/gallery/how_to/extend_tvm/use_pass_infra.py:59: RuntimeWarning: overflow encountered in cast
+ c_data = np.empty(shape).astype("float32")
def @main(%x: Tensor[(1, 64, 56, 56), float32] /* ty=Tensor[(1, 64, 56, 56), float32] */, %weight: Tensor[(64, 64, 3, 3), float32] /* ty=Tensor[(64, 64, 3, 3), float32] */) -> Tensor[(1, 64, 54, 54), float32] {
%0 = nn.conv2d(%x, %weight, padding=[0, 0, 0, 0]) /* ty=Tensor[(1, 64, 54, 54), float32] */;
%1 = add(%0, meta[relay.Constant][0] /* ty=Tensor[(1, 64, 54, 54), float32] */) /* ty=Tensor[(1, 64, 54, 54), float32] */;
@@ -162,7 +164,7 @@ eliminate the common expressions that used by `z` and `z1`.
.. GENERATED FROM PYTHON SOURCE LINES 104-107
-.. code-block:: default
+.. code-block:: Python
mod = relay.transform.EliminateCommonSubexpr()(mod)
print(mod)
@@ -195,7 +197,7 @@ opt level 0 will not allow operators to be fused together. Users can pass the
.. GENERATED FROM PYTHON SOURCE LINES 111-117
-.. code-block:: default
+.. code-block:: Python
mod = relay.transform.FuseOps(fuse_opt_level=0)(mod)
@@ -259,7 +261,7 @@ pass.
.. GENERATED FROM PYTHON SOURCE LINES 137-152
-.. code-block:: default
+.. code-block:: Python
# Now let's execute some passes through :py:class:`tvm.transform.Sequential`
@@ -312,7 +314,7 @@ for users to customize the optimization level that they want to execute.
.. GENERATED FROM PYTHON SOURCE LINES 160-165
-.. code-block:: default
+.. code-block:: Python
with tvm.transform.PassContext(opt_level=3):
@@ -354,7 +356,7 @@ identical addition operations.
.. GENERATED FROM PYTHON SOURCE LINES 173-178
-.. code-block:: default
+.. code-block:: Python
with tvm.transform.PassContext(opt_level=3, disabled_pass=["EliminateCommonSubexpr"]):
@@ -400,7 +402,7 @@ customized pass.
.. GENERATED FROM PYTHON SOURCE LINES 189-216
-.. code-block:: default
+.. code-block:: Python
@@ -465,7 +467,7 @@ could be like the following to enable IR dumping for ``FoldConstant`` optimizati
.. GENERATED FROM PYTHON SOURCE LINES 223-235
-.. code-block:: default
+.. code-block:: Python
f = example()
@@ -502,7 +504,7 @@ a PassInsturment class printing IR before execution of each passes:
.. GENERATED FROM PYTHON SOURCE LINES 247-266
-.. code-block:: default
+.. code-block:: Python
@@ -680,14 +682,17 @@ how we can debug a pass using the ``PrintIR`` and tracing.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: use_pass_infra.ipynb <use_pass_infra.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: use_pass_infra.py <use_pass_infra.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: use_pass_infra.ipynb <use_pass_infra.ipynb>`
+ :download:`Download zipped: use_pass_infra.zip <use_pass_infra.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/extend_tvm/use_pass_instrument.rst.txt b/docs/_sources/how_to/extend_tvm/use_pass_instrument.rst.txt
index f924e47507..1d2e050ded 100644
--- a/docs/_sources/how_to/extend_tvm/use_pass_instrument.rst.txt
+++ b/docs/_sources/how_to/extend_tvm/use_pass_instrument.rst.txt
@@ -41,7 +41,7 @@ passes. Please also refer to the :ref:`pass-infra`.
.. GENERATED FROM PYTHON SOURCE LINES 36-48
-.. code-block:: default
+.. code-block:: Python
import tvm
@@ -70,7 +70,7 @@ We use pre-defined resnet-18 network in Relay.
.. GENERATED FROM PYTHON SOURCE LINES 52-61
-.. code-block:: default
+.. code-block:: Python
batch_size = 1
num_of_image_class = 1000
@@ -199,7 +199,7 @@ profile the execution time of each passes.
.. GENERATED FROM PYTHON SOURCE LINES 67-77
-.. code-block:: default
+.. code-block:: Python
timing_inst = PassTimingInstrument()
with tvm.transform.PassContext(instruments=[timing_inst]):
@@ -220,10 +220,10 @@ profile the execution time of each passes.
.. code-block:: none
Printing results of timing profile...
- InferType: 24678us [24678us] (48.59%; 48.59%)
- FoldScaleAxis: 26113us [9us] (51.41%; 51.41%)
- FoldConstant: 26104us [1779us] (51.39%; 99.97%)
- InferType: 24325us [24325us] (47.89%; 93.19%)
+ InferType: 27711us [27711us] (48.67%; 48.67%)
+ FoldScaleAxis: 29220us [17us] (51.33%; 51.33%)
+ FoldConstant: 29203us [2103us] (51.30%; 99.94%)
+ InferType: 27100us [27100us] (47.60%; 92.80%)
@@ -242,7 +242,7 @@ Refer to following sections and :py:func:`tvm.instrument.pass_instrument` for th
.. GENERATED FROM PYTHON SOURCE LINES 86-95
-.. code-block:: default
+.. code-block:: Python
cur_pass_ctx = tvm.transform.PassContext.current()
cur_pass_ctx.override_instruments([timing_inst])
@@ -262,10 +262,10 @@ Refer to following sections and :py:func:`tvm.instrument.pass_instrument` for th
.. code-block:: none
Printing results of timing profile...
- InferType: 24274us [24274us] (47.68%; 47.68%)
- FoldScaleAxis: 26631us [8us] (52.32%; 52.32%)
- FoldConstant: 26623us [1734us] (52.30%; 99.97%)
- InferType: 24889us [24889us] (48.89%; 93.49%)
+ InferType: 27511us [27511us] (48.39%; 48.39%)
+ FoldScaleAxis: 29339us [15us] (51.61%; 51.61%)
+ FoldConstant: 29324us [2311us] (51.58%; 99.95%)
+ InferType: 27014us [27014us] (47.52%; 92.12%)
@@ -280,7 +280,7 @@ Profiles are cleared so nothing is printed.
.. GENERATED FROM PYTHON SOURCE LINES 100-106
-.. code-block:: default
+.. code-block:: Python
cur_pass_ctx.override_instruments([])
# Uncomment the call to .render() to see a warning like:
@@ -308,7 +308,7 @@ find the name of each operator. And we do this before and after passes to calcul
.. GENERATED FROM PYTHON SOURCE LINES 115-191
-.. code-block:: default
+.. code-block:: Python
@@ -406,7 +406,7 @@ profile result.
.. GENERATED FROM PYTHON SOURCE LINES 200-221
-.. code-block:: default
+.. code-block:: Python
call_node_inst = RelayCallNodeDiffer()
desired_layouts = {
@@ -442,7 +442,7 @@ We can see how many CallNode increase/decrease per op type.
.. GENERATED FROM PYTHON SOURCE LINES 223-229
-.. code-block:: default
+.. code-block:: Python
from pprint import pprint
@@ -477,7 +477,7 @@ Define ``PassInstrument`` classes which raise exceptions in enter/exit ``PassCon
.. GENERATED FROM PYTHON SOURCE LINES 235-275
-.. code-block:: default
+.. code-block:: Python
class PassExampleBase:
def __init__(self, name):
@@ -536,7 +536,7 @@ In following example, we can see ``exit_pass_ctx`` of `PassFine_0` is executed a
.. GENERATED FROM PYTHON SOURCE LINES 281-294
-.. code-block:: default
+.. code-block:: Python
demo_ctx = tvm.transform.PassContext(
instruments=[
@@ -574,7 +574,7 @@ to be cleared, so nothing is printed when ``override_instruments`` is called.
.. GENERATED FROM PYTHON SOURCE LINES 297-299
-.. code-block:: default
+.. code-block:: Python
demo_ctx.override_instruments([]) # no PassFine_0 exit_pass_ctx printed....etc
@@ -593,7 +593,7 @@ after the one throwing the exception do not execute ``exit_pass_ctx``.
.. GENERATED FROM PYTHON SOURCE LINES 303-317
-.. code-block:: default
+.. code-block:: Python
demo_ctx = tvm.transform.PassContext(
instruments=[
@@ -646,7 +646,7 @@ We use ``run_before_pass`` as an example:
.. GENERATED FROM PYTHON SOURCE LINES 323-344
-.. code-block:: default
+.. code-block:: Python
@pass_instrument
class PassBadRunBefore(PassExampleBase):
@@ -701,7 +701,7 @@ is called.
.. GENERATED FROM PYTHON SOURCE LINES 348-350
-.. code-block:: default
+.. code-block:: Python
demo_ctx.override_instruments([])
@@ -727,7 +727,7 @@ called. Let try this with current ``PassContext``:
.. GENERATED FROM PYTHON SOURCE LINES 353-362
-.. code-block:: default
+.. code-block:: Python
cur_pass_ctx = tvm.transform.PassContext.current()
cur_pass_ctx.override_instruments(
@@ -760,7 +760,7 @@ as expectation.
.. GENERATED FROM PYTHON SOURCE LINES 365-371
-.. code-block:: default
+.. code-block:: Python
try:
# No ``exit_pass_ctx`` got executed.
@@ -792,7 +792,7 @@ Clear instruments.
.. GENERATED FROM PYTHON SOURCE LINES 373-374
-.. code-block:: default
+.. code-block:: Python
cur_pass_ctx.override_instruments([])
@@ -817,14 +817,17 @@ Clear instruments.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: use_pass_instrument.ipynb <use_pass_instrument.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: use_pass_instrument.py <use_pass_instrument.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: use_pass_instrument.ipynb <use_pass_instrument.ipynb>`
+ :download:`Download zipped: use_pass_instrument.zip <use_pass_instrument.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/optimize_operators/index.rst.txt b/docs/_sources/how_to/optimize_operators/index.rst.txt
index cbc6437e8d..49100b8041 100644
--- a/docs/_sources/how_to/optimize_operators/index.rst.txt
+++ b/docs/_sources/how_to/optimize_operators/index.rst.txt
@@ -12,15 +12,16 @@ variety of targets.
<div class="sphx-glr-thumbnails">
+.. thumbnail-parent-div-open
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="(TL;DR) TVM provides abstract interfaces which allows users to depict an algorithm and the algo...">
+ <div class="sphx-glr-thumbcontainer" tooltip="(TL;DR) TVM provides abstract interfaces which allows users to depict an algorithm and the algorithm's implementing organization (the so-called schedule) separately. Typically, writing algorithm in high-performance schedule breaks the algorithm's readability and modularity. Also, trying various seemingly promising schedules is time-consuming. With the help of TVM, we can try these schedules efficiently to enhance the performance.">
.. only:: html
.. image:: /how_to/optimize_operators/images/thumb/sphx_glr_opt_gemm_thumb.png
- :alt: How to optimize GEMM on CPU
+ :alt:
:ref:`sphx_glr_how_to_optimize_operators_opt_gemm.py`
@@ -32,12 +33,12 @@ variety of targets.
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="In this tutorial, we will demonstrate how to write a high performance convolution implementatio...">
+ <div class="sphx-glr-thumbcontainer" tooltip="In this tutorial, we will demonstrate how to write a high performance convolution implementation in TVM. We use square size input tensors and filters as an example, and assume the input to convolution has a large batch. In this example, we use a different layout to store the data in order to achieve better data locality. The buffer layout is HWCN, which stands for height, width, channel, batch.">
.. only:: html
.. image:: /how_to/optimize_operators/images/thumb/sphx_glr_opt_conv_cuda_thumb.png
- :alt: How to optimize convolution on GPU
+ :alt:
:ref:`sphx_glr_how_to_optimize_operators_opt_conv_cuda.py`
@@ -49,12 +50,12 @@ variety of targets.
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="In this tutorial, we will demonstrate how to write a high performance convolution schedule usin...">
+ <div class="sphx-glr-thumbcontainer" tooltip="In this tutorial, we will demonstrate how to write a high performance convolution schedule using TensorCores in TVM. In this example, we assume the input to convolution has a large batch. We strongly recommend covering the opt-conv-gpu tutorial first.">
.. only:: html
.. image:: /how_to/optimize_operators/images/thumb/sphx_glr_opt_conv_tensorcore_thumb.png
- :alt: How to optimize convolution using TensorCores
+ :alt:
:ref:`sphx_glr_how_to_optimize_operators_opt_conv_tensorcore.py`
@@ -64,6 +65,8 @@ variety of targets.
</div>
+.. thumbnail-parent-div-close
+
.. raw:: html
</div>
diff --git a/docs/_sources/how_to/optimize_operators/opt_conv_cuda.rst.txt b/docs/_sources/how_to/optimize_operators/opt_conv_cuda.rst.txt
index 6747cb67d6..fa80956f05 100644
--- a/docs/_sources/how_to/optimize_operators/opt_conv_cuda.rst.txt
+++ b/docs/_sources/how_to/optimize_operators/opt_conv_cuda.rst.txt
@@ -48,7 +48,7 @@ convolution. The following code defines the convolution algorithm in TVM.
.. GENERATED FROM PYTHON SOURCE LINES 42-84
-.. code-block:: default
+.. code-block:: Python
import numpy as np
@@ -125,7 +125,7 @@ registers.
.. GENERATED FROM PYTHON SOURCE LINES 109-119
-.. code-block:: default
+.. code-block:: Python
# Designate the memory hierarchy
@@ -165,7 +165,7 @@ shared memory.
.. GENERATED FROM PYTHON SOURCE LINES 136-164
-.. code-block:: default
+.. code-block:: Python
# tile consts
@@ -220,7 +220,7 @@ each thread computes 4 strided grids, where size of each grid is 4 x 4.
.. GENERATED FROM PYTHON SOURCE LINES 178-190
-.. code-block:: default
+.. code-block:: Python
tyz, fi = s[B].split(fi, nparts=vthread) # virtual thread split
@@ -254,7 +254,7 @@ coopertively fetch dependent data from global memory.
.. GENERATED FROM PYTHON SOURCE LINES 199-235
-.. code-block:: default
+.. code-block:: Python
@@ -310,7 +310,7 @@ latency of convolution.
.. GENERATED FROM PYTHON SOURCE LINES 242-253
-.. code-block:: default
+.. code-block:: Python
func = tvm.build(s, [A, W, B], "cuda")
@@ -331,7 +331,7 @@ latency of convolution.
.. code-block:: none
- Convolution: 53.393470 ms
+ Convolution: 53.387294 ms
@@ -343,14 +343,17 @@ latency of convolution.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: opt_conv_cuda.ipynb <opt_conv_cuda.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: opt_conv_cuda.py <opt_conv_cuda.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: opt_conv_cuda.ipynb <opt_conv_cuda.ipynb>`
+ :download:`Download zipped: opt_conv_cuda.zip <opt_conv_cuda.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/optimize_operators/opt_conv_tensorcore.rst.txt b/docs/_sources/how_to/optimize_operators/opt_conv_tensorcore.rst.txt
index a5477fe114..edf072a0da 100644
--- a/docs/_sources/how_to/optimize_operators/opt_conv_tensorcore.rst.txt
+++ b/docs/_sources/how_to/optimize_operators/opt_conv_tensorcore.rst.txt
@@ -60,7 +60,7 @@ NHWCnc memory layout.The following code defines the convolution algorithm in TVM
.. GENERATED FROM PYTHON SOURCE LINES 53-145
-.. code-block:: default
+.. code-block:: Python
import tvm
@@ -172,7 +172,7 @@ stores at the on-chip registers level, the same place with local memory.
.. GENERATED FROM PYTHON SOURCE LINES 155-163
-.. code-block:: default
+.. code-block:: Python
# Designate the memory hierarchy
@@ -203,7 +203,7 @@ are both used in matrix multiplication, so we can just write following three int
.. GENERATED FROM PYTHON SOURCE LINES 173-294
-.. code-block:: default
+.. code-block:: Python
@@ -359,7 +359,7 @@ one time.
.. GENERATED FROM PYTHON SOURCE LINES 316-379
-.. code-block:: default
+.. code-block:: Python
# Define tiling sizes
@@ -500,7 +500,7 @@ by mapping the 2D convolution to tensor intrinsics
.. GENERATED FROM PYTHON SOURCE LINES 384-391
-.. code-block:: default
+.. code-block:: Python
s[AF].tensorize(AF.op.axis[-2], intrin_wmma_load_matrix("wmma.matrix_a"))
@@ -575,7 +575,7 @@ be able to run on our build server
.. GENERATED FROM PYTHON SOURCE LINES 397-410
-.. code-block:: default
+.. code-block:: Python
dev = tvm.cuda(0)
@@ -598,7 +598,7 @@ be able to run on our build server
.. code-block:: none
- conv2d with tensor core: 12.215050 ms
+ conv2d with tensor core: 12.222675 ms
@@ -617,14 +617,17 @@ call TensorCores on specific GPUs.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: opt_conv_tensorcore.ipynb <opt_conv_tensorcore.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: opt_conv_tensorcore.py <opt_conv_tensorcore.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: opt_conv_tensorcore.ipynb <opt_conv_tensorcore.ipynb>`
+ :download:`Download zipped: opt_conv_tensorcore.zip <opt_conv_tensorcore.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/optimize_operators/opt_gemm.rst.txt b/docs/_sources/how_to/optimize_operators/opt_gemm.rst.txt
index 38d71407f9..8fbc032b79 100644
--- a/docs/_sources/how_to/optimize_operators/opt_gemm.rst.txt
+++ b/docs/_sources/how_to/optimize_operators/opt_gemm.rst.txt
@@ -63,7 +63,7 @@ Then we write a baseline implementation, the simplest way to write a matrix mult
.. GENERATED FROM PYTHON SOURCE LINES 58-119
-.. code-block:: default
+.. code-block:: Python
import tvm
@@ -134,8 +134,8 @@ Then we write a baseline implementation, the simplest way to write a matrix mult
.. code-block:: none
- Numpy running time: 0.018670
- Baseline: 3.373950
+ Numpy running time: 0.020132
+ Baseline: 3.561228
@@ -147,7 +147,7 @@ Here is the generated IR using our baseline schedule.
.. GENERATED FROM PYTHON SOURCE LINES 122-125
-.. code-block:: default
+.. code-block:: Python
print(tvm.lower(s, [A, B, C], simple_mode=True))
@@ -192,7 +192,7 @@ fill 32 * 32 * sizeof(float) which is 4KB in the cache whose total size is 32KB
.. GENERATED FROM PYTHON SOURCE LINES 132-157
-.. code-block:: default
+.. code-block:: Python
bn = 32
@@ -227,7 +227,7 @@ fill 32 * 32 * sizeof(float) which is 4KB in the cache whose total size is 32KB
.. code-block:: none
- Opt1: 0.288973
+ Opt1: 0.325028
@@ -238,7 +238,7 @@ Here is the generated IR after blocking.
.. GENERATED FROM PYTHON SOURCE LINES 159-162
-.. code-block:: default
+.. code-block:: Python
print(tvm.lower(s, [A, B, C], simple_mode=True))
@@ -287,7 +287,7 @@ In this tutorial, we chose to vectorize the inner loop row data since it is cach
.. GENERATED FROM PYTHON SOURCE LINES 171-192
-.. code-block:: default
+.. code-block:: Python
s = te.create_schedule(C.op)
@@ -318,7 +318,7 @@ In this tutorial, we chose to vectorize the inner loop row data since it is cach
.. code-block:: none
- Opt2: 0.266603
+ Opt2: 0.321507
@@ -329,7 +329,7 @@ Here is the generated IR after vectorization.
.. GENERATED FROM PYTHON SOURCE LINES 194-197
-.. code-block:: default
+.. code-block:: Python
print(tvm.lower(s, [A, B, C], simple_mode=True))
@@ -376,7 +376,7 @@ the access pattern for A matrix is more cache friendly.
.. GENERATED FROM PYTHON SOURCE LINES 204-224
-.. code-block:: default
+.. code-block:: Python
s = te.create_schedule(C.op)
@@ -406,7 +406,7 @@ the access pattern for A matrix is more cache friendly.
.. code-block:: none
- Opt3: 0.113280
+ Opt3: 0.138312
@@ -417,7 +417,7 @@ Here is the generated IR after loop permutation.
.. GENERATED FROM PYTHON SOURCE LINES 226-229
-.. code-block:: default
+.. code-block:: Python
print(tvm.lower(s, [A, B, C], simple_mode=True))
@@ -478,7 +478,7 @@ flattening.
.. GENERATED FROM PYTHON SOURCE LINES 250-285
-.. code-block:: default
+.. code-block:: Python
@@ -523,7 +523,7 @@ flattening.
.. code-block:: none
- Opt4: 0.104105
+ Opt4: 0.108651
@@ -534,7 +534,7 @@ Here is the generated IR after array packing.
.. GENERATED FROM PYTHON SOURCE LINES 287-290
-.. code-block:: default
+.. code-block:: Python
print(tvm.lower(s, [A, B, C], simple_mode=True))
@@ -586,7 +586,7 @@ write to C when all the block results are ready.
.. GENERATED FROM PYTHON SOURCE LINES 297-336
-.. code-block:: default
+.. code-block:: Python
s = te.create_schedule(C.op)
@@ -635,7 +635,7 @@ write to C when all the block results are ready.
.. code-block:: none
- Opt5: 0.112303
+ Opt5: 0.114245
@@ -646,7 +646,7 @@ Here is the generated IR after blocking.
.. GENERATED FROM PYTHON SOURCE LINES 338-341
-.. code-block:: default
+.. code-block:: Python
print(tvm.lower(s, [A, B, C], simple_mode=True))
@@ -703,7 +703,7 @@ Furthermore, we can also utilize multi-core processors to do the thread-level pa
.. GENERATED FROM PYTHON SOURCE LINES 345-380
-.. code-block:: default
+.. code-block:: Python
s = te.create_schedule(C.op)
@@ -748,7 +748,7 @@ Furthermore, we can also utilize multi-core processors to do the thread-level pa
.. code-block:: none
- Opt6: 0.133934
+ Opt6: 0.136407
@@ -759,7 +759,7 @@ Here is the generated IR after parallelization.
.. GENERATED FROM PYTHON SOURCE LINES 382-385
-.. code-block:: default
+.. code-block:: Python
print(tvm.lower(s, [A, B, C], simple_mode=True))
@@ -826,14 +826,17 @@ tutorial by yourself to observe the performance gain achieved by TVM.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: opt_gemm.ipynb <opt_gemm.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: opt_gemm.py <opt_gemm.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: opt_gemm.ipynb <opt_gemm.ipynb>`
+ :download:`Download zipped: opt_gemm.zip <opt_gemm.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/optimize_operators/sg_execution_times.rst.txt b/docs/_sources/how_to/optimize_operators/sg_execution_times.rst.txt
index 0ce1577536..f9949a83e5 100644
--- a/docs/_sources/how_to/optimize_operators/sg_execution_times.rst.txt
+++ b/docs/_sources/how_to/optimize_operators/sg_execution_times.rst.txt
@@ -3,14 +3,41 @@
.. _sphx_glr_how_to_optimize_operators_sg_execution_times:
+
Computation times
=================
-**00:33.432** total execution time for **how_to_optimize_operators** files:
-
-+-----------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_optimize_operators_opt_gemm.py` (``opt_gemm.py``) | 00:30.350 | 0.0 MB |
-+-----------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_optimize_operators_opt_conv_tensorcore.py` (``opt_conv_tensorcore.py``) | 00:01.944 | 0.0 MB |
-+-----------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_optimize_operators_opt_conv_cuda.py` (``opt_conv_cuda.py``) | 00:01.138 | 0.0 MB |
-+-----------------------------------------------------------------------------------------------+-----------+--------+
+**00:36.947** total execution time for 3 files **from how_to/optimize_operators**:
+
+.. container::
+
+ .. raw:: html
+
+ <style scoped>
+ <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet" />
+ <link href="https://cdn.datatables.net/1.13.6/css/dataTables.bootstrap5.min.css" rel="stylesheet" />
+ </style>
+ <script src="https://code.jquery.com/jquery-3.7.0.js"></script>
+ <script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
+ <script src="https://cdn.datatables.net/1.13.6/js/dataTables.bootstrap5.min.js"></script>
+ <script type="text/javascript" class="init">
+ $(document).ready( function () {
+ $('table.sg-datatable').DataTable({order: [[1, 'desc']]});
+ } );
+ </script>
+
+ .. list-table::
+ :header-rows: 1
+ :class: table table-striped sg-datatable
+
+ * - Example
+ - Time
+ - Mem (MB)
+ * - :ref:`sphx_glr_how_to_optimize_operators_opt_gemm.py` (``opt_gemm.py``)
+ - 00:33.693
+ - 0.0
+ * - :ref:`sphx_glr_how_to_optimize_operators_opt_conv_tensorcore.py` (``opt_conv_tensorcore.py``)
+ - 00:02.043
+ - 0.0
+ * - :ref:`sphx_glr_how_to_optimize_operators_opt_conv_cuda.py` (``opt_conv_cuda.py``)
+ - 00:01.211
+ - 0.0
diff --git a/docs/_sources/how_to/tune_with_autoscheduler/index.rst.txt b/docs/_sources/how_to/tune_with_autoscheduler/index.rst.txt
index 50d58c258e..614cfed074 100644
--- a/docs/_sources/how_to/tune_with_autoscheduler/index.rst.txt
+++ b/docs/_sources/how_to/tune_with_autoscheduler/index.rst.txt
@@ -13,6 +13,7 @@ common platforms.
<div class="sphx-glr-thumbnails">
+.. thumbnail-parent-div-open
.. raw:: html
@@ -21,7 +22,7 @@ common platforms.
.. only:: html
.. image:: /how_to/tune_with_autoscheduler/images/thumb/sphx_glr_tune_conv2d_layer_cuda_thumb.png
- :alt: Auto-scheduling a Convolution Layer for GPU
+ :alt:
:ref:`sphx_glr_how_to_tune_with_autoscheduler_tune_conv2d_layer_cuda.py`
@@ -33,12 +34,12 @@ common platforms.
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="Auto-tuning for specific devices and workloads is critical for getting the best performance. Th...">
+ <div class="sphx-glr-thumbcontainer" tooltip="Auto-tuning for specific devices and workloads is critical for getting the best performance. This is a tutorial on how to tune a whole neural network for x86 CPU with the auto-scheduler.">
.. only:: html
.. image:: /how_to/tune_with_autoscheduler/images/thumb/sphx_glr_tune_network_x86_thumb.png
- :alt: Auto-scheduling a Neural Network for x86 CPU
+ :alt:
:ref:`sphx_glr_how_to_tune_with_autoscheduler_tune_network_x86.py`
@@ -50,12 +51,12 @@ common platforms.
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="Auto-tuning for specific devices and workloads is critical for getting the best performance. Th...">
+ <div class="sphx-glr-thumbcontainer" tooltip="Auto-tuning for specific devices and workloads is critical for getting the best performance. This is a tutorial on how to tune a whole neural network for NVIDIA GPU with the auto-scheduler.">
.. only:: html
.. image:: /how_to/tune_with_autoscheduler/images/thumb/sphx_glr_tune_network_cuda_thumb.png
- :alt: Auto-scheduling a Neural Network for NVIDIA GPU
+ :alt:
:ref:`sphx_glr_how_to_tune_with_autoscheduler_tune_network_cuda.py`
@@ -67,12 +68,12 @@ common platforms.
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="Auto-tuning for specific devices and workloads is critical for getting the best performance. Th...">
+ <div class="sphx-glr-thumbcontainer" tooltip="Auto-tuning for specific devices and workloads is critical for getting the best performance. This is a tutorial on how to tune a whole neural network for ARM CPU with the auto-scheduler via RPC.">
.. only:: html
.. image:: /how_to/tune_with_autoscheduler/images/thumb/sphx_glr_tune_network_arm_thumb.png
- :alt: Auto-scheduling a Neural Network for ARM CPU
+ :alt:
:ref:`sphx_glr_how_to_tune_with_autoscheduler_tune_network_arm.py`
@@ -84,12 +85,12 @@ common platforms.
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="Auto-tuning for specific devices and workloads is critical for getting the best performance. Th...">
+ <div class="sphx-glr-thumbcontainer" tooltip="Auto-tuning for specific devices and workloads is critical for getting the best performance. This is a tutorial on how to tune a whole neural network for mali GPU with the auto-scheduler.">
.. only:: html
.. image:: /how_to/tune_with_autoscheduler/images/thumb/sphx_glr_tune_network_mali_thumb.png
- :alt: Auto-scheduling a Neural Network for mali GPU
+ :alt:
:ref:`sphx_glr_how_to_tune_with_autoscheduler_tune_network_mali.py`
@@ -101,12 +102,12 @@ common platforms.
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="This is a tutorial on how to use the auto-scheduler to tune a sparse matrix multiplication for ...">
+ <div class="sphx-glr-thumbcontainer" tooltip="This is a tutorial on how to use the auto-scheduler to tune a sparse matrix multiplication for CPUs.">
.. only:: html
.. image:: /how_to/tune_with_autoscheduler/images/thumb/sphx_glr_tune_sparse_x86_thumb.png
- :alt: Auto-scheduling Sparse Matrix Multiplication on CPU with Custom Sketch Rule
+ :alt:
:ref:`sphx_glr_how_to_tune_with_autoscheduler_tune_sparse_x86.py`
@@ -116,6 +117,8 @@ common platforms.
</div>
+.. thumbnail-parent-div-close
+
.. raw:: html
</div>
diff --git a/docs/_sources/how_to/tune_with_autoscheduler/sg_execution_times.rst.txt b/docs/_sources/how_to/tune_with_autoscheduler/sg_execution_times.rst.txt
index 1ec5c84780..75b31dfda8 100644
--- a/docs/_sources/how_to/tune_with_autoscheduler/sg_execution_times.rst.txt
+++ b/docs/_sources/how_to/tune_with_autoscheduler/sg_execution_times.rst.txt
@@ -3,20 +3,50 @@
.. _sphx_glr_how_to_tune_with_autoscheduler_sg_execution_times:
+
Computation times
=================
-**03:42.427** total execution time for **how_to_tune_with_autoscheduler** files:
-
-+----------------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_tune_with_autoscheduler_tune_network_x86.py` (``tune_network_x86.py``) | 01:36.749 | 0.0 MB |
-+----------------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_tune_with_autoscheduler_tune_network_cuda.py` (``tune_network_cuda.py``) | 01:12.335 | 0.0 MB |
-+----------------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_tune_with_autoscheduler_tune_network_arm.py` (``tune_network_arm.py``) | 00:20.218 | 0.0 MB |
-+----------------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_tune_with_autoscheduler_tune_network_mali.py` (``tune_network_mali.py``) | 00:17.046 | 0.0 MB |
-+----------------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_tune_with_autoscheduler_tune_conv2d_layer_cuda.py` (``tune_conv2d_layer_cuda.py``) | 00:15.977 | 0.0 MB |
-+----------------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_tune_with_autoscheduler_tune_sparse_x86.py` (``tune_sparse_x86.py``) | 00:00.100 | 0.0 MB |
-+----------------------------------------------------------------------------------------------------------+-----------+--------+
+**04:09.845** total execution time for 6 files **from how_to/tune_with_autoscheduler**:
+
+.. container::
+
+ .. raw:: html
+
+ <style scoped>
+ <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet" />
+ <link href="https://cdn.datatables.net/1.13.6/css/dataTables.bootstrap5.min.css" rel="stylesheet" />
+ </style>
+ <script src="https://code.jquery.com/jquery-3.7.0.js"></script>
+ <script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
+ <script src="https://cdn.datatables.net/1.13.6/js/dataTables.bootstrap5.min.js"></script>
+ <script type="text/javascript" class="init">
+ $(document).ready( function () {
+ $('table.sg-datatable').DataTable({order: [[1, 'desc']]});
+ } );
+ </script>
+
+ .. list-table::
+ :header-rows: 1
+ :class: table table-striped sg-datatable
+
+ * - Example
+ - Time
+ - Mem (MB)
+ * - :ref:`sphx_glr_how_to_tune_with_autoscheduler_tune_network_x86.py` (``tune_network_x86.py``)
+ - 01:50.828
+ - 0.0
+ * - :ref:`sphx_glr_how_to_tune_with_autoscheduler_tune_network_cuda.py` (``tune_network_cuda.py``)
+ - 01:18.567
+ - 0.0
+ * - :ref:`sphx_glr_how_to_tune_with_autoscheduler_tune_network_arm.py` (``tune_network_arm.py``)
+ - 00:22.988
+ - 0.0
+ * - :ref:`sphx_glr_how_to_tune_with_autoscheduler_tune_network_mali.py` (``tune_network_mali.py``)
+ - 00:22.309
+ - 0.0
+ * - :ref:`sphx_glr_how_to_tune_with_autoscheduler_tune_conv2d_layer_cuda.py` (``tune_conv2d_layer_cuda.py``)
+ - 00:15.041
+ - 0.0
+ * - :ref:`sphx_glr_how_to_tune_with_autoscheduler_tune_sparse_x86.py` (``tune_sparse_x86.py``)
+ - 00:00.111
+ - 0.0
diff --git a/docs/_sources/how_to/tune_with_autoscheduler/tune_conv2d_layer_cuda.rst.txt b/docs/_sources/how_to/tune_with_autoscheduler/tune_conv2d_layer_cuda.rst.txt
index 2caa79d3a4..079845fba9 100644
--- a/docs/_sources/how_to/tune_with_autoscheduler/tune_conv2d_layer_cuda.rst.txt
+++ b/docs/_sources/how_to/tune_with_autoscheduler/tune_conv2d_layer_cuda.rst.txt
@@ -44,7 +44,7 @@ __name__ == "__main__":` block.
.. GENERATED FROM PYTHON SOURCE LINES 39-47
-.. code-block:: default
+.. code-block:: Python
import os
@@ -71,7 +71,7 @@ From these tensors, the auto-scheduler can get the whole computational graph.
.. GENERATED FROM PYTHON SOURCE LINES 56-68
-.. code-block:: default
+.. code-block:: Python
@@ -100,7 +100,7 @@ We then create a search task for the last convolution layer in the resnet.
.. GENERATED FROM PYTHON SOURCE LINES 72-85
-.. code-block:: default
+.. code-block:: Python
target = tvm.target.Target("cuda")
@@ -158,7 +158,7 @@ mainly specify how we do the measurement during the search.
.. GENERATED FROM PYTHON SOURCE LINES 103-113
-.. code-block:: default
+.. code-block:: Python
log_file = "conv2d.json"
@@ -194,7 +194,7 @@ file and apply it.
.. GENERATED FROM PYTHON SOURCE LINES 120-131
-.. code-block:: default
+.. code-block:: Python
# Run auto-tuning (search)
@@ -222,7 +222,7 @@ cooperative fetching, unrolling and operator fusion.
.. GENERATED FROM PYTHON SOURCE LINES 135-139
-.. code-block:: default
+.. code-block:: Python
print("Lowered TIR:")
@@ -729,7 +729,7 @@ We build the binary and check its correctness and performance.
.. GENERATED FROM PYTHON SOURCE LINES 143-170
-.. code-block:: default
+.. code-block:: Python
func = tvm.build(sch, args, target)
@@ -766,7 +766,7 @@ We build the binary and check its correctness and performance.
.. code-block:: none
- Execution time of this operator: 0.334 ms
+ Execution time of this operator: 0.333 ms
@@ -787,7 +787,7 @@ They can be used for debugging and learning the behavior of the auto-scheduler.
.. GENERATED FROM PYTHON SOURCE LINES 181-188
-.. code-block:: default
+.. code-block:: Python
print("Equivalent python schedule:")
@@ -1355,7 +1355,7 @@ In the example below we resume the status and do more 5 trials.
.. GENERATED FROM PYTHON SOURCE LINES 193-217
-.. code-block:: default
+.. code-block:: Python
@@ -1395,14 +1395,17 @@ In the example below we resume the status and do more 5 trials.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: tune_conv2d_layer_cuda.ipynb <tune_conv2d_layer_cuda.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: tune_conv2d_layer_cuda.py <tune_conv2d_layer_cuda.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: tune_conv2d_layer_cuda.ipynb <tune_conv2d_layer_cuda.ipynb>`
+ :download:`Download zipped: tune_conv2d_layer_cuda.zip <tune_conv2d_layer_cuda.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/tune_with_autoscheduler/tune_network_arm.rst.txt b/docs/_sources/how_to/tune_with_autoscheduler/tune_network_arm.rst.txt
index 2ce80c2a33..be87bb2409 100644
--- a/docs/_sources/how_to/tune_with_autoscheduler/tune_network_arm.rst.txt
+++ b/docs/_sources/how_to/tune_with_autoscheduler/tune_network_arm.rst.txt
@@ -52,7 +52,7 @@ __name__ == "__main__":` block.
.. GENERATED FROM PYTHON SOURCE LINES 48-61
-.. code-block:: default
+.. code-block:: Python
@@ -90,7 +90,7 @@ So it is recommended to convert your models to NHWC layout to use the auto-sched
.. GENERATED FROM PYTHON SOURCE LINES 73-137
-.. code-block:: default
+.. code-block:: Python
@@ -246,7 +246,7 @@ set :code:`use_ndk` to True if you use android phone.
.. GENERATED FROM PYTHON SOURCE LINES 214-241
-.. code-block:: default
+.. code-block:: Python
#### DEVICE CONFIG ####
@@ -296,7 +296,7 @@ The task scheduler will just optimize this objective.
.. GENERATED FROM PYTHON SOURCE LINES 251-265
-.. code-block:: default
+.. code-block:: Python
# Extract tasks from the network
@@ -556,7 +556,7 @@ so we can read the log file and load the best schedules.
.. GENERATED FROM PYTHON SOURCE LINES 285-350
-.. code-block:: default
+.. code-block:: Python
@@ -719,14 +719,17 @@ Other Tips
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: tune_network_arm.ipynb <tune_network_arm.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: tune_network_arm.py <tune_network_arm.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: tune_network_arm.ipynb <tune_network_arm.ipynb>`
+ :download:`Download zipped: tune_network_arm.zip <tune_network_arm.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/tune_with_autoscheduler/tune_network_cuda.rst.txt b/docs/_sources/how_to/tune_with_autoscheduler/tune_network_cuda.rst.txt
index 70f4e8274c..2e208fed78 100644
--- a/docs/_sources/how_to/tune_with_autoscheduler/tune_network_cuda.rst.txt
+++ b/docs/_sources/how_to/tune_with_autoscheduler/tune_network_cuda.rst.txt
@@ -52,7 +52,7 @@ __name__ == "__main__":` block.
.. GENERATED FROM PYTHON SOURCE LINES 46-55
-.. code-block:: default
+.. code-block:: Python
import sys
@@ -86,7 +86,7 @@ So it is recommended to convert your models to NHWC layout to use the auto-sched
.. GENERATED FROM PYTHON SOURCE LINES 67-127
-.. code-block:: default
+.. code-block:: Python
@@ -169,7 +169,7 @@ The task scheduler will just optimize this objective.
.. GENERATED FROM PYTHON SOURCE LINES 137-147
-.. code-block:: default
+.. code-block:: Python
# Extract tasks from the network
@@ -494,7 +494,7 @@ Now, we set some options for tuning and launch the search tasks
.. GENERATED FROM PYTHON SOURCE LINES 170-192
-.. code-block:: default
+.. code-block:: Python
@@ -600,7 +600,7 @@ so we can read the log file and load the best schedules.
.. GENERATED FROM PYTHON SOURCE LINES 262-280
-.. code-block:: default
+.. code-block:: Python
# Compile with the history best
@@ -632,7 +632,7 @@ so we can read the log file and load the best schedules.
Evaluate inference time cost...
Execution time summary:
mean (ms) median (ms) max (ms) min (ms) std (ms)
- 3.1939 3.1941 3.1949 3.1928 0.0009
+ 3.2050 3.2051 3.2053 3.2046 0.0003
@@ -659,7 +659,7 @@ Other Tips
.. rst-class:: sphx-glr-timing
- **Total running time of the script:** ( 1 minutes 12.335 seconds)
+ **Total running time of the script:** (1 minutes 18.567 seconds)
.. _sphx_glr_download_how_to_tune_with_autoscheduler_tune_network_cuda.py:
@@ -668,14 +668,17 @@ Other Tips
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: tune_network_cuda.ipynb <tune_network_cuda.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: tune_network_cuda.py <tune_network_cuda.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: tune_network_cuda.ipynb <tune_network_cuda.ipynb>`
+ :download:`Download zipped: tune_network_cuda.zip <tune_network_cuda.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/tune_with_autoscheduler/tune_network_mali.rst.txt b/docs/_sources/how_to/tune_with_autoscheduler/tune_network_mali.rst.txt
index 08e35619a7..960e85549c 100644
--- a/docs/_sources/how_to/tune_with_autoscheduler/tune_network_mali.rst.txt
+++ b/docs/_sources/how_to/tune_with_autoscheduler/tune_network_mali.rst.txt
@@ -52,7 +52,7 @@ __name__ == "__main__":` block.
.. GENERATED FROM PYTHON SOURCE LINES 46-58
-.. code-block:: default
+.. code-block:: Python
import os
@@ -89,7 +89,7 @@ So it is recommended to convert your models to NHWC layout to use the auto-sched
.. GENERATED FROM PYTHON SOURCE LINES 70-136
-.. code-block:: default
+.. code-block:: Python
@@ -174,7 +174,7 @@ and register devices to the tracker.
.. GENERATED FROM PYTHON SOURCE LINES 142-147
-.. code-block:: default
+.. code-block:: Python
# Replace this with the device key in your tracker
@@ -202,7 +202,7 @@ The task scheduler will just optimize this objective.
.. GENERATED FROM PYTHON SOURCE LINES 157-166
-.. code-block:: default
+.. code-block:: Python
# Extract tasks from the network
@@ -468,7 +468,7 @@ Now, we set some options for tuning, launch the search tasks and evaluate the en
.. GENERATED FROM PYTHON SOURCE LINES 211-264
-.. code-block:: default
+.. code-block:: Python
@@ -626,14 +626,17 @@ Other Tips
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: tune_network_mali.ipynb <tune_network_mali.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: tune_network_mali.py <tune_network_mali.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: tune_network_mali.ipynb <tune_network_mali.ipynb>`
+ :download:`Download zipped: tune_network_mali.zip <tune_network_mali.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/tune_with_autoscheduler/tune_network_x86.rst.txt b/docs/_sources/how_to/tune_with_autoscheduler/tune_network_x86.rst.txt
index 655d8bcf7b..75a5b53c5d 100644
--- a/docs/_sources/how_to/tune_with_autoscheduler/tune_network_x86.rst.txt
+++ b/docs/_sources/how_to/tune_with_autoscheduler/tune_network_x86.rst.txt
@@ -52,7 +52,7 @@ __name__ == "__main__":` block.
.. GENERATED FROM PYTHON SOURCE LINES 47-58
-.. code-block:: default
+.. code-block:: Python
import sys
@@ -88,7 +88,7 @@ So it is recommended to convert your models to NHWC layout to use the auto-sched
.. GENERATED FROM PYTHON SOURCE LINES 70-145
-.. code-block:: default
+.. code-block:: Python
@@ -186,7 +186,7 @@ The task scheduler will just optimize this objective.
.. GENERATED FROM PYTHON SOURCE LINES 155-173
-.. code-block:: default
+.. code-block:: Python
# Extract tasks from the network
@@ -499,7 +499,7 @@ Now, we set some options for tuning and launch the search tasks
.. GENERATED FROM PYTHON SOURCE LINES 190-224
-.. code-block:: default
+.. code-block:: Python
@@ -622,7 +622,7 @@ so we can read the log file and load the best schedules.
.. GENERATED FROM PYTHON SOURCE LINES 299-317
-.. code-block:: default
+.. code-block:: Python
# Compile with the history best
@@ -654,7 +654,7 @@ so we can read the log file and load the best schedules.
Evaluate inference time cost...
Execution time summary:
mean (ms) median (ms) max (ms) min (ms) std (ms)
- 752.9045 752.8902 754.5578 751.2657 1.3440
+ 816.5139 809.0708 832.1539 808.3170 11.0635
@@ -681,7 +681,7 @@ Other Tips
.. rst-class:: sphx-glr-timing
- **Total running time of the script:** ( 1 minutes 36.749 seconds)
+ **Total running time of the script:** (1 minutes 50.828 seconds)
.. _sphx_glr_download_how_to_tune_with_autoscheduler_tune_network_x86.py:
@@ -690,14 +690,17 @@ Other Tips
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: tune_network_x86.ipynb <tune_network_x86.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: tune_network_x86.py <tune_network_x86.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: tune_network_x86.ipynb <tune_network_x86.ipynb>`
+ :download:`Download zipped: tune_network_x86.zip <tune_network_x86.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/tune_with_autoscheduler/tune_sparse_x86.rst.txt b/docs/_sources/how_to/tune_with_autoscheduler/tune_sparse_x86.rst.txt
index 7f590cd09b..bc0145a126 100644
--- a/docs/_sources/how_to/tune_with_autoscheduler/tune_sparse_x86.rst.txt
+++ b/docs/_sources/how_to/tune_with_autoscheduler/tune_sparse_x86.rst.txt
@@ -43,7 +43,7 @@ __name__ == "__main__":` block.
.. GENERATED FROM PYTHON SOURCE LINES 37-49
-.. code-block:: default
+.. code-block:: Python
@@ -74,7 +74,7 @@ From these tensors, the auto-scheduler can get the whole computational graph.
.. GENERATED FROM PYTHON SOURCE LINES 55-72
-.. code-block:: default
+.. code-block:: Python
@@ -114,7 +114,7 @@ See the `tvm.auto_scheduler.measure.py` for more details.
.. GENERATED FROM PYTHON SOURCE LINES 82-102
-.. code-block:: default
+.. code-block:: Python
# Define the basic shapes of this sparse computation
@@ -155,7 +155,7 @@ If your machine supports avx instructions, you can
.. GENERATED FROM PYTHON SOURCE LINES 110-138
-.. code-block:: default
+.. code-block:: Python
target = tvm.target.Target("llvm")
@@ -224,7 +224,7 @@ CustomSketchRule consists of two parts: the condition function and the apply fun
.. GENERATED FROM PYTHON SOURCE LINES 149-204
-.. code-block:: default
+.. code-block:: Python
@@ -305,7 +305,7 @@ Next, we set parameters for the auto-scheduler with the custom sketch plugged in
.. GENERATED FROM PYTHON SOURCE LINES 217-234
-.. code-block:: default
+.. code-block:: Python
log_file = "sparse_dense.json"
@@ -342,7 +342,7 @@ file and apply it.
.. GENERATED FROM PYTHON SOURCE LINES 241-292
-.. code-block:: default
+.. code-block:: Python
@@ -450,14 +450,17 @@ file and apply it.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: tune_sparse_x86.ipynb <tune_sparse_x86.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: tune_sparse_x86.py <tune_sparse_x86.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: tune_sparse_x86.ipynb <tune_sparse_x86.ipynb>`
+ :download:`Download zipped: tune_sparse_x86.zip <tune_sparse_x86.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/tune_with_autotvm/index.rst.txt b/docs/_sources/how_to/tune_with_autotvm/index.rst.txt
index 54a84a5ff8..903b2beaa6 100644
--- a/docs/_sources/how_to/tune_with_autotvm/index.rst.txt
+++ b/docs/_sources/how_to/tune_with_autotvm/index.rst.txt
@@ -16,15 +16,16 @@ variety of different hardware platforms.
<div class="sphx-glr-thumbnails">
+.. thumbnail-parent-div-open
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="This is an advanced tutorial for writing high performance tunable template for NVIDIA GPU. By r...">
+ <div class="sphx-glr-thumbcontainer" tooltip="This is an advanced tutorial for writing high performance tunable template for NVIDIA GPU. By running auto-tuner on this template, we can outperform the vendor provided library CuDNN in many cases.">
.. only:: html
.. image:: /how_to/tune_with_autotvm/images/thumb/sphx_glr_tune_conv2d_cuda_thumb.png
- :alt: Tuning High Performance Convolution on NVIDIA GPUs
+ :alt:
:ref:`sphx_glr_how_to_tune_with_autotvm_tune_conv2d_cuda.py`
@@ -36,12 +37,12 @@ variety of different hardware platforms.
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="Auto-tuning for specific devices and workloads is critical for getting the best performance. Th...">
+ <div class="sphx-glr-thumbcontainer" tooltip="Auto-tuning for specific devices and workloads is critical for getting the best performance. This is a tutorial on how to tune a whole convolutional network for NVIDIA GPU.">
.. only:: html
.. image:: /how_to/tune_with_autotvm/images/thumb/sphx_glr_tune_relay_cuda_thumb.png
- :alt: Auto-tuning a Convolutional Network for NVIDIA GPU
+ :alt:
:ref:`sphx_glr_how_to_tune_with_autotvm_tune_relay_cuda.py`
@@ -58,7 +59,7 @@ variety of different hardware platforms.
.. only:: html
.. image:: /how_to/tune_with_autotvm/images/thumb/sphx_glr_tune_relay_x86_thumb.png
- :alt: Auto-tuning a Convolutional Network for x86 CPU
+ :alt:
:ref:`sphx_glr_how_to_tune_with_autotvm_tune_relay_x86.py`
@@ -70,12 +71,12 @@ variety of different hardware platforms.
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="Auto-tuning for a specific ARM device is critical for getting the best performance. This is a t...">
+ <div class="sphx-glr-thumbcontainer" tooltip="Auto-tuning for a specific ARM device is critical for getting the best performance. This is a tutorial about how to tune a whole convolutional network.">
.. only:: html
.. image:: /how_to/tune_with_autotvm/images/thumb/sphx_glr_tune_relay_arm_thumb.png
- :alt: Auto-tuning a Convolutional Network for ARM CPU
+ :alt:
:ref:`sphx_glr_how_to_tune_with_autotvm_tune_relay_arm.py`
@@ -87,12 +88,12 @@ variety of different hardware platforms.
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="Auto-tuning for a specific device is critical for getting the best performance. This is a tutor...">
+ <div class="sphx-glr-thumbcontainer" tooltip="Auto-tuning for a specific device is critical for getting the best performance. This is a tutorial about how to tune a whole convolutional network.">
.. only:: html
.. image:: /how_to/tune_with_autotvm/images/thumb/sphx_glr_tune_relay_mobile_gpu_thumb.png
- :alt: Auto-tuning a Convolutional Network for Mobile GPU
+ :alt:
:ref:`sphx_glr_how_to_tune_with_autotvm_tune_relay_mobile_gpu.py`
@@ -102,6 +103,8 @@ variety of different hardware platforms.
</div>
+.. thumbnail-parent-div-close
+
.. raw:: html
</div>
diff --git a/docs/_sources/how_to/tune_with_autotvm/sg_execution_times.rst.txt b/docs/_sources/how_to/tune_with_autotvm/sg_execution_times.rst.txt
index 4b44b52a7c..148c0d94d2 100644
--- a/docs/_sources/how_to/tune_with_autotvm/sg_execution_times.rst.txt
+++ b/docs/_sources/how_to/tune_with_autotvm/sg_execution_times.rst.txt
@@ -3,18 +3,47 @@
.. _sphx_glr_how_to_tune_with_autotvm_sg_execution_times:
+
Computation times
=================
-**00:23.958** total execution time for **how_to_tune_with_autotvm** files:
-
-+--------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_tune_with_autotvm_tune_conv2d_cuda.py` (``tune_conv2d_cuda.py``) | 00:23.920 | 0.0 MB |
-+--------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_tune_with_autotvm_tune_relay_x86.py` (``tune_relay_x86.py``) | 00:00.022 | 0.0 MB |
-+--------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_tune_with_autotvm_tune_relay_arm.py` (``tune_relay_arm.py``) | 00:00.006 | 0.0 MB |
-+--------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_tune_with_autotvm_tune_relay_mobile_gpu.py` (``tune_relay_mobile_gpu.py``) | 00:00.006 | 0.0 MB |
-+--------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_tune_with_autotvm_tune_relay_cuda.py` (``tune_relay_cuda.py``) | 00:00.005 | 0.0 MB |
-+--------------------------------------------------------------------------------------------------+-----------+--------+
+**00:23.116** total execution time for 5 files **from how_to/tune_with_autotvm**:
+
+.. container::
+
+ .. raw:: html
+
+ <style scoped>
+ <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet" />
+ <link href="https://cdn.datatables.net/1.13.6/css/dataTables.bootstrap5.min.css" rel="stylesheet" />
+ </style>
+ <script src="https://code.jquery.com/jquery-3.7.0.js"></script>
+ <script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
+ <script src="https://cdn.datatables.net/1.13.6/js/dataTables.bootstrap5.min.js"></script>
+ <script type="text/javascript" class="init">
+ $(document).ready( function () {
+ $('table.sg-datatable').DataTable({order: [[1, 'desc']]});
+ } );
+ </script>
+
+ .. list-table::
+ :header-rows: 1
+ :class: table table-striped sg-datatable
+
+ * - Example
+ - Time
+ - Mem (MB)
+ * - :ref:`sphx_glr_how_to_tune_with_autotvm_tune_conv2d_cuda.py` (``tune_conv2d_cuda.py``)
+ - 00:23.079
+ - 0.0
+ * - :ref:`sphx_glr_how_to_tune_with_autotvm_tune_relay_x86.py` (``tune_relay_x86.py``)
+ - 00:00.023
+ - 0.0
+ * - :ref:`sphx_glr_how_to_tune_with_autotvm_tune_relay_arm.py` (``tune_relay_arm.py``)
+ - 00:00.005
+ - 0.0
+ * - :ref:`sphx_glr_how_to_tune_with_autotvm_tune_relay_mobile_gpu.py` (``tune_relay_mobile_gpu.py``)
+ - 00:00.005
+ - 0.0
+ * - :ref:`sphx_glr_how_to_tune_with_autotvm_tune_relay_cuda.py` (``tune_relay_cuda.py``)
+ - 00:00.005
+ - 0.0
diff --git a/docs/_sources/how_to/tune_with_autotvm/tune_conv2d_cuda.rst.txt b/docs/_sources/how_to/tune_with_autotvm/tune_conv2d_cuda.rst.txt
index 69a940f3c3..aa21e206e1 100644
--- a/docs/_sources/how_to/tune_with_autotvm/tune_conv2d_cuda.rst.txt
+++ b/docs/_sources/how_to/tune_with_autotvm/tune_conv2d_cuda.rst.txt
@@ -57,7 +57,7 @@ Now return to python code. Import packages.
.. GENERATED FROM PYTHON SOURCE LINES 50-62
-.. code-block:: default
+.. code-block:: Python
import logging
@@ -105,7 +105,7 @@ can be very large (at the level of 10^9 for some input shapes)
.. GENERATED FROM PYTHON SOURCE LINES 88-178
-.. code-block:: default
+.. code-block:: Python
@@ -216,7 +216,7 @@ for this template
.. GENERATED FROM PYTHON SOURCE LINES 186-221
-.. code-block:: default
+.. code-block:: Python
# logging config (for printing tuning log to screen)
@@ -282,7 +282,7 @@ and measure running time.
.. GENERATED FROM PYTHON SOURCE LINES 224-254
-.. code-block:: default
+.. code-block:: Python
# inspect the best config
@@ -326,7 +326,7 @@ and measure running time.
Best config:
,None
- Time cost of this operator: 0.036985
+ Time cost of this operator: 0.037321
@@ -338,14 +338,17 @@ and measure running time.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: tune_conv2d_cuda.ipynb <tune_conv2d_cuda.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: tune_conv2d_cuda.py <tune_conv2d_cuda.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: tune_conv2d_cuda.ipynb <tune_conv2d_cuda.ipynb>`
+ :download:`Download zipped: tune_conv2d_cuda.zip <tune_conv2d_cuda.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/tune_with_autotvm/tune_relay_arm.rst.txt b/docs/_sources/how_to/tune_with_autotvm/tune_relay_arm.rst.txt
index 31a9045073..d02d784aca 100644
--- a/docs/_sources/how_to/tune_with_autotvm/tune_relay_arm.rst.txt
+++ b/docs/_sources/how_to/tune_with_autotvm/tune_relay_arm.rst.txt
@@ -71,7 +71,7 @@ Now return to python code. Import packages.
.. GENERATED FROM PYTHON SOURCE LINES 64-76
-.. code-block:: default
+.. code-block:: Python
@@ -102,7 +102,7 @@ We can also load models from MXNet, ONNX and TensorFlow.
.. GENERATED FROM PYTHON SOURCE LINES 82-114
-.. code-block:: default
+.. code-block:: Python
@@ -225,7 +225,7 @@ set :code:`use_android` to True if you use android phone.
.. GENERATED FROM PYTHON SOURCE LINES 190-225
-.. code-block:: default
+.. code-block:: Python
#### DEVICE CONFIG ####
@@ -295,7 +295,7 @@ We will introduce a more sophisticated tuning scheduler in the future.
.. GENERATED FROM PYTHON SOURCE LINES 247-321
-.. code-block:: default
+.. code-block:: Python
# You can skip the implementation of this function for this tutorial.
@@ -384,7 +384,7 @@ Finally, we launch tuning jobs and evaluate the end-to-end performance.
.. GENERATED FROM PYTHON SOURCE LINES 323-376
-.. code-block:: default
+.. code-block:: Python
@@ -502,14 +502,17 @@ It takes about 2 hours on a 32T AMD Ryzen Threadripper.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: tune_relay_arm.ipynb <tune_relay_arm.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: tune_relay_arm.py <tune_relay_arm.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: tune_relay_arm.ipynb <tune_relay_arm.ipynb>`
+ :download:`Download zipped: tune_relay_arm.zip <tune_relay_arm.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/tune_with_autotvm/tune_relay_cuda.rst.txt b/docs/_sources/how_to/tune_with_autotvm/tune_relay_cuda.rst.txt
index 53a4a134d9..06cd811c8a 100644
--- a/docs/_sources/how_to/tune_with_autotvm/tune_relay_cuda.rst.txt
+++ b/docs/_sources/how_to/tune_with_autotvm/tune_relay_cuda.rst.txt
@@ -68,7 +68,7 @@ Now return to python code. Import packages.
.. GENERATED FROM PYTHON SOURCE LINES 61-72
-.. code-block:: default
+.. code-block:: Python
import os
@@ -98,7 +98,7 @@ We can also load models from MXNet, ONNX and TensorFlow.
.. GENERATED FROM PYTHON SOURCE LINES 81-113
-.. code-block:: default
+.. code-block:: Python
@@ -147,7 +147,7 @@ Before tuning, we apply some configurations.
.. GENERATED FROM PYTHON SOURCE LINES 117-137
-.. code-block:: default
+.. code-block:: Python
#### DEVICE CONFIG ####
@@ -207,7 +207,7 @@ We will introduce a more sophisticated tuning scheduler in the future.
.. GENERATED FROM PYTHON SOURCE LINES 157-231
-.. code-block:: default
+.. code-block:: Python
# You can skip the implementation of this function for this tutorial.
@@ -296,7 +296,7 @@ Finally, we launch tuning jobs and evaluate the end-to-end performance.
.. GENERATED FROM PYTHON SOURCE LINES 233-269
-.. code-block:: default
+.. code-block:: Python
@@ -458,7 +458,7 @@ to replace the corresponding part above.
.. GENERATED FROM PYTHON SOURCE LINES 380-399
-.. code-block:: default
+.. code-block:: Python
tuning_option = {
@@ -493,14 +493,17 @@ to replace the corresponding part above.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: tune_relay_cuda.ipynb <tune_relay_cuda.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: tune_relay_cuda.py <tune_relay_cuda.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: tune_relay_cuda.ipynb <tune_relay_cuda.ipynb>`
+ :download:`Download zipped: tune_relay_cuda.zip <tune_relay_cuda.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/tune_with_autotvm/tune_relay_mobile_gpu.rst.txt b/docs/_sources/how_to/tune_with_autotvm/tune_relay_mobile_gpu.rst.txt
index d57a91d83d..e7ef324db9 100644
--- a/docs/_sources/how_to/tune_with_autotvm/tune_relay_mobile_gpu.rst.txt
+++ b/docs/_sources/how_to/tune_with_autotvm/tune_relay_mobile_gpu.rst.txt
@@ -69,7 +69,7 @@ Now return to python code. Import packages.
.. GENERATED FROM PYTHON SOURCE LINES 62-75
-.. code-block:: default
+.. code-block:: Python
@@ -101,7 +101,7 @@ We can also load models from MXNet, ONNX and TensorFlow.
.. GENERATED FROM PYTHON SOURCE LINES 81-113
-.. code-block:: default
+.. code-block:: Python
@@ -228,7 +228,7 @@ set :code:`use_android` to True if you use android phone.
.. GENERATED FROM PYTHON SOURCE LINES 192-226
-.. code-block:: default
+.. code-block:: Python
#### DEVICE CONFIG ####
@@ -293,7 +293,7 @@ We will introduce a more sophisticated tuning scheduler in the future.
.. GENERATED FROM PYTHON SOURCE LINES 244-318
-.. code-block:: default
+.. code-block:: Python
# You can skip the implementation of this function for this tutorial.
@@ -382,7 +382,7 @@ Finally, we launch tuning jobs and evaluate the end-to-end performance.
.. GENERATED FROM PYTHON SOURCE LINES 320-375
-.. code-block:: default
+.. code-block:: Python
@@ -507,14 +507,17 @@ One sample output is listed below. It takes about 3 hours on a 32T AMD Ryzen Thr
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: tune_relay_mobile_gpu.ipynb <tune_relay_mobile_gpu.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: tune_relay_mobile_gpu.py <tune_relay_mobile_gpu.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: tune_relay_mobile_gpu.ipynb <tune_relay_mobile_gpu.ipynb>`
+ :download:`Download zipped: tune_relay_mobile_gpu.zip <tune_relay_mobile_gpu.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/tune_with_autotvm/tune_relay_x86.rst.txt b/docs/_sources/how_to/tune_with_autotvm/tune_relay_x86.rst.txt
index ae9ca5089b..502b5bfb33 100644
--- a/docs/_sources/how_to/tune_with_autotvm/tune_relay_x86.rst.txt
+++ b/docs/_sources/how_to/tune_with_autotvm/tune_relay_x86.rst.txt
@@ -37,7 +37,7 @@ __name__ == "__main__":` block.
.. GENERATED FROM PYTHON SOURCE LINES 31-42
-.. code-block:: default
+.. code-block:: Python
import os
@@ -70,7 +70,7 @@ In this tutorial, we choose resnet-18 as tuning example.
.. GENERATED FROM PYTHON SOURCE LINES 51-106
-.. code-block:: default
+.. code-block:: Python
@@ -155,7 +155,7 @@ latency of one operator closer to its actual latency during end-to-end inference
.. GENERATED FROM PYTHON SOURCE LINES 123-205
-.. code-block:: default
+.. code-block:: Python
tuning_option = {
@@ -252,7 +252,7 @@ Finally, we launch tuning jobs and evaluate the end-to-end performance.
.. GENERATED FROM PYTHON SOURCE LINES 207-262
-.. code-block:: default
+.. code-block:: Python
@@ -374,14 +374,17 @@ One sample output is listed below.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: tune_relay_x86.ipynb <tune_relay_x86.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: tune_relay_x86.py <tune_relay_x86.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: tune_relay_x86.ipynb <tune_relay_x86.ipynb>`
+ :download:`Download zipped: tune_relay_x86.zip <tune_relay_x86.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/tutorials/cross_compilation_and_rpc.rst.txt b/docs/_sources/how_to/tutorials/cross_compilation_and_rpc.rst.txt
index a11c52bd93..a56ec2feae 100644
--- a/docs/_sources/how_to/tutorials/cross_compilation_and_rpc.rst.txt
+++ b/docs/_sources/how_to/tutorials/cross_compilation_and_rpc.rst.txt
@@ -104,7 +104,7 @@ Here we will declare a simple kernel on the local machine:
.. GENERATED FROM PYTHON SOURCE LINES 95-109
-.. code-block:: default
+.. code-block:: Python
@@ -136,7 +136,7 @@ on our webpage building server. See the detailed note in the following block.
.. GENERATED FROM PYTHON SOURCE LINES 114-128
-.. code-block:: default
+.. code-block:: Python
local_demo = True
@@ -203,7 +203,7 @@ First we obtain an RPC session from remote device.
.. GENERATED FROM PYTHON SOURCE LINES 167-176
-.. code-block:: default
+.. code-block:: Python
if local_demo:
@@ -228,7 +228,7 @@ compiler to relink them. Now `func` is a remote module object.
.. GENERATED FROM PYTHON SOURCE LINES 179-191
-.. code-block:: default
+.. code-block:: Python
remote.upload(path)
@@ -259,7 +259,7 @@ device and returns the measured cost. Network overhead is excluded.
.. GENERATED FROM PYTHON SOURCE LINES 197-202
-.. code-block:: default
+.. code-block:: Python
time_f = func.time_evaluator(func.entry_name, dev, number=10)
@@ -274,7 +274,7 @@ device and returns the measured cost. Network overhead is excluded.
.. code-block:: none
- 1.222e-07 secs/op
+ 1.484e-07 secs/op
@@ -305,7 +305,7 @@ The following function shows how we run an OpenCL kernel remotely
.. GENERATED FROM PYTHON SOURCE LINES 224-257
-.. code-block:: default
+.. code-block:: Python
@@ -366,14 +366,17 @@ features in TVM.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: cross_compilation_and_rpc.ipynb <cross_compilation_and_rpc.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: cross_compilation_and_rpc.py <cross_compilation_and_rpc.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: cross_compilation_and_rpc.ipynb <cross_compilation_and_rpc.ipynb>`
+ :download:`Download zipped: cross_compilation_and_rpc.zip <cross_compilation_and_rpc.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/tutorials/customize_opt.rst.txt b/docs/_sources/how_to/tutorials/customize_opt.rst.txt
index 7527ccd15e..6570d7072e 100644
--- a/docs/_sources/how_to/tutorials/customize_opt.rst.txt
+++ b/docs/_sources/how_to/tutorials/customize_opt.rst.txt
@@ -56,7 +56,7 @@ The overall flow consists of the following steps:
.. GENERATED FROM PYTHON SOURCE LINES 50-58
-.. code-block:: default
+.. code-block:: Python
import os
@@ -92,7 +92,7 @@ with NN module frontend or TVMScript. Here we use a simple neural network model
.. GENERATED FROM PYTHON SOURCE LINES 72-92
-.. code-block:: default
+.. code-block:: Python
@@ -160,7 +160,7 @@ operator. Here we demonstrate how to dispatch the CUBLAS library for certain pat
.. GENERATED FROM PYTHON SOURCE LINES 103-131
-.. code-block:: default
+.. code-block:: Python
@@ -248,7 +248,7 @@ running the passes, we need to lowering relax operator into TensorIR functions v
.. GENERATED FROM PYTHON SOURCE LINES 153-169
-.. code-block:: default
+.. code-block:: Python
device = tvm.cuda(0)
@@ -284,7 +284,7 @@ it achieves a balance between performance and compilation time.
.. GENERATED FROM PYTHON SOURCE LINES 176-196
-.. code-block:: default
+.. code-block:: Python
from tvm import dlight as dl
@@ -399,7 +399,7 @@ We can build and deploy the optimized model to the TVM runtime.
.. GENERATED FROM PYTHON SOURCE LINES 207-218
-.. code-block:: default
+.. code-block:: Python
ex = relax.build(mod, target="cuda")
@@ -443,14 +443,17 @@ iterate the optimization and improve the performance of the model.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: customize_opt.ipynb <customize_opt.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: customize_opt.py <customize_opt.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: customize_opt.ipynb <customize_opt.ipynb>`
+ :download:`Download zipped: customize_opt.zip <customize_opt.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/tutorials/e2e_opt_model.rst.txt b/docs/_sources/how_to/tutorials/e2e_opt_model.rst.txt
index 16da81830a..a9bbf6958f 100644
--- a/docs/_sources/how_to/tutorials/e2e_opt_model.rst.txt
+++ b/docs/_sources/how_to/tutorials/e2e_opt_model.rst.txt
@@ -39,7 +39,7 @@ PyTorch.
.. GENERATED FROM PYTHON SOURCE LINES 33-42
-.. code-block:: default
+.. code-block:: Python
import os
@@ -86,7 +86,7 @@ optimization.
.. GENERATED FROM PYTHON SOURCE LINES 67-83
-.. code-block:: default
+.. code-block:: Python
import tvm
@@ -237,7 +237,7 @@ apply the database to the model to get the best performance.
.. GENERATED FROM PYTHON SOURCE LINES 94-107
-.. code-block:: default
+.. code-block:: Python
TOTAL_TRIALS = 8000 # Change to 20000 for better performance if needed
@@ -268,7 +268,7 @@ We skip this step in the CI environment.
.. GENERATED FROM PYTHON SOURCE LINES 112-123
-.. code-block:: default
+.. code-block:: Python
if not IS_IN_CI:
@@ -295,14 +295,17 @@ We skip this step in the CI environment.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: e2e_opt_model.ipynb <e2e_opt_model.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: e2e_opt_model.py <e2e_opt_model.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: e2e_opt_model.ipynb <e2e_opt_model.ipynb>`
+ :download:`Download zipped: e2e_opt_model.zip <e2e_opt_model.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/tutorials/index.rst.txt b/docs/_sources/how_to/tutorials/index.rst.txt
index 77daade80c..d84d2879ee 100644
--- a/docs/_sources/how_to/tutorials/index.rst.txt
+++ b/docs/_sources/how_to/tutorials/index.rst.txt
@@ -9,6 +9,7 @@ HOW TO
<div class="sphx-glr-thumbnails">
+.. thumbnail-parent-div-open
.. raw:: html
@@ -17,7 +18,7 @@ HOW TO
.. only:: html
.. image:: /how_to/tutorials/images/thumb/sphx_glr_cross_compilation_and_rpc_thumb.png
- :alt: Cross Compilation and RPC
+ :alt:
:ref:`sphx_glr_how_to_tutorials_cross_compilation_and_rpc.py`
@@ -34,7 +35,7 @@ HOW TO
.. only:: html
.. image:: /how_to/tutorials/images/thumb/sphx_glr_customize_opt_thumb.png
- :alt: Customize Optimization
+ :alt:
:ref:`sphx_glr_how_to_tutorials_customize_opt.py`
@@ -51,7 +52,7 @@ HOW TO
.. only:: html
.. image:: /how_to/tutorials/images/thumb/sphx_glr_e2e_opt_model_thumb.png
- :alt: End-to-End Optimize Model
+ :alt:
:ref:`sphx_glr_how_to_tutorials_e2e_opt_model.py`
@@ -68,7 +69,7 @@ HOW TO
.. only:: html
.. image:: /how_to/tutorials/images/thumb/sphx_glr_optimize_llm_thumb.png
- :alt: Optimize Large Language Model
+ :alt:
:ref:`sphx_glr_how_to_tutorials_optimize_llm.py`
@@ -78,6 +79,8 @@ HOW TO
</div>
+.. thumbnail-parent-div-close
+
.. raw:: html
</div>
diff --git a/docs/_sources/how_to/tutorials/optimize_llm.rst.txt b/docs/_sources/how_to/tutorials/optimize_llm.rst.txt
index a84ef24bc9..250aaa9400 100644
--- a/docs/_sources/how_to/tutorials/optimize_llm.rst.txt
+++ b/docs/_sources/how_to/tutorials/optimize_llm.rst.txt
@@ -62,7 +62,7 @@ architecture. We can use the API to construct the model architecture.
.. GENERATED FROM PYTHON SOURCE LINES 56-73
-.. code-block:: default
+.. code-block:: Python
@@ -96,7 +96,7 @@ constant config specially for the TinyLlama model.
.. GENERATED FROM PYTHON SOURCE LINES 77-98
-.. code-block:: default
+.. code-block:: Python
@@ -137,7 +137,7 @@ the query and key tensors in the attention kernel on-the-fly.
.. GENERATED FROM PYTHON SOURCE LINES 105-119
-.. code-block:: default
+.. code-block:: Python
@@ -184,7 +184,7 @@ The optimized implementation is:
.. GENERATED FROM PYTHON SOURCE LINES 139-157
-.. code-block:: default
+.. code-block:: Python
@@ -229,7 +229,7 @@ We perform optimizations on the different parts of the self-attention layer:
.. GENERATED FROM PYTHON SOURCE LINES 171-201
-.. code-block:: default
+.. code-block:: Python
@@ -274,7 +274,7 @@ Finally, we define the model architecture with FFN and self-attention layers.
.. GENERATED FROM PYTHON SOURCE LINES 203-347
-.. code-block:: default
+.. code-block:: Python
@@ -436,7 +436,7 @@ For demonstration, we only show the part of the model architecture. and paramete
.. GENERATED FROM PYTHON SOURCE LINES 352-364
-.. code-block:: default
+.. code-block:: Python
model_config = LlamaConfig()
@@ -496,7 +496,7 @@ is designed specifically for the LLMs.
.. GENERATED FROM PYTHON SOURCE LINES 369-426
-.. code-block:: default
+.. code-block:: Python
@@ -578,7 +578,7 @@ and prepare the model parameters.
.. GENERATED FROM PYTHON SOURCE LINES 438-489
-.. code-block:: default
+.. code-block:: Python
@@ -659,7 +659,7 @@ the model documentation for the correct tokenization and prompt format.
.. GENERATED FROM PYTHON SOURCE LINES 506-521
-.. code-block:: default
+.. code-block:: Python
@@ -693,7 +693,7 @@ key and value tensors. We create the PagedKVCache with the specified parameters.
.. GENERATED FROM PYTHON SOURCE LINES 527-537
-.. code-block:: default
+.. code-block:: Python
if not IS_IN_CI:
@@ -721,7 +721,7 @@ compiled in the Relax IRModule to embed the tokens into the hidden states.
.. GENERATED FROM PYTHON SOURCE LINES 542-553
-.. code-block:: default
+.. code-block:: Python
nd_view_func = tvm.get_global_func("vm.builtin.reshape")
@@ -749,7 +749,7 @@ Before running the forward pass, we first get some help functions for preparatio
.. GENERATED FROM PYTHON SOURCE LINES 557-562
-.. code-block:: default
+.. code-block:: Python
add_sequence_func = tvm.get_global_func("vm.builtin.kv_state_add_sequence")
@@ -771,7 +771,7 @@ and `end_forward_func` to end the forward pass.
.. GENERATED FROM PYTHON SOURCE LINES 566-575
-.. code-block:: default
+.. code-block:: Python
if not IS_IN_CI:
@@ -800,7 +800,7 @@ Also, to make the tutorial concise, we execute the sample process on CPU.
.. GENERATED FROM PYTHON SOURCE LINES 582-594
-.. code-block:: default
+.. code-block:: Python
@@ -831,7 +831,7 @@ IRModule to generate the token.
.. GENERATED FROM PYTHON SOURCE LINES 600-615
-.. code-block:: default
+.. code-block:: Python
if not IS_IN_CI:
@@ -858,7 +858,7 @@ IRModule to generate the token.
.. rst-class:: sphx-glr-timing
- **Total running time of the script:** ( 1 minutes 9.800 seconds)
+ **Total running time of the script:** (2 minutes 37.541 seconds)
.. _sphx_glr_download_how_to_tutorials_optimize_llm.py:
@@ -867,14 +867,17 @@ IRModule to generate the token.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: optimize_llm.ipynb <optimize_llm.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: optimize_llm.py <optimize_llm.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: optimize_llm.ipynb <optimize_llm.ipynb>`
+ :download:`Download zipped: optimize_llm.zip <optimize_llm.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/tutorials/sg_execution_times.rst.txt b/docs/_sources/how_to/tutorials/sg_execution_times.rst.txt
index f28758f5cc..aba91df295 100644
--- a/docs/_sources/how_to/tutorials/sg_execution_times.rst.txt
+++ b/docs/_sources/how_to/tutorials/sg_execution_times.rst.txt
@@ -3,16 +3,44 @@
.. _sphx_glr_how_to_tutorials_sg_execution_times:
+
Computation times
=================
-**01:13.867** total execution time for **how_to_tutorials** files:
-
-+--------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_tutorials_optimize_llm.py` (``optimize_llm.py``) | 01:09.800 | 0.0 MB |
-+--------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_tutorials_e2e_opt_model.py` (``e2e_opt_model.py``) | 00:02.538 | 0.0 MB |
-+--------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_tutorials_customize_opt.py` (``customize_opt.py``) | 00:00.802 | 0.0 MB |
-+--------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_tutorials_cross_compilation_and_rpc.py` (``cross_compilation_and_rpc.py``) | 00:00.727 | 0.0 MB |
-+--------------------------------------------------------------------------------------------------+-----------+--------+
+**02:42.698** total execution time for 4 files **from how_to/tutorials**:
+
+.. container::
+
+ .. raw:: html
+
+ <style scoped>
+ <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet" />
+ <link href="https://cdn.datatables.net/1.13.6/css/dataTables.bootstrap5.min.css" rel="stylesheet" />
+ </style>
+ <script src="https://code.jquery.com/jquery-3.7.0.js"></script>
+ <script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
+ <script src="https://cdn.datatables.net/1.13.6/js/dataTables.bootstrap5.min.js"></script>
+ <script type="text/javascript" class="init">
+ $(document).ready( function () {
+ $('table.sg-datatable').DataTable({order: [[1, 'desc']]});
+ } );
+ </script>
+
+ .. list-table::
+ :header-rows: 1
+ :class: table table-striped sg-datatable
+
+ * - Example
+ - Time
+ - Mem (MB)
+ * - :ref:`sphx_glr_how_to_tutorials_optimize_llm.py` (``optimize_llm.py``)
+ - 02:37.541
+ - 0.0
+ * - :ref:`sphx_glr_how_to_tutorials_e2e_opt_model.py` (``e2e_opt_model.py``)
+ - 00:03.018
+ - 0.0
+ * - :ref:`sphx_glr_how_to_tutorials_cross_compilation_and_rpc.py` (``cross_compilation_and_rpc.py``)
+ - 00:01.088
+ - 0.0
+ * - :ref:`sphx_glr_how_to_tutorials_customize_opt.py` (``customize_opt.py``)
+ - 00:01.051
+ - 0.0
diff --git a/docs/_sources/how_to/work_with_microtvm/index.rst.txt b/docs/_sources/how_to/work_with_microtvm/index.rst.txt
index 908f1e2cff..ef94cf8abf 100644
--- a/docs/_sources/how_to/work_with_microtvm/index.rst.txt
+++ b/docs/_sources/how_to/work_with_microtvm/index.rst.txt
@@ -14,15 +14,16 @@ demonstrate how to tune and deploy models with microTVM.
<div class="sphx-glr-thumbnails">
+.. thumbnail-parent-div-open
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="This tutorial explains how to compile a tiny model for a micro device, build a program on Zephy...">
+ <div class="sphx-glr-thumbcontainer" tooltip="This tutorial explains how to compile a tiny model for a micro device, build a program on Zephyr platform to execute this model, flash the program and run the model all using tvmc micro command. You need to install python and Zephyr dependencies before processing with this tutorial.">
.. only:: html
.. image:: /how_to/work_with_microtvm/images/thumb/sphx_glr_micro_tvmc_thumb.png
- :alt: 1. microTVM CLI Tool
+ :alt:
:ref:`sphx_glr_how_to_work_with_microtvm_micro_tvmc.py`
@@ -39,7 +40,7 @@ demonstrate how to tune and deploy models with microTVM.
.. only:: html
.. image:: /how_to/work_with_microtvm/images/thumb/sphx_glr_micro_tflite_thumb.png
- :alt: 2. microTVM TFLite Tutorial
+ :alt:
:ref:`sphx_glr_how_to_work_with_microtvm_micro_tflite.py`
@@ -51,12 +52,12 @@ demonstrate how to tune and deploy models with microTVM.
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="This tutorial is showcasing microTVM host-driven AoT compilation with a TFLite model. AoTExecut...">
+ <div class="sphx-glr-thumbcontainer" tooltip="This tutorial is showcasing microTVM host-driven AoT compilation with a TFLite model. AoTExecutor reduces the overhead of parsing graph at runtime compared to GraphExecutor. Also, we can have better memory management using ahead of time compilation. This tutorial can be executed on a x86 CPU using C runtime (CRT) or on Zephyr platform on a microcontroller/board supported by Zephyr.">
.. only:: html
.. image:: /how_to/work_with_microtvm/images/thumb/sphx_glr_micro_aot_thumb.png
- :alt: 3. microTVM Ahead-of-Time (AOT) Compilation
+ :alt:
:ref:`sphx_glr_how_to_work_with_microtvm_micro_aot.py`
@@ -68,12 +69,12 @@ demonstrate how to tune and deploy models with microTVM.
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="This tutorial is showcasing microTVM host-driven AoT compilation with a PyTorch model. This tut...">
+ <div class="sphx-glr-thumbcontainer" tooltip="This tutorial is showcasing microTVM host-driven AoT compilation with a PyTorch model. This tutorial can be executed on a x86 CPU using C runtime (CRT).">
.. only:: html
.. image:: /how_to/work_with_microtvm/images/thumb/sphx_glr_micro_pytorch_thumb.png
- :alt: 4. microTVM PyTorch Tutorial
+ :alt:
:ref:`sphx_glr_how_to_work_with_microtvm_micro_pytorch.py`
@@ -85,12 +86,12 @@ demonstrate how to tune and deploy models with microTVM.
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="This tutorial shows how MobileNetV1 models can be trained to fit on embedded devices, and how t...">
+ <div class="sphx-glr-thumbcontainer" tooltip="This tutorial shows how MobileNetV1 models can be trained to fit on embedded devices, and how those models can be deployed to Arduino using TVM.">
.. only:: html
.. image:: /how_to/work_with_microtvm/images/thumb/sphx_glr_micro_train_thumb.png
- :alt: 5. Training Vision Models for microTVM on Arduino
+ :alt:
:ref:`sphx_glr_how_to_work_with_microtvm_micro_train.py`
@@ -107,7 +108,7 @@ demonstrate how to tune and deploy models with microTVM.
.. only:: html
.. image:: /how_to/work_with_microtvm/images/thumb/sphx_glr_micro_autotune_thumb.png
- :alt: 6. Model Tuning with microTVM
+ :alt:
:ref:`sphx_glr_how_to_work_with_microtvm_micro_autotune.py`
@@ -119,12 +120,12 @@ demonstrate how to tune and deploy models with microTVM.
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="This section contains an example of how to use TVM to run a model on an Arm(R) Cortex(R)-M55 CP...">
+ <div class="sphx-glr-thumbcontainer" tooltip="This section contains an example of how to use TVM to run a model on an Arm(R) Cortex(R)-M55 CPU and Ethos(TM)-U55 NPU with CMSIS-NN, using bare metal. The Cortex(R)-M55 is a small, low-power CPU designed for use in embedded devices. CMSIS-NN is a collection of kernels optimized for Arm(R) Cortex(R)-M CPUs. The Ethos(TM)-U55 is a microNPU, specifically designed to accelerate ML inference in resource-constrained embedded devices.">
.. only:: html
.. image:: /how_to/work_with_microtvm/images/thumb/sphx_glr_micro_ethosu_thumb.png
- :alt: 7. Running TVM on bare metal Arm(R) Cortex(R)-M55 CPU and Ethos(TM)-U55 NPU with CMSIS-NN
+ :alt:
:ref:`sphx_glr_how_to_work_with_microtvm_micro_ethosu.py`
@@ -136,12 +137,12 @@ demonstrate how to tune and deploy models with microTVM.
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="This tutorial is showcasing building an MLPerfTiny submission using microTVM. This tutorial sho...">
+ <div class="sphx-glr-thumbcontainer" tooltip="This tutorial is showcasing building an MLPerfTiny submission using microTVM. This tutorial shows the steps to import a TFLite model from MLPerfTiny benchmark models, compile it with TVM and generate a Zephyr project which can be flashed to a Zephyr supported board to benchmark the model using EEMBC runner.">
.. only:: html
.. image:: /how_to/work_with_microtvm/images/thumb/sphx_glr_micro_mlperftiny_thumb.png
- :alt: 8. Creating Your MLPerfTiny Submission with microTVM
+ :alt:
:ref:`sphx_glr_how_to_work_with_microtvm_micro_mlperftiny.py`
@@ -153,12 +154,12 @@ demonstrate how to tune and deploy models with microTVM.
.. raw:: html
- <div class="sphx-glr-thumbcontainer" tooltip="This tutorial describes the steps required to integrate a model compiled with microTVM into a c...">
+ <div class="sphx-glr-thumbcontainer" tooltip="This tutorial describes the steps required to integrate a model compiled with microTVM into a custom development environment. We use STM32CubeIDE, as the target IDE in this tutorial, but we do not rely on any specific feature of this IDE and integrating microTVM in other IDEs would be similar. We also use the Visual Wake Word (VWW) model from MLPerf Tiny and the nucleo_l4r5zi board here, but the same steps can be used for any other model [...]
.. only:: html
.. image:: /how_to/work_with_microtvm/images/thumb/sphx_glr_micro_custom_ide_thumb.png
- :alt: 9. Bring microTVM to your own development environment
+ :alt:
:ref:`sphx_glr_how_to_work_with_microtvm_micro_custom_ide.py`
@@ -168,6 +169,8 @@ demonstrate how to tune and deploy models with microTVM.
</div>
+.. thumbnail-parent-div-close
+
.. raw:: html
</div>
diff --git a/docs/_sources/how_to/work_with_microtvm/micro_aot.rst.txt b/docs/_sources/how_to/work_with_microtvm/micro_aot.rst.txt
index 70561a1213..6c173414b7 100644
--- a/docs/_sources/how_to/work_with_microtvm/micro_aot.rst.txt
+++ b/docs/_sources/how_to/work_with_microtvm/micro_aot.rst.txt
@@ -43,7 +43,7 @@ or on Zephyr platform on a microcontroller/board supported by Zephyr.
.. GENERATED FROM PYTHON SOURCE LINES 37-47
-.. code-block:: default
+.. code-block:: Python
@@ -75,7 +75,7 @@ Import Python dependencies
.. GENERATED FROM PYTHON SOURCE LINES 56-66
-.. code-block:: default
+.. code-block:: Python
import numpy as np
import pathlib
@@ -109,7 +109,7 @@ you need to export `TVM_MICRO_USE_HW` environment variable.
.. GENERATED FROM PYTHON SOURCE LINES 77-98
-.. code-block:: default
+.. code-block:: Python
MODEL_URL = "https://github.com/mlcommons/tiny/raw/bceb91c5ad2e2deb295547d81505721d3a87d578/benchmark/training/keyword_spotting/trained_models/kws_ref_model.tflite"
MODEL_PATH = download_testdata(MODEL_URL, "kws_ref_model.tflite", module="model")
@@ -153,7 +153,7 @@ board (E.g. nucleo_l4r5zi) and change `BOARD` to supported Zephyr board.
.. GENERATED FROM PYTHON SOURCE LINES 108-124
-.. code-block:: default
+.. code-block:: Python
# Use the C runtime (crt) and enable static linking by setting system-lib to True
@@ -188,7 +188,7 @@ Now, we compile the model for the target:
.. GENERATED FROM PYTHON SOURCE LINES 130-135
-.. code-block:: default
+.. code-block:: Python
with tvm.transform.PassContext(opt_level=3, config={"tir.disable_vectorize": True}):
module = tvm.relay.build(
@@ -215,7 +215,7 @@ respectively.
.. GENERATED FROM PYTHON SOURCE LINES 144-163
-.. code-block:: default
+.. code-block:: Python
template_project_path = pathlib.Path(tvm.micro.get_microtvm_template_projects("crt"))
project_options = {} # You can use options to provide platform-specific options through TVM.
@@ -256,7 +256,7 @@ sample with expected value of 6 (label: left).
.. GENERATED FROM PYTHON SOURCE LINES 172-196
-.. code-block:: default
+.. code-block:: Python
project.build()
project.flash()
@@ -302,14 +302,17 @@ sample with expected value of 6 (label: left).
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: micro_aot.ipynb <micro_aot.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: micro_aot.py <micro_aot.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: micro_aot.ipynb <micro_aot.ipynb>`
+ :download:`Download zipped: micro_aot.zip <micro_aot.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/work_with_microtvm/micro_autotune.rst.txt b/docs/_sources/how_to/work_with_microtvm/micro_autotune.rst.txt
index 10684352bc..81a5265027 100644
--- a/docs/_sources/how_to/work_with_microtvm/micro_autotune.rst.txt
+++ b/docs/_sources/how_to/work_with_microtvm/micro_autotune.rst.txt
@@ -39,7 +39,7 @@ This tutorial explains how to autotune a model using the C runtime.
.. GENERATED FROM PYTHON SOURCE LINES 34-42
-.. code-block:: default
+.. code-block:: Python
@@ -69,7 +69,7 @@ Import Python dependencies
.. GENERATED FROM PYTHON SOURCE LINES 52-60
-.. code-block:: default
+.. code-block:: Python
import json
import numpy as np
@@ -97,7 +97,7 @@ Defining the model
.. GENERATED FROM PYTHON SOURCE LINES 67-92
-.. code-block:: default
+.. code-block:: Python
data_shape = (1, 3, 10, 10)
@@ -147,7 +147,7 @@ Defining the target
.. GENERATED FROM PYTHON SOURCE LINES 104-118
-.. code-block:: default
+.. code-block:: Python
RUNTIME = Runtime("crt", {"system-lib": True})
@@ -184,7 +184,7 @@ Extracting tuning tasks
.. GENERATED FROM PYTHON SOURCE LINES 128-134
-.. code-block:: default
+.. code-block:: Python
pass_context = tvm.transform.PassContext(opt_level=3, config={"tir.disable_vectorize": True})
@@ -214,7 +214,7 @@ Configuring microTVM
.. GENERATED FROM PYTHON SOURCE LINES 145-183
-.. code-block:: default
+.. code-block:: Python
module_loader = tvm.micro.AutoTvmModuleLoader(
@@ -270,7 +270,7 @@ Run Autotuning
.. GENERATED FROM PYTHON SOURCE LINES 188-206
-.. code-block:: default
+.. code-block:: Python
autotune_log_file = pathlib.Path("microtvm_autotune.log.txt")
@@ -308,7 +308,7 @@ Timing the untuned program
.. GENERATED FROM PYTHON SOURCE LINES 213-252
-.. code-block:: default
+.. code-block:: Python
with pass_context:
@@ -360,10 +360,10 @@ Timing the untuned program
########## Build without Autotuning ##########
Node Name Ops Time(us) Time(%) Shape Inputs Outputs Measurements(us)
--------- --- -------- ------- ----- ------ ------- ----------------
- tvmgen_default_fused_nn_contrib_conv2d_NCHWc tvmgen_default_fused_nn_contrib_conv2d_NCHWc 292.6 98.736 (1, 2, 10, 10, 3) 2 1 [292.6]
- tvmgen_default_fused_layout_transform_1 tvmgen_default_fused_layout_transform_1 2.803 0.946 (1, 6, 10, 10) 1 1 [2.803]
- tvmgen_default_fused_layout_transform tvmgen_default_fused_layout_transform 0.943 0.318 (1, 1, 10, 10, 3) 1 1 [0.943]
- Total_time - 296.346 - - - - -
+ tvmgen_default_fused_nn_contrib_conv2d_NCHWc tvmgen_default_fused_nn_contrib_conv2d_NCHWc 308.3 98.676 (1, 2, 10, 10, 3) 2 1 [308.3]
+ tvmgen_default_fused_layout_transform_1 tvmgen_default_fused_layout_transform_1 3.146 1.007 (1, 6, 10, 10) 1 1 [3.146]
+ tvmgen_default_fused_layout_transform tvmgen_default_fused_layout_transform 0.991 0.317 (1, 1, 10, 10, 3) 1 1 [0.991]
+ Total_time - 312.436 - - - - -
@@ -376,7 +376,7 @@ Timing the tuned program
.. GENERATED FROM PYTHON SOURCE LINES 256-295
-.. code-block:: default
+.. code-block:: Python
with tvm.autotvm.apply_history_best(str(autotune_log_file)):
@@ -428,10 +428,10 @@ Timing the tuned program
########## Build with Autotuning ##########
Node Name Ops Time(us) Time(%) Shape Inputs Outputs Measurements(us)
--------- --- -------- ------- ----- ------ ------- ----------------
- tvmgen_default_fused_nn_contrib_conv2d_NCHWc tvmgen_default_fused_nn_contrib_conv2d_NCHWc 99.125 97.382 (1, 6, 10, 10, 1) 2 1 [99.125]
- tvmgen_default_fused_layout_transform_1 tvmgen_default_fused_layout_transform_1 1.728 1.697 (1, 6, 10, 10) 1 1 [1.728]
- tvmgen_default_fused_layout_transform tvmgen_default_fused_layout_transform 0.937 0.921 (1, 1, 10, 10, 3) 1 1 [0.937]
- Total_time - 101.79 - - - - -
+ tvmgen_default_fused_nn_contrib_conv2d_NCHWc tvmgen_default_fused_nn_contrib_conv2d_NCHWc 103.2 97.506 (1, 6, 10, 10, 1) 2 1 [103.2]
+ tvmgen_default_fused_layout_transform_1 tvmgen_default_fused_layout_transform_1 1.785 1.687 (1, 6, 10, 10) 1 1 [1.785]
+ tvmgen_default_fused_layout_transform tvmgen_default_fused_layout_transform 0.855 0.807 (1, 3, 10, 10, 1) 1 1 [0.855]
+ Total_time - 105.84 - - - - -
@@ -439,7 +439,7 @@ Timing the tuned program
.. rst-class:: sphx-glr-timing
- **Total running time of the script:** ( 1 minutes 22.501 seconds)
+ **Total running time of the script:** (1 minutes 40.831 seconds)
.. _sphx_glr_download_how_to_work_with_microtvm_micro_autotune.py:
@@ -448,14 +448,17 @@ Timing the tuned program
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: micro_autotune.ipynb <micro_autotune.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: micro_autotune.py <micro_autotune.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: micro_autotune.ipynb <micro_autotune.ipynb>`
+ :download:`Download zipped: micro_autotune.zip <micro_autotune.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/work_with_microtvm/micro_custom_ide.rst.txt b/docs/_sources/how_to/work_with_microtvm/micro_custom_ide.rst.txt
index f3f2208322..e3a1360784 100644
--- a/docs/_sources/how_to/work_with_microtvm/micro_custom_ide.rst.txt
+++ b/docs/_sources/how_to/work_with_microtvm/micro_custom_ide.rst.txt
@@ -69,7 +69,7 @@ If you want to run this script locally, check out `TVM Online Documentation <htt
.. GENERATED FROM PYTHON SOURCE LINES 62-78
-.. code-block:: default
+.. code-block:: Python
import os
@@ -106,7 +106,7 @@ To test this model, we use two samples from `COCO 2014 Train images <https://coc
.. GENERATED FROM PYTHON SOURCE LINES 86-106
-.. code-block:: default
+.. code-block:: Python
MODEL_URL = "https://github.com/mlcommons/tiny/raw/bceb91c5ad2e2deb295547d81505721d3a87d578/benchmark/training/visual_wake_words/trained_models/vww_96_int8.tflite"
MODEL_NAME = "vww_96_int8.tflite"
@@ -146,7 +146,7 @@ finally we export the generated code and all the required dependencies in a sing
.. GENERATED FROM PYTHON SOURCE LINES 113-163
-.. code-block:: default
+.. code-block:: Python
# We can use TVM native schedules or rely on the CMSIS-NN kernels using TVM Bring-Your-Own-Code (BYOC) capability.
@@ -221,7 +221,7 @@ Finally, we downlaod two sample images (one person and one not-person), convert
.. GENERATED FROM PYTHON SOURCE LINES 171-189
-.. code-block:: default
+.. code-block:: Python
with tarfile.open(TAR_PATH, mode="a") as tar_file:
@@ -431,14 +431,17 @@ You should see the LED blinking and the inference result printing on the console
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: micro_custom_ide.ipynb <micro_custom_ide.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: micro_custom_ide.py <micro_custom_ide.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: micro_custom_ide.ipynb <micro_custom_ide.ipynb>`
+ :download:`Download zipped: micro_custom_ide.zip <micro_custom_ide.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/work_with_microtvm/micro_ethosu.rst.txt b/docs/_sources/how_to/work_with_microtvm/micro_ethosu.rst.txt
index 31d6810158..d6eae647f1 100644
--- a/docs/_sources/how_to/work_with_microtvm/micro_ethosu.rst.txt
+++ b/docs/_sources/how_to/work_with_microtvm/micro_ethosu.rst.txt
@@ -604,14 +604,17 @@ classified as 'tabby'.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: micro_ethosu.ipynb <micro_ethosu.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: micro_ethosu.py <micro_ethosu.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: micro_ethosu.ipynb <micro_ethosu.ipynb>`
+ :download:`Download zipped: micro_ethosu.zip <micro_ethosu.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/work_with_microtvm/micro_mlperftiny.rst.txt b/docs/_sources/how_to/work_with_microtvm/micro_mlperftiny.rst.txt
index 15ace0b049..cbeb6c59dd 100644
--- a/docs/_sources/how_to/work_with_microtvm/micro_mlperftiny.rst.txt
+++ b/docs/_sources/how_to/work_with_microtvm/micro_mlperftiny.rst.txt
@@ -41,7 +41,7 @@ supported board to benchmark the model using EEMBC runner.
.. GENERATED FROM PYTHON SOURCE LINES 35-42
-.. code-block:: default
+.. code-block:: Python
import os
@@ -75,7 +75,7 @@ Import Python dependencies
.. GENERATED FROM PYTHON SOURCE LINES 63-77
-.. code-block:: default
+.. code-block:: Python
import tensorflow as tf
import numpy as np
@@ -119,7 +119,7 @@ If you would like to build the submission with CMSIS-NN, modify USE_CMSIS enviro
.. GENERATED FROM PYTHON SOURCE LINES 100-144
-.. code-block:: default
+.. code-block:: Python
MODEL_URL = "https://github.com/mlcommons/tiny/raw/bceb91c5ad2e2deb295547d81505721d3a87d578/benchmark/training/visual_wake_words/trained_models/vww_96_int8.tflite"
@@ -179,7 +179,7 @@ AoT executor to run inference.
.. GENERATED FROM PYTHON SOURCE LINES 153-172
-.. code-block:: default
+.. code-block:: Python
# Use the C runtime (crt)
@@ -214,7 +214,7 @@ workspace size that is required for the compiled model.
.. GENERATED FROM PYTHON SOURCE LINES 181-199
-.. code-block:: default
+.. code-block:: Python
config = {"tir.disable_vectorize": True}
@@ -249,7 +249,7 @@ output header file since the input API call is handled differently.
.. GENERATED FROM PYTHON SOURCE LINES 209-224
-.. code-block:: default
+.. code-block:: Python
extra_tar_dir = tvm.contrib.utils.tempdir()
@@ -282,7 +282,7 @@ your development kit.
.. GENERATED FROM PYTHON SOURCE LINES 235-284
-.. code-block:: default
+.. code-block:: Python
input_total_size = 1
@@ -364,14 +364,17 @@ and benchmark this model on your board.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: micro_mlperftiny.ipynb <micro_mlperftiny.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: micro_mlperftiny.py <micro_mlperftiny.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: micro_mlperftiny.ipynb <micro_mlperftiny.ipynb>`
+ :download:`Download zipped: micro_mlperftiny.zip <micro_mlperftiny.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/work_with_microtvm/micro_pytorch.rst.txt b/docs/_sources/how_to/work_with_microtvm/micro_pytorch.rst.txt
index f5fd5fd713..80bb9315c7 100644
--- a/docs/_sources/how_to/work_with_microtvm/micro_pytorch.rst.txt
+++ b/docs/_sources/how_to/work_with_microtvm/micro_pytorch.rst.txt
@@ -42,7 +42,7 @@ since the model would not fit on our current supported Zephyr boards.
.. GENERATED FROM PYTHON SOURCE LINES 36-51
-.. code-block:: default
+.. code-block:: Python
@@ -77,7 +77,7 @@ download a cat image and preprocess it to use as the model input.
.. GENERATED FROM PYTHON SOURCE LINES 58-86
-.. code-block:: default
+.. code-block:: Python
model = torchvision.models.quantization.mobilenet_v2(weights="DEFAULT", quantize=True)
@@ -115,14 +115,10 @@ download a cat image and preprocess it to use as the model input.
.. code-block:: none
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torch/ao/quantization/utils.py:376: UserWarning: must run observer before calling calculate_qparams. Returning default values.
+ /venv/apache-tvm-py3.9/lib/python3.9/site-packages/torch/ao/quantization/utils.py:376: UserWarning: must run observer before calling calculate_qparams. Returning default values.
warnings.warn(
Downloading: "https://download.pytorch.org/models/quantized/mobilenet_v2_qnnpack_37f702c5.pth" to /workspace/.cache/torch/hub/checkpoints/mobilenet_v2_qnnpack_37f702c5.pth
- 0%| | 0.00/3.42M [00:00<?, ?B/s] 100%|##########| 3.42M/3.42M [00:00<00:00, 66.4MB/s]
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torch/ao/nn/quantized/modules/__init__.py:98: TracerWarning: Converting a tensor to a Python float might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
- return torch.quantize_per_tensor(X, float(self.scale),
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/torch/ao/nn/quantized/modules/__init__.py:99: TracerWarning: Converting a tensor to a Python integer might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
- int(self.zero_point), self.dtype)
+ 0%| | 0.00/3.42M [00:00<?, ?B/s] 100%|██████████| 3.42M/3.42M [00:00<00:00, 55.0MB/s]
@@ -146,7 +142,7 @@ and :ref:`microTVM TFLite Tutorial<tutorial_micro_tflite>`.
.. GENERATED FROM PYTHON SOURCE LINES 101-110
-.. code-block:: default
+.. code-block:: Python
target = tvm.micro.testing.get_target(platform="crt", board=None)
@@ -174,7 +170,7 @@ Now, we compile the model for the target:
.. GENERATED FROM PYTHON SOURCE LINES 116-125
-.. code-block:: default
+.. code-block:: Python
with tvm.transform.PassContext(
@@ -203,7 +199,7 @@ to use the compiled model with microTVM. To do this, we use Project API.
.. GENERATED FROM PYTHON SOURCE LINES 132-144
-.. code-block:: default
+.. code-block:: Python
template_project_path = pathlib.Path(tvm.micro.get_microtvm_template_projects("crt"))
@@ -235,7 +231,7 @@ via the host `main.cc`` or if a Zephyr emulated board is selected as the target.
.. GENERATED FROM PYTHON SOURCE LINES 151-162
-.. code-block:: default
+.. code-block:: Python
project.build()
@@ -264,7 +260,7 @@ Look up prediction top 1 index in 1000 class synset.
.. GENERATED FROM PYTHON SOURCE LINES 167-208
-.. code-block:: default
+.. code-block:: Python
synset_url = (
@@ -324,7 +320,7 @@ Look up prediction top 1 index in 1000 class synset.
.. rst-class:: sphx-glr-timing
- **Total running time of the script:** ( 1 minutes 30.273 seconds)
+ **Total running time of the script:** (1 minutes 46.172 seconds)
.. _sphx_glr_download_how_to_work_with_microtvm_micro_pytorch.py:
@@ -333,14 +329,17 @@ Look up prediction top 1 index in 1000 class synset.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: micro_pytorch.ipynb <micro_pytorch.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: micro_pytorch.py <micro_pytorch.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: micro_pytorch.ipynb <micro_pytorch.ipynb>`
+ :download:`Download zipped: micro_pytorch.zip <micro_pytorch.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/work_with_microtvm/micro_tflite.rst.txt b/docs/_sources/how_to/work_with_microtvm/micro_tflite.rst.txt
index 1003c44c5b..3bd8b19a47 100644
--- a/docs/_sources/how_to/work_with_microtvm/micro_tflite.rst.txt
+++ b/docs/_sources/how_to/work_with_microtvm/micro_tflite.rst.txt
@@ -38,7 +38,7 @@ model with Relay.
.. GENERATED FROM PYTHON SOURCE LINES 32-42
-.. code-block:: default
+.. code-block:: Python
@@ -70,7 +70,7 @@ Import Python dependencies
.. GENERATED FROM PYTHON SOURCE LINES 51-73
-.. code-block:: default
+.. code-block:: Python
import json
import tarfile
@@ -107,7 +107,7 @@ Using the buffer, transform into a tflite model python object
.. GENERATED FROM PYTHON SOURCE LINES 75-84
-.. code-block:: default
+.. code-block:: Python
try:
import tflite
@@ -131,7 +131,7 @@ Print out the version of the model
.. GENERATED FROM PYTHON SOURCE LINES 86-89
-.. code-block:: default
+.. code-block:: Python
version = tflite_model.Version()
print("Model Version: " + str(version))
@@ -162,7 +162,7 @@ See `How do I inspect a .tflite file? <https://www.tensorflow.org/lite/guide/faq
.. GENERATED FROM PYTHON SOURCE LINES 98-107
-.. code-block:: default
+.. code-block:: Python
input_tensor = "dense_4_input"
@@ -194,7 +194,7 @@ QEMU VM based on BOARD. In the example below the x86 arch is selected and a x86
.. GENERATED FROM PYTHON SOURCE LINES 117-135
-.. code-block:: default
+.. code-block:: Python
RUNTIME = tvm.relay.backend.Runtime("crt", {"system-lib": True})
TARGET = tvm.micro.testing.get_target("crt")
@@ -228,7 +228,7 @@ by default it uses GraphExecutor.
.. GENERATED FROM PYTHON SOURCE LINES 138-143
-.. code-block:: default
+.. code-block:: Python
with tvm.transform.PassContext(opt_level=3, config={"tir.disable_vectorize": True}):
@@ -254,7 +254,7 @@ just print the first 10 lines):
.. GENERATED FROM PYTHON SOURCE LINES 151-163
-.. code-block:: default
+.. code-block:: Python
c_source_module = module.get_lib().imported_modules[0]
@@ -301,7 +301,7 @@ model library format. This is a tarball with a standard layout.
.. GENERATED FROM PYTHON SOURCE LINES 170-219
-.. code-block:: default
+.. code-block:: Python
# Get a temporary path where we can store the tarball (since this is running as a tutorial).
@@ -387,7 +387,7 @@ to stand in for an attached microcontroller.
.. GENERATED FROM PYTHON SOURCE LINES 224-241
-.. code-block:: default
+.. code-block:: Python
with tvm.micro.Session(transport_context_manager=generated_project.transport()) as session:
@@ -426,14 +426,17 @@ to stand in for an attached microcontroller.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: micro_tflite.ipynb <micro_tflite.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: micro_tflite.py <micro_tflite.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: micro_tflite.ipynb <micro_tflite.ipynb>`
+ :download:`Download zipped: micro_tflite.zip <micro_tflite.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/work_with_microtvm/micro_train.rst.txt b/docs/_sources/how_to/work_with_microtvm/micro_train.rst.txt
index 9e05ebeb07..fe5f628e6c 100644
--- a/docs/_sources/how_to/work_with_microtvm/micro_train.rst.txt
+++ b/docs/_sources/how_to/work_with_microtvm/micro_train.rst.txt
@@ -89,7 +89,7 @@ We can test our GPU installation with the following code:
.. GENERATED FROM PYTHON SOURCE LINES 82-91
-.. code-block:: default
+.. code-block:: Python
import tensorflow as tf
@@ -125,7 +125,7 @@ scripts - you'll have to adjust the Bash commands too.
.. GENERATED FROM PYTHON SOURCE LINES 98-103
-.. code-block:: default
+.. code-block:: Python
import os
@@ -186,7 +186,7 @@ take about **2 minutes** to download the Stanford Cars, while COCO 2017 validati
.. GENERATED FROM PYTHON SOURCE LINES 151-172
-.. code-block:: default
+.. code-block:: Python
import os
@@ -218,7 +218,7 @@ take about **2 minutes** to download the Stanford Cars, while COCO 2017 validati
.. code-block:: none
- '/tmp/tmpe0dj80xd/images/random'
+ '/tmp/tmp7rv4p5iq/images/random'
@@ -247,7 +247,7 @@ we'll use a ``lambda`` function.
.. GENERATED FROM PYTHON SOURCE LINES 193-205
-.. code-block:: default
+.. code-block:: Python
IMAGE_SIZE = (64, 64, 3)
@@ -284,7 +284,7 @@ objects to other stuff? We can display some examples from our datasets using ``m
.. GENERATED FROM PYTHON SOURCE LINES 211-230
-.. code-block:: default
+.. code-block:: Python
import matplotlib.pyplot as plt
@@ -318,8 +318,8 @@ objects to other stuff? We can display some examples from our datasets using ``m
.. code-block:: none
- /tmp/tmpe0dj80xd/images/target contains 8144 images
- /tmp/tmpe0dj80xd/images/random contains 5000 images
+ /tmp/tmp7rv4p5iq/images/target contains 8144 images
+ /tmp/tmp7rv4p5iq/images/random contains 5000 images
@@ -339,7 +339,7 @@ model will never be trained on validation data - we'll only use it to check our
.. GENERATED FROM PYTHON SOURCE LINES 241-246
-.. code-block:: default
+.. code-block:: Python
num_batches = len(full_dataset)
@@ -405,7 +405,7 @@ can just download the one closest to what we want (the 128x128 input model with
.. GENERATED FROM PYTHON SOURCE LINES 294-306
-.. code-block:: default
+.. code-block:: Python
os.makedirs(f"{FOLDER}/models")
@@ -437,7 +437,7 @@ we'll **cut off the last five layers** of our original model. In their place we'
.. GENERATED FROM PYTHON SOURCE LINES 313-324
-.. code-block:: default
+.. code-block:: Python
model = tf.keras.models.Sequential()
@@ -475,7 +475,7 @@ the time on our validation set).
.. GENERATED FROM PYTHON SOURCE LINES 338-346
-.. code-block:: default
+.. code-block:: Python
model.compile(
@@ -494,13 +494,13 @@ the time on our validation set).
.. code-block:: none
Epoch 1/3
- 328/328 - 46s - loss: 0.2204 - accuracy: 0.9248 - val_loss: 0.1167 - val_accuracy: 0.9585 - 46s/epoch - 140ms/step
+ 328/328 - 50s - loss: 0.2263 - accuracy: 0.9216 - val_loss: 0.1879 - val_accuracy: 0.9264 - 50s/epoch - 153ms/step
Epoch 2/3
- 328/328 - 43s - loss: 0.1054 - accuracy: 0.9613 - val_loss: 0.0900 - val_accuracy: 0.9683 - 43s/epoch - 131ms/step
+ 328/328 - 46s - loss: 0.1067 - accuracy: 0.9610 - val_loss: 0.0901 - val_accuracy: 0.9675 - 46s/epoch - 141ms/step
Epoch 3/3
- 328/328 - 43s - loss: 0.0683 - accuracy: 0.9750 - val_loss: 0.0799 - val_accuracy: 0.9743 - 43s/epoch - 131ms/step
+ 328/328 - 47s - loss: 0.0713 - accuracy: 0.9728 - val_loss: 0.0927 - val_accuracy: 0.9690 - 47s/epoch - 143ms/step
- <keras.callbacks.History object at 0x7fd9f8080610>
+ <keras.callbacks.History object at 0x7f4bd889b580>
@@ -530,7 +530,7 @@ explicitly tell it to avoid this behavior.
.. GENERATED FROM PYTHON SOURCE LINES 368-384
-.. code-block:: default
+.. code-block:: Python
@@ -556,7 +556,7 @@ explicitly tell it to avoid this behavior.
.. code-block:: none
- /venv/apache-tvm-py3.8/lib/python3.8/site-packages/tensorflow/lite/python/convert.py:766: UserWarning: Statistics for quantized inputs were expected, but not specified; continuing anyway.
+ /venv/apache-tvm-py3.9/lib/python3.9/site-packages/tensorflow/lite/python/convert.py:766: UserWarning: Statistics for quantized inputs were expected, but not specified; continuing anyway.
warnings.warn("Statistics for quantized inputs were expected, but not "
@@ -574,7 +574,7 @@ after writing it.
.. GENERATED FROM PYTHON SOURCE LINES 392-399
-.. code-block:: default
+.. code-block:: Python
QUANTIZED_MODEL_PATH = f"{FOLDER}/models/quantized.tflite"
@@ -635,7 +635,7 @@ Relay model into the MLF intermediate representation. From here, we just need to
.. GENERATED FROM PYTHON SOURCE LINES 440-480
-.. code-block:: default
+.. code-block:: Python
import shutil
@@ -773,7 +773,7 @@ by our project:
.. GENERATED FROM PYTHON SOURCE LINES 564-569
-.. code-block:: default
+.. code-block:: Python
shutil.rmtree(f"{FOLDER}/models/project/build", ignore_errors=True)
@@ -805,7 +805,7 @@ after writing it.
.. GENERATED FROM PYTHON SOURCE LINES 582-589
-.. code-block:: default
+.. code-block:: Python
ZIP_FOLDER = f"{FOLDER}/models/project"
@@ -861,7 +861,7 @@ Arduino tutorial for how to do that `on GitHub <https://github.com/guberti/tvm-a
.. rst-class:: sphx-glr-timing
- **Total running time of the script:** ( 4 minutes 37.265 seconds)
+ **Total running time of the script:** (4 minutes 57.988 seconds)
.. _sphx_glr_download_how_to_work_with_microtvm_micro_train.py:
@@ -870,14 +870,17 @@ Arduino tutorial for how to do that `on GitHub <https://github.com/guberti/tvm-a
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: micro_train.ipynb <micro_train.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: micro_train.py <micro_train.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: micro_train.ipynb <micro_train.ipynb>`
+ :download:`Download zipped: micro_train.zip <micro_train.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/work_with_microtvm/micro_tvmc.rst.txt b/docs/_sources/how_to/work_with_microtvm/micro_tvmc.rst.txt
index d8b692f7ab..d43ca770dc 100644
--- a/docs/_sources/how_to/work_with_microtvm/micro_tvmc.rst.txt
+++ b/docs/_sources/how_to/work_with_microtvm/micro_tvmc.rst.txt
@@ -215,14 +215,17 @@ to all ones and shows the four values of the output with their indices.
.. container:: sphx-glr-footer sphx-glr-footer-example
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
+
+ :download:`Download Jupyter notebook: micro_tvmc.ipynb <micro_tvmc.ipynb>`
.. container:: sphx-glr-download sphx-glr-download-python
:download:`Download Python source code: micro_tvmc.py <micro_tvmc.py>`
- .. container:: sphx-glr-download sphx-glr-download-jupyter
+ .. container:: sphx-glr-download sphx-glr-download-zip
- :download:`Download Jupyter notebook: micro_tvmc.ipynb <micro_tvmc.ipynb>`
+ :download:`Download zipped: micro_tvmc.zip <micro_tvmc.zip>`
.. only:: html
diff --git a/docs/_sources/how_to/work_with_microtvm/sg_execution_times.rst.txt b/docs/_sources/how_to/work_with_microtvm/sg_execution_times.rst.txt
index 799f705167..b0fe55fd87 100644
--- a/docs/_sources/how_to/work_with_microtvm/sg_execution_times.rst.txt
+++ b/docs/_sources/how_to/work_with_microtvm/sg_execution_times.rst.txt
@@ -3,26 +3,59 @@
.. _sphx_glr_how_to_work_with_microtvm_sg_execution_times:
+
Computation times
=================
-**08:00.411** total execution time for **how_to_work_with_microtvm** files:
-
-+-----------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_work_with_microtvm_micro_train.py` (``micro_train.py``) | 04:37.265 | 0.0 MB |
-+-----------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_work_with_microtvm_micro_pytorch.py` (``micro_pytorch.py``) | 01:30.273 | 0.0 MB |
-+-----------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_work_with_microtvm_micro_autotune.py` (``micro_autotune.py``) | 01:22.501 | 0.0 MB |
-+-----------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_work_with_microtvm_micro_aot.py` (``micro_aot.py``) | 00:11.803 | 0.0 MB |
-+-----------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_work_with_microtvm_micro_custom_ide.py` (``micro_custom_ide.py``) | 00:10.429 | 0.0 MB |
-+-----------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_work_with_microtvm_micro_tflite.py` (``micro_tflite.py``) | 00:08.139 | 0.0 MB |
-+-----------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_work_with_microtvm_micro_ethosu.py` (``micro_ethosu.py``) | 00:00.000 | 0.0 MB |
-+-----------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_work_with_microtvm_micro_tvmc.py` (``micro_tvmc.py``) | 00:00.000 | 0.0 MB |
-+-----------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_how_to_work_with_microtvm_micro_mlperftiny.py` (``micro_mlperftiny.py``) | 00:00.000 | 0.0 MB |
-+-----------------------------------------------------------------------------------------+-----------+--------+
+**09:01.720** total execution time for 9 files **from how_to/work_with_microtvm**:
+
+.. container::
+
+ .. raw:: html
+
+ <style scoped>
+ <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet" />
+ <link href="https://cdn.datatables.net/1.13.6/css/dataTables.bootstrap5.min.css" rel="stylesheet" />
+ </style>
+ <script src="https://code.jquery.com/jquery-3.7.0.js"></script>
+ <script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
+ <script src="https://cdn.datatables.net/1.13.6/js/dataTables.bootstrap5.min.js"></script>
+ <script type="text/javascript" class="init">
+ $(document).ready( function () {
+ $('table.sg-datatable').DataTable({order: [[1, 'desc']]});
+ } );
+ </script>
+
+ .. list-table::
+ :header-rows: 1
+ :class: table table-striped sg-datatable
+
+ * - Example
+ - Time
+ - Mem (MB)
+ * - :ref:`sphx_glr_how_to_work_with_microtvm_micro_train.py` (``micro_train.py``)
+ - 04:57.988
+ - 0.0
+ * - :ref:`sphx_glr_how_to_work_with_microtvm_micro_pytorch.py` (``micro_pytorch.py``)
+ - 01:46.172
+ - 0.0
+ * - :ref:`sphx_glr_how_to_work_with_microtvm_micro_autotune.py` (``micro_autotune.py``)
+ - 01:40.831
+ - 0.0
+ * - :ref:`sphx_glr_how_to_work_with_microtvm_micro_aot.py` (``micro_aot.py``)
+ - 00:14.386
+ - 0.0
+ * - :ref:`sphx_glr_how_to_work_with_microtvm_micro_custom_ide.py` (``micro_custom_ide.py``)
+ - 00:12.820
+ - 0.0
+ * - :ref:`sphx_glr_how_to_work_with_microtvm_micro_tflite.py` (``micro_tflite.py``)
+ - 00:09.523
+ - 0.0
+ * - :ref:`sphx_glr_how_to_work_with_microtvm_micro_ethosu.py` (``micro_ethosu.py``)
+ - 00:00.000
+ - 0.0
+ * - :ref:`sphx_glr_how_to_work_with_microtvm_micro_tvmc.py` (``micro_tvmc.py``)
+ - 00:00.000
+ - 0.0
+ * - :ref:`sphx_glr_how_to_work_with_microtvm_micro_mlperftiny.py` (``micro_mlperftiny.py``)
+ - 00:00.000
+ - 0.0
diff --git a/docs/_sources/how_to/work_with_relay/build_gcn.rst.txt b/docs/_sources/how_to/work_with_relay/build_gcn.rst.txt
index db2e494197..4272d55192 100644
--- a/docs/_sources/how_to/work_with_relay/build_gcn.rst.txt
+++ b/docs/_sources/how_to/work_with_relay/build_gcn.rst.txt
@@ -53,7 +53,7 @@ This part reuses the code from the above example.
.. GENERATED FROM PYTHON SOURCE LINES 48-77
-.. code-block:: default
+.. code-block:: Python
... 136563 lines suppressed ...