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 2020/04/16 01:12:21 UTC

[incubator-tvm-site] branch asf-site updated: Docs build at Wed Apr 15 18:12:07 PDT 2020

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/incubator-tvm-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 076a8f9  Docs build at Wed Apr 15 18:12:07 PDT 2020
076a8f9 is described below

commit 076a8f9a4cfe57d5b244cb8bf2ce053dbe956816
Author: tqchen <tq...@octoml.ai>
AuthorDate: Wed Apr 15 18:12:07 2020 -0700

    Docs build at Wed Apr 15 18:12:07 PDT 2020
---
 .../from_pytorch.ipynb                             |    4 +-
 .../deploy_prequantized.ipynb                      |  287 ++
 .../deploy_prequantized.py                         |  237 ++
 .../from_pytorch.py                                |    4 +-
 .../_images/sphx_glr_deploy_prequantized_thumb.png |  Bin 0 -> 26786 bytes
 docs/_sources/api/python/index.rst.txt             |   10 +-
 docs/_sources/api/python/relay/frontend.rst.txt    |   19 +-
 docs/_sources/api/python/relay/image.rst.txt       |    4 +-
 docs/_sources/api/python/relay/index.rst.txt       |   25 +-
 docs/_sources/api/python/relay/nn.rst.txt          |    4 +-
 docs/_sources/api/python/relay/op.rst.txt          |   24 -
 docs/_sources/api/python/relay/testing.rst.txt     |   32 +-
 docs/_sources/api/python/relay/transform.rst.txt   |    1 -
 docs/_sources/api/python/relay/vision.rst.txt      |    2 +-
 docs/_sources/dev/relay_pass_infra.rst.txt         |    2 +-
 .../tutorials/autotvm/sg_execution_times.rst.txt   |   10 +-
 .../tutorials/autotvm/tune_conv2d_cuda.rst.txt     |   42 +-
 .../tutorials/autotvm/tune_simple_template.rst.txt |   20 +-
 .../tutorials/cross_compilation_and_rpc.rst.txt    |    2 +-
 .../tutorials/dev/low_level_custom_pass.rst.txt    |   20 +-
 .../tutorials/dev/sg_execution_times.rst.txt       |    6 +-
 .../frontend/deploy_model_on_android.rst.txt       |    2 +-
 .../tutorials/frontend/deploy_prequantized.rst.txt |  426 ++
 .../tutorials/frontend/deploy_ssd_gluoncv.rst.txt  |   78 +-
 docs/_sources/tutorials/frontend/from_onnx.rst.txt |    2 +-
 .../tutorials/frontend/from_pytorch.rst.txt        |    4 +-
 .../tutorials/frontend/sg_execution_times.rst.txt  |   33 +-
 docs/_sources/tutorials/index.rst.txt              |   20 +
 docs/_sources/tutorials/language/reduction.rst.txt |   92 +-
 docs/_sources/tutorials/language/scan.rst.txt      |   64 +-
 .../tutorials/language/schedule_primitives.rst.txt |  124 +-
 .../tutorials/language/sg_execution_times.rst.txt  |   18 +-
 docs/_sources/tutorials/language/tensorize.rst.txt |   44 +-
 .../tutorials/language/tuple_inputs.rst.txt        |   42 +-
 .../tutorials/optimize/opt_conv_cuda.rst.txt       |    2 +-
 .../tutorials/optimize/opt_conv_tensorcore.rst.txt |  238 +-
 docs/_sources/tutorials/optimize/opt_gemm.rst.txt  |  208 +-
 .../tutorials/optimize/sg_execution_times.rst.txt  |    8 +-
 docs/_sources/tutorials/relay_quick_start.rst.txt  |    2 +-
 docs/_sources/tutorials/sg_execution_times.rst.txt |    8 +-
 docs/_sources/tutorials/topi/intro_topi.rst.txt    |  558 ++-
 .../tutorials/topi/sg_execution_times.rst.txt      |    4 +-
 .../tutorials/autotvm/sg_execution_times.rst.txt   |    4 +-
 .../vta/tutorials/autotvm/tune_relay_vta.rst.txt   |   14 +-
 .../frontend/deploy_classification.rst.txt         |    4 +-
 .../tutorials/frontend/deploy_detection.rst.txt    |    2 +-
 .../tutorials/frontend/sg_execution_times.rst.txt  |    6 +-
 .../_sources/vta/tutorials/matrix_multiply.rst.txt |  131 +-
 .../vta/tutorials/optimize/convolution_opt.rst.txt |  386 +-
 .../tutorials/optimize/matrix_multiply_opt.rst.txt |  257 +-
 .../tutorials/optimize/sg_execution_times.rst.txt  |    6 +-
 .../vta/tutorials/sg_execution_times.rst.txt       |    6 +-
 .../_sources/vta/tutorials/vta_get_started.rst.txt |   54 +-
 docs/api/python/autotvm.html                       |   14 +-
 docs/api/python/contrib.html                       |   10 +-
 docs/api/python/driver.html                        |   14 +-
 docs/api/python/error.html                         |   10 +-
 docs/api/python/graph_runtime.html                 |   14 +-
 docs/api/python/index.html                         |   31 +-
 docs/api/python/ir.html                            |   42 +-
 docs/api/python/ndarray.html                       |   10 +-
 docs/api/python/relay/analysis.html                |   27 +-
 docs/api/python/relay/backend.html                 |   31 +-
 docs/api/python/relay/frontend.html                |  205 +-
 docs/api/python/relay/image.html                   |   74 +-
 docs/api/python/relay/index.html                   |   84 +-
 docs/api/python/relay/nn.html                      | 2073 +++++-----
 docs/api/python/relay/op.html                      | 3252 ---------------
 docs/api/python/relay/testing.html                 |  656 +++-
 docs/api/python/relay/transform.html               |   27 +-
 docs/api/python/relay/vision.html                  |  148 +-
 docs/api/python/rpc.html                           |   10 +-
 docs/api/python/runtime.html                       |   10 +-
 docs/api/python/target.html                        |   10 +-
 docs/api/python/te.html                            |   10 +-
 docs/api/python/tir.html                           |   86 +-
 docs/api/python/topi.html                          |   10 +-
 docs/api/python/vta/index.html                     |   14 +-
 docs/dev/relay_pass_infra.html                     |    2 +-
 docs/doxygen/annotated.html                        |  352 +-
 docs/doxygen/classes.html                          |  220 +-
 docs/doxygen/classtvm_1_1BaseAttrsNode.html        |   10 +-
 .../classtvm_1_1tir_1_1AllocateNode-members.html   |    4 +-
 docs/doxygen/classtvm_1_1tir_1_1AllocateNode.html  |   52 +-
 ...lasstvm_1_1tir_1_1AllocateNode__coll__graph.svg |  282 +-
 ...stvm_1_1tir_1_1AllocateNode__inherit__graph.svg |   64 +-
 ...tvm_1_1tir_1_1ProducerConsumerNode-members.html |  117 -
 .../classtvm_1_1tir_1_1ProducerConsumerNode.html   |  386 --
 ...1_1tir_1_1ProducerConsumerNode__coll__graph.svg |  119 -
 ...tir_1_1ProducerConsumerNode__inherit__graph.svg |   64 -
 docs/doxygen/classtvm_1_1tir_1_1SeqStmt.html       |    1 -
 ...classtvm_1_1tir_1_1StmtExprMutator-members.html |   11 +-
 .../classtvm_1_1tir_1_1StmtExprMutator.html        |    2 -
 ...stvm_1_1tir_1_1StmtExprMutator__coll__graph.svg |    2 +-
 ...m_1_1tir_1_1StmtExprMutator__inherit__graph.svg |    2 +-
 ...classtvm_1_1tir_1_1StmtExprVisitor-members.html |   11 +-
 .../classtvm_1_1tir_1_1StmtExprVisitor.html        |    6 +-
 ...stvm_1_1tir_1_1StmtExprVisitor__coll__graph.svg |   86 +-
 ...m_1_1tir_1_1StmtExprVisitor__inherit__graph.svg |   86 +-
 ...tmt_01_6n_00_01Args_8_8_8args_08_4-members.html |   15 +-
 ...onst_01Stmt_01_6n_00_01Args_8_8_8args_08_4.html |   38 -
 ...01_6n_00_01Args_8_8_8args_08_4__coll__graph.svg |    2 +-
 .../classtvm_1_1tir_1_1StmtMutator-members.html    |   11 +-
 docs/doxygen/classtvm_1_1tir_1_1StmtMutator.html   |   26 -
 ...classtvm_1_1tir_1_1StmtMutator__coll__graph.svg |    2 +-
 ...sstvm_1_1tir_1_1StmtMutator__inherit__graph.svg |    2 +-
 docs/doxygen/classtvm_1_1tir_1_1StmtNode.html      |    2 +-
 ...classtvm_1_1tir_1_1StmtNode__inherit__graph.svg |  480 ++-
 .../classtvm_1_1tir_1_1StmtVisitor-members.html    |   11 +-
 docs/doxygen/classtvm_1_1tir_1_1StmtVisitor.html   |   30 +-
 ...classtvm_1_1tir_1_1StmtVisitor__coll__graph.svg |   44 +-
 ...sstvm_1_1tir_1_1StmtVisitor__inherit__graph.svg |   48 +-
 docs/doxygen/device__copy_8h_source.html           |    2 +-
 docs/doxygen/functions__.html                      |    1 -
 docs/doxygen/functions_b.html                      |    1 -
 docs/doxygen/functions_d.html                      |    7 +-
 docs/doxygen/functions_f.html                      |    8 +-
 docs/doxygen/functions_func_m.html                 |    5 +-
 docs/doxygen/functions_func_s.html                 |    4 +-
 docs/doxygen/functions_func_t.html                 |   12 +-
 docs/doxygen/functions_func_v.html                 |   25 +-
 docs/doxygen/functions_i.html                      |   11 +-
 docs/doxygen/functions_l.html                      |    2 +-
 docs/doxygen/functions_m.html                      |    7 +-
 docs/doxygen/functions_n.html                      |    3 -
 docs/doxygen/functions_s.html                      |    4 +-
 docs/doxygen/functions_t.html                      |    6 +-
 docs/doxygen/functions_v.html                      |   25 +-
 docs/doxygen/functions_vars.html                   |    1 -
 docs/doxygen/functions_vars_b.html                 |    1 -
 docs/doxygen/functions_vars_d.html                 |    7 +-
 docs/doxygen/functions_vars_f.html                 |    4 -
 docs/doxygen/functions_vars_i.html                 |    3 -
 docs/doxygen/functions_vars_n.html                 |    3 -
 docs/doxygen/hierarchy.html                        |  359 +-
 .../include_2tvm_2tir_2transform_8h_source.html    |    2 +-
 docs/doxygen/inherit_graph_5.svg                   | 4145 ++++++++++----------
 docs/doxygen/inherits.html                         |    2 +-
 docs/doxygen/namespacemembers_f.html               |   12 +-
 docs/doxygen/namespacemembers_func_f.html          |   12 +-
 docs/doxygen/namespacemembers_func_t.html          |    5 +-
 docs/doxygen/namespacemembers_t.html               |    5 +-
 docs/doxygen/namespacetvm_1_1relay.html            |   77 +
 docs/doxygen/namespacetvm_1_1tir.html              |    3 -
 docs/doxygen/relay_2attrs_2memory_8h.html          |   18 +-
 docs/doxygen/relay_2attrs_2memory_8h__incl.svg     | 1051 ++---
 docs/doxygen/relay_2attrs_2memory_8h_source.html   |   28 +-
 docs/doxygen/search/all_1.js                       |    2 +-
 docs/doxygen/search/all_10.js                      |    2 +-
 docs/doxygen/search/all_11.js                      |    7 +-
 docs/doxygen/search/all_14.js                      |    6 +-
 docs/doxygen/search/all_15.js                      |   15 +-
 docs/doxygen/search/all_17.js                      |   12 +-
 docs/doxygen/search/all_2.js                       |    8 +-
 docs/doxygen/search/all_3.js                       |    2 +-
 docs/doxygen/search/all_4.js                       |    2 +-
 docs/doxygen/search/all_5.js                       |    5 +-
 docs/doxygen/search/all_7.js                       |   15 +-
 docs/doxygen/search/all_9.js                       |    2 +-
 docs/doxygen/search/all_a.js                       |    5 +-
 docs/doxygen/search/all_d.js                       |    2 +-
 docs/doxygen/search/all_e.js                       |    2 +-
 docs/doxygen/search/all_f.js                       |    1 -
 docs/doxygen/search/classes_0.js                   |    2 +
 docs/doxygen/search/classes_13.js                  |    6 +-
 docs/doxygen/search/classes_7.js                   |    2 +-
 docs/doxygen/search/classes_d.js                   |    1 -
 docs/doxygen/search/functions_12.js                |    6 +-
 docs/doxygen/search/functions_13.js                |    5 +-
 docs/doxygen/search/functions_15.js                |    4 +-
 docs/doxygen/search/functions_6.js                 |    2 +
 docs/doxygen/search/functions_d.js                 |    2 +-
 docs/doxygen/search/functions_f.js                 |    2 +-
 docs/doxygen/search/variables_0.js                 |    2 +-
 docs/doxygen/search/variables_2.js                 |    2 +-
 docs/doxygen/search/variables_4.js                 |    5 +-
 docs/doxygen/search/variables_6.js                 |    3 +-
 docs/doxygen/search/variables_9.js                 |    1 -
 docs/doxygen/search/variables_d.js                 |    1 -
 docs/doxygen/stmt_8h.html                          |    3 -
 docs/doxygen/stmt_8h_source.html                   |  285 +-
 docs/doxygen/stmt__functor_8h_source.html          |   47 +-
 ...ttvm_1_1relay_1_1AllocStorageAttrs-members.html |  124 +
 .../structtvm_1_1relay_1_1AllocStorageAttrs.html   |  259 ++
 ..._1_1relay_1_1AllocStorageAttrs__coll__graph.svg |  123 +
 ...1relay_1_1AllocStorageAttrs__inherit__graph.svg |   90 +
 docs/doxygen/tir_2op_8h_source.html                |    4 +-
 docs/genindex.html                                 |  640 +--
 docs/index.html                                    |   10 +-
 docs/langref/relay_expr.html                       |    4 +-
 docs/langref/relay_op.html                         |   78 +-
 docs/objects.inv                                   |  Bin 14053 -> 13811 bytes
 docs/py-modindex.html                              |   53 +-
 docs/searchindex.js                                |    2 +-
 docs/tutorials/autotvm/sg_execution_times.html     |   10 +-
 docs/tutorials/autotvm/tune_conv2d_cuda.html       |   42 +-
 docs/tutorials/autotvm/tune_relay_arm.html         |   14 +-
 docs/tutorials/autotvm/tune_relay_cuda.html        |   14 +-
 docs/tutorials/autotvm/tune_relay_mobile_gpu.html  |   14 +-
 docs/tutorials/autotvm/tune_relay_x86.html         |   18 +-
 docs/tutorials/autotvm/tune_simple_template.html   |   20 +-
 docs/tutorials/cross_compilation_and_rpc.html      |    2 +-
 docs/tutorials/dev/low_level_custom_pass.html      |   20 +-
 docs/tutorials/dev/relay_pass_infra.html           |    4 +-
 docs/tutorials/dev/sg_execution_times.html         |    6 +-
 docs/tutorials/frontend/build_gcn.html             |    9 +-
 .../frontend/deploy_model_on_android.html          |    3 +-
 docs/tutorials/frontend/deploy_model_on_rasp.html  |    3 +-
 docs/tutorials/frontend/deploy_prequantized.html   |  553 +++
 docs/tutorials/frontend/deploy_quantized.html      |    1 +
 docs/tutorials/frontend/deploy_ssd_gluoncv.html    |   85 +-
 docs/tutorials/frontend/from_caffe2.html           |    1 +
 docs/tutorials/frontend/from_coreml.html           |    1 +
 docs/tutorials/frontend/from_darknet.html          |    3 +-
 docs/tutorials/frontend/from_keras.html            |    1 +
 docs/tutorials/frontend/from_mxnet.html            |    3 +-
 docs/tutorials/frontend/from_onnx.html             |    7 +-
 docs/tutorials/frontend/from_pytorch.html          |    9 +-
 docs/tutorials/frontend/from_tensorflow.html       |    1 +
 docs/tutorials/frontend/from_tflite.html           |    5 +-
 docs/tutorials/frontend/sg_execution_times.html    |   33 +-
 docs/tutorials/frontend/using_external_lib.html    |   11 +-
 docs/tutorials/index.html                          |  111 +-
 docs/tutorials/language/reduction.html             |   92 +-
 docs/tutorials/language/scan.html                  |   64 +-
 docs/tutorials/language/schedule_primitives.html   |  124 +-
 docs/tutorials/language/sg_execution_times.html    |   18 +-
 docs/tutorials/language/tensorize.html             |   44 +-
 docs/tutorials/language/tuple_inputs.html          |   42 +-
 docs/tutorials/optimize/opt_conv_cuda.html         |    2 +-
 docs/tutorials/optimize/opt_conv_tensorcore.html   |  238 +-
 docs/tutorials/optimize/opt_gemm.html              |  208 +-
 docs/tutorials/optimize/sg_execution_times.html    |    8 +-
 docs/tutorials/relay_quick_start.html              |  104 +-
 docs/tutorials/sg_execution_times.html             |    8 +-
 docs/tutorials/topi/intro_topi.html                |  558 ++-
 docs/tutorials/topi/sg_execution_times.html        |    4 +-
 docs/vta/tutorials/autotvm/sg_execution_times.html |    4 +-
 docs/vta/tutorials/autotvm/tune_relay_vta.html     |  198 +-
 .../tutorials/frontend/deploy_classification.html  |   18 +-
 docs/vta/tutorials/frontend/deploy_detection.html  |    4 +-
 .../vta/tutorials/frontend/sg_execution_times.html |    6 +-
 docs/vta/tutorials/matrix_multiply.html            |  131 +-
 docs/vta/tutorials/optimize/convolution_opt.html   |  386 +-
 .../tutorials/optimize/matrix_multiply_opt.html    |  257 +-
 .../vta/tutorials/optimize/sg_execution_times.html |    6 +-
 docs/vta/tutorials/sg_execution_times.html         |    6 +-
 docs/vta/tutorials/vta_get_started.html            |   54 +-
 248 files changed, 11311 insertions(+), 13058 deletions(-)

diff --git a/docs/_downloads/6c8a9d3bc4c689f8680a968349965ee5/from_pytorch.ipynb b/docs/_downloads/6c8a9d3bc4c689f8680a968349965ee5/from_pytorch.ipynb
index 0b3d42a..6c66225 100644
--- a/docs/_downloads/6c8a9d3bc4c689f8680a968349965ee5/from_pytorch.ipynb
+++ b/docs/_downloads/6c8a9d3bc4c689f8680a968349965ee5/from_pytorch.ipynb
@@ -69,7 +69,7 @@
       "cell_type": "markdown",
       "metadata": {},
       "source": [
-        "Import the graph to Relay\n-------------------------\nConvert PyTorch graph to Relay graph.\n\n"
+        "Import the graph to Relay\n-------------------------\nConvert PyTorch graph to Relay graph. The input name can be arbitrary.\n\n"
       ]
     },
     {
@@ -80,7 +80,7 @@
       },
       "outputs": [],
       "source": [
-        "input_name = 'input0'  # only one input, set it to this name\nshape_list = [(input_name, img.shape)]\nmod, params = relay.frontend.from_pytorch(scripted_model,\n                                          shape_list)"
+        "input_name = 'input0'\nshape_list = [(input_name, img.shape)]\nmod, params = relay.frontend.from_pytorch(scripted_model,\n                                          shape_list)"
       ]
     },
     {
diff --git a/docs/_downloads/78da213eae381b8ff94cc356ee7c5423/deploy_prequantized.ipynb b/docs/_downloads/78da213eae381b8ff94cc356ee7c5423/deploy_prequantized.ipynb
new file mode 100644
index 0000000..2927b78
--- /dev/null
+++ b/docs/_downloads/78da213eae381b8ff94cc356ee7c5423/deploy_prequantized.ipynb
@@ -0,0 +1,287 @@
+{
+  "cells": [
+    {
+      "cell_type": "code",
+      "execution_count": null,
+      "metadata": {
+        "collapsed": false
+      },
+      "outputs": [],
+      "source": [
+        "%matplotlib inline"
+      ]
+    },
+    {
+      "cell_type": "markdown",
+      "metadata": {},
+      "source": [
+        "\nDeploy a Framework-prequantized Model with TVM\n==============================================\n**Author**: `Masahiro Masuda <https://github.com/masahi>`_\n\nThis is a tutorial on loading models quantized by deep learning frameworks into TVM.\nPre-quantized model import is one of the quantization support we have in TVM. More details on\nthe quantization story in TVM can be found\n`here <https://discuss.tvm.ai/t/quantization-story/3920>`_.\n\nHere, we demonstrate how to load an [...]
+      ]
+    },
+    {
+      "cell_type": "markdown",
+      "metadata": {},
+      "source": [
+        "First, necessary imports\n\n"
+      ]
+    },
+    {
+      "cell_type": "code",
+      "execution_count": null,
+      "metadata": {
+        "collapsed": false
+      },
+      "outputs": [],
+      "source": [
+        "from PIL import Image\n\nimport numpy as np\n\nimport torch\nfrom torchvision.models.quantization import mobilenet as qmobilenet\n\nimport tvm\nfrom tvm import relay\nfrom tvm.contrib.download import download_testdata"
+      ]
+    },
+    {
+      "cell_type": "markdown",
+      "metadata": {},
+      "source": [
+        "Helper functions to run the demo\n\n"
+      ]
+    },
+    {
+      "cell_type": "code",
+      "execution_count": null,
+      "metadata": {
+        "collapsed": false
+      },
+      "outputs": [],
+      "source": [
+        "def get_transform():\n    import torchvision.transforms as transforms\n    normalize = transforms.Normalize(mean=[0.485, 0.456, 0.406],\n                                     std=[0.229, 0.224, 0.225])\n    return transforms.Compose([\n            transforms.Resize(256),\n            transforms.CenterCrop(224),\n            transforms.ToTensor(),\n            normalize,\n        ])\n\n\ndef get_real_image(im_height, im_width):\n    img_url = 'https://github.com/dmlc/mxnet.js/blob [...]
+      ]
+    },
+    {
+      "cell_type": "markdown",
+      "metadata": {},
+      "source": [
+        "A mapping from label to class name, to verify that the outputs from models below\nare reasonable\n\n"
+      ]
+    },
+    {
+      "cell_type": "code",
+      "execution_count": null,
+      "metadata": {
+        "collapsed": false
+      },
+      "outputs": [],
+      "source": [
+        "synset = get_synset()"
+      ]
+    },
+    {
+      "cell_type": "markdown",
+      "metadata": {},
+      "source": [
+        "Everyone's favorite cat image for demonstration\n\n"
+      ]
+    },
+    {
+      "cell_type": "code",
+      "execution_count": null,
+      "metadata": {
+        "collapsed": false
+      },
+      "outputs": [],
+      "source": [
+        "inp = get_imagenet_input()"
+      ]
+    },
+    {
+      "cell_type": "markdown",
+      "metadata": {},
+      "source": [
+        "Deploy a quantized PyTorch Model\n--------------------------------\nFirst, we demonstrate how to load deep learning models quantized by PyTorch,\nusing our PyTorch frontend.\n\nPlease refer to the PyTorch static quantization tutorial below to learn about\ntheir quantization workflow.\nhttps://pytorch.org/tutorials/advanced/static_quantization_tutorial.html\n\nWe use this function to quantize PyTorch models.\nIn short, this function takes a floating point model and converts it to [...]
+      ]
+    },
+    {
+      "cell_type": "code",
+      "execution_count": null,
+      "metadata": {
+        "collapsed": false
+      },
+      "outputs": [],
+      "source": [
+        "def quantize_model(model, inp):\n    model.fuse_model()\n    model.qconfig = torch.quantization.get_default_qconfig('fbgemm')\n    torch.quantization.prepare(model, inplace=True)\n    # Dummy calibration\n    model(inp)\n    torch.quantization.convert(model, inplace=True)"
+      ]
+    },
+    {
+      "cell_type": "markdown",
+      "metadata": {},
+      "source": [
+        "Load quantization-ready, pretrained Mobilenet v2 model from torchvision\n-----------------------------------------------------------------------\nWe choose mobilenet v2 because this model was trained with quantization aware\ntraining. Other models require a full post training calibration.\n\n"
+      ]
+    },
+    {
+      "cell_type": "code",
+      "execution_count": null,
+      "metadata": {
+        "collapsed": false
+      },
+      "outputs": [],
+      "source": [
+        "qmodel = qmobilenet.mobilenet_v2(pretrained=True).eval()"
+      ]
+    },
+    {
+      "cell_type": "markdown",
+      "metadata": {},
+      "source": [
+        "Quantize, trace and run the PyTorch Mobilenet v2 model\n------------------------------------------------------\nThe details are out of scope for this tutorial. Please refer to the tutorials\non the PyTorch website to learn about quantization and jit.\n\n"
+      ]
+    },
+    {
+      "cell_type": "code",
+      "execution_count": null,
+      "metadata": {
+        "collapsed": false
+      },
+      "outputs": [],
+      "source": [
+        "pt_inp = torch.from_numpy(inp)\nquantize_model(qmodel, pt_inp)\nscript_module = torch.jit.trace(qmodel, pt_inp).eval()\n\nwith torch.no_grad():\n    pt_result = script_module(pt_inp).numpy()"
+      ]
+    },
+    {
+      "cell_type": "markdown",
+      "metadata": {},
+      "source": [
+        "Convert quantized Mobilenet v2 to Relay-QNN using the PyTorch frontend\n----------------------------------------------------------------------\nThe PyTorch frontend has support for converting a quantized PyTorch model to\nan equivalent Relay module enriched with quantization-aware operators.\nWe call this representation Relay QNN dialect.\n\nYou can print the output from the frontend to see how quantized models are\nrepresented.\n\nYou would see operators specific to quantizatio [...]
+      ]
+    },
+    {
+      "cell_type": "code",
+      "execution_count": null,
+      "metadata": {
+        "collapsed": false
+      },
+      "outputs": [],
+      "source": [
+        "input_name = \"input\"  # the input name can be be arbitrary for PyTorch frontend.\ninput_shapes = [(input_name, (1, 3, 224, 224))]\nmod, params = relay.frontend.from_pytorch(script_module, input_shapes)\n# print(mod) # comment in to see the QNN IR dump"
+      ]
+    },
+    {
+      "cell_type": "markdown",
+      "metadata": {},
+      "source": [
+        "Compile and run the Relay module\n--------------------------------\nOnce we obtained the quantized Relay module, the rest of the workflow\nis the same as running floating point models. Please refer to other\ntutorials for more details.\n\nUnder the hood, quantization specific operators are lowered to a sequence of\nstandard Relay operators before compilation.\n\n"
+      ]
+    },
+    {
+      "cell_type": "code",
+      "execution_count": null,
+      "metadata": {
+        "collapsed": false
+      },
+      "outputs": [],
+      "source": [
+        "tvm_result, rt_mod = run_tvm_model(mod, params, input_name, inp, target=\"llvm\")"
+      ]
+    },
+    {
+      "cell_type": "markdown",
+      "metadata": {},
+      "source": [
+        "Compare the output labels\n-------------------------\nWe should see identical labels printed.\n\n"
+      ]
+    },
+    {
+      "cell_type": "code",
+      "execution_count": null,
+      "metadata": {
+        "collapsed": false
+      },
+      "outputs": [],
+      "source": [
+        "pt_top3_labels = np.argsort(pt_result[0])[::-1][:3]\ntvm_top3_labels = np.argsort(tvm_result[0])[::-1][:3]\n\nprint(\"PyTorch top3 labels:\", [synset[label] for label in pt_top3_labels])\nprint(\"TVM top3 labels:\", [synset[label] for label in tvm_top3_labels])"
+      ]
+    },
+    {
+      "cell_type": "markdown",
+      "metadata": {},
+      "source": [
+        "However, due to the difference in numerics, in general the raw floating point\noutputs are not expected to be identical. Here, we print how many floating point\noutput values are identical out of 1000 outputs from mobilenet v2.\n\n"
+      ]
+    },
+    {
+      "cell_type": "code",
+      "execution_count": null,
+      "metadata": {
+        "collapsed": false
+      },
+      "outputs": [],
+      "source": [
+        "print(\"%d in 1000 raw floating outputs identical.\" % np.sum(tvm_result[0] == pt_result[0]))"
+      ]
+    },
+    {
+      "cell_type": "markdown",
+      "metadata": {},
+      "source": [
+        "Measure performance\n-------------------------\nHere we give an example of how to measure performance of TVM compiled models.\n\n"
+      ]
+    },
+    {
+      "cell_type": "code",
+      "execution_count": null,
+      "metadata": {
+        "collapsed": false
+      },
+      "outputs": [],
+      "source": [
+        "n_repeat = 100  # should be bigger to make the measurement more accurate\nctx = tvm.cpu(0)\nftimer = rt_mod.module.time_evaluator(\"run\", ctx, number=1,\n                                      repeat=n_repeat)\nprof_res = np.array(ftimer().results) * 1e3\nprint(\"Elapsed average ms:\", np.mean(prof_res))"
+      ]
+    },
+    {
+      "cell_type": "markdown",
+      "metadata": {},
+      "source": [
+        "<div class=\"alert alert-info\"><h4>Note</h4><p>We recommend this method for the following reasons:\n\n   * Measurements are done in C++, so there is no Python overhead\n   * It includes several warm up runs\n   * The same method can be used to profile on remote devices (android etc.).</p></div>\n\n"
+      ]
+    },
+    {
+      "cell_type": "markdown",
+      "metadata": {},
+      "source": [
+        "<div class=\"alert alert-info\"><h4>Note</h4><p>Unless the hardware has special support for fast 8 bit instructions, quantized models are\n  not expected to be any faster than FP32 models. Without fast 8 bit instructions, TVM does\n  quantized convolution in 16 bit, even if the model itself is 8 bit.\n\n  For x86, the best performance can be achieved on CPUs with AVX512 instructions set.\n  In this case, TVM utilizes the fastest available 8 bit instructions for the given target. [...]
+      ]
+    },
+    {
+      "cell_type": "markdown",
+      "metadata": {},
+      "source": [
+        "Deploy a quantized MXNet Model\n------------------------------\nTODO\n\n"
+      ]
+    },
+    {
+      "cell_type": "markdown",
+      "metadata": {},
+      "source": [
+        "Deploy a quantized TFLite Model\n-------------------------------\nTODO\n\n"
+      ]
+    }
+  ],
+  "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.6.10"
+    }
+  },
+  "nbformat": 4,
+  "nbformat_minor": 0
+}
\ No newline at end of file
diff --git a/docs/_downloads/8a7f17665207908e373e8146da09443a/deploy_prequantized.py b/docs/_downloads/8a7f17665207908e373e8146da09443a/deploy_prequantized.py
new file mode 100644
index 0000000..4027977
--- /dev/null
+++ b/docs/_downloads/8a7f17665207908e373e8146da09443a/deploy_prequantized.py
@@ -0,0 +1,237 @@
+# 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.
+"""
+Deploy a Framework-prequantized Model with TVM
+==============================================
+**Author**: `Masahiro Masuda <https://github.com/masahi>`_
+
+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 <https://discuss.tvm.ai/t/quantization-story/3920>`_.
+
+Here, we demonstrate how to load and run models quantized by PyTorch, MXNet, and TFLite.
+Once loaded, we can run compiled, quantized models on any hardware TVM supports.
+"""
+
+#################################################################################
+# First, necessary imports
+from PIL import Image
+
+import numpy as np
+
+import torch
+from torchvision.models.quantization import mobilenet as qmobilenet
+
+import tvm
+from tvm import relay
+from tvm.contrib.download import download_testdata
+
+
+#################################################################################
+# Helper functions to run the demo
+def get_transform():
+    import torchvision.transforms as transforms
+    normalize = transforms.Normalize(mean=[0.485, 0.456, 0.406],
+                                     std=[0.229, 0.224, 0.225])
+    return transforms.Compose([
+            transforms.Resize(256),
+            transforms.CenterCrop(224),
+            transforms.ToTensor(),
+            normalize,
+        ])
+
+
+def get_real_image(im_height, im_width):
+    img_url = 'https://github.com/dmlc/mxnet.js/blob/master/data/cat.png?raw=true'
+    img_path = download_testdata(img_url, 'cat.png', module='data')
+    return Image.open(img_path).resize((im_height, im_width))
+
+
+def get_imagenet_input():
+    im = get_real_image(224, 224)
+    preprocess = get_transform()
+    pt_tensor = preprocess(im)
+    return np.expand_dims(pt_tensor.numpy(), 0)
+
+
+def get_synset():
+    synset_url = ''.join(['https://gist.githubusercontent.com/zhreshold/',
+                          '4d0b62f3d01426887599d4f7ede23ee5/raw/',
+                          '596b27d23537e5a1b5751d2b0481ef172f58b539/',
+                          'imagenet1000_clsid_to_human.txt'])
+    synset_name = 'imagenet1000_clsid_to_human.txt'
+    synset_path = download_testdata(synset_url, synset_name, module='data')
+    with open(synset_path) as f:
+        return eval(f.read())
+
+
+def run_tvm_model(mod, params, input_name, inp, target="llvm"):
+    with relay.build_config(opt_level=3):
+        json, lib, params = relay.build(mod, target=target, params=params)
+
+    runtime = tvm.contrib.graph_runtime.create(json, lib, tvm.context(target, 0))
+    runtime.set_input(**params)
+
+    runtime.set_input(input_name, inp)
+    runtime.run()
+    return runtime.get_output(0).asnumpy(), runtime
+
+
+#################################################################################
+# A mapping from label to class name, to verify that the outputs from models below
+# are reasonable
+synset = get_synset()
+
+#################################################################################
+# Everyone's favorite cat image for demonstration
+inp = get_imagenet_input()
+
+################################################################################
+# Deploy a quantized PyTorch Model
+# --------------------------------
+# First, we demonstrate how to load deep learning models quantized by PyTorch,
+# using our PyTorch frontend.
+#
+# Please refer to the PyTorch static quantization tutorial below to learn about
+# their quantization workflow.
+# https://pytorch.org/tutorials/advanced/static_quantization_tutorial.html
+#
+# We use this function to quantize PyTorch models.
+# In short, this function takes a floating point model and converts it to uint8.
+# The model is per-channel quantized.
+
+def quantize_model(model, inp):
+    model.fuse_model()
+    model.qconfig = torch.quantization.get_default_qconfig('fbgemm')
+    torch.quantization.prepare(model, inplace=True)
+    # Dummy calibration
+    model(inp)
+    torch.quantization.convert(model, inplace=True)
+
+
+##############################################################################
+# Load quantization-ready, pretrained Mobilenet v2 model from torchvision
+# -----------------------------------------------------------------------
+# We choose mobilenet v2 because this model was trained with quantization aware
+# training. Other models require a full post training calibration.
+qmodel = qmobilenet.mobilenet_v2(pretrained=True).eval()
+
+##############################################################################
+# Quantize, trace and run the PyTorch Mobilenet v2 model
+# ------------------------------------------------------
+# The details are out of scope for this tutorial. Please refer to the tutorials
+# on the PyTorch website to learn about quantization and jit.
+pt_inp = torch.from_numpy(inp)
+quantize_model(qmodel, pt_inp)
+script_module = torch.jit.trace(qmodel, pt_inp).eval()
+
+with torch.no_grad():
+    pt_result = script_module(pt_inp).numpy()
+
+##############################################################################
+# Convert quantized Mobilenet v2 to Relay-QNN using the PyTorch frontend
+# ----------------------------------------------------------------------
+# The PyTorch frontend has support for converting a quantized PyTorch model to
+# an equivalent Relay module enriched with quantization-aware operators.
+# We call this representation Relay QNN dialect.
+#
+# You can print the output from the frontend to see how quantized models are
+# represented.
+#
+# You would see operators specific to quantization such as
+# qnn.quantize, qnn.dequantize, qnn.requantize, and qnn.conv2d etc.
+input_name = "input"  # the input name can be be arbitrary for PyTorch frontend.
+input_shapes = [(input_name, (1, 3, 224, 224))]
+mod, params = relay.frontend.from_pytorch(script_module, input_shapes)
+# print(mod) # comment in to see the QNN IR dump
+
+##############################################################################
+# Compile and run the Relay module
+# --------------------------------
+# Once we obtained the quantized Relay module, the rest of the workflow
+# is the same as running floating point models. Please refer to other
+# tutorials for more details.
+#
+# Under the hood, quantization specific operators are lowered to a sequence of
+# standard Relay operators before compilation.
+tvm_result, rt_mod = run_tvm_model(mod, params, input_name, inp, target="llvm")
+
+##########################################################################
+# Compare the output labels
+# -------------------------
+# We should see identical labels printed.
+pt_top3_labels = np.argsort(pt_result[0])[::-1][:3]
+tvm_top3_labels = np.argsort(tvm_result[0])[::-1][:3]
+
+print("PyTorch top3 labels:", [synset[label] for label in pt_top3_labels])
+print("TVM top3 labels:", [synset[label] for label in tvm_top3_labels])
+
+###########################################################################################
+# However, due to the difference in numerics, in general the raw floating point
+# outputs are not expected to be identical. Here, we print how many floating point
+# output values are identical out of 1000 outputs from mobilenet v2.
+print("%d in 1000 raw floating outputs identical." % np.sum(tvm_result[0] == pt_result[0]))
+
+##########################################################################
+# Measure performance
+# -------------------------
+# Here we give an example of how to measure performance of TVM compiled models.
+n_repeat = 100  # should be bigger to make the measurement more accurate
+ctx = tvm.cpu(0)
+ftimer = rt_mod.module.time_evaluator("run", ctx, number=1,
+                                      repeat=n_repeat)
+prof_res = np.array(ftimer().results) * 1e3
+print("Elapsed average ms:", np.mean(prof_res))
+
+######################################################################
+# .. note::
+#
+#   We recommend this method for the following reasons:
+#
+#    * Measurements are done in C++, so there is no Python overhead
+#    * It includes several warm up runs
+#    * The same method can be used to profile on remote devices (android etc.).
+
+
+######################################################################
+# .. note::
+#
+#   Unless the hardware has special support for fast 8 bit instructions, quantized models are
+#   not expected to be any faster than FP32 models. Without fast 8 bit instructions, TVM does
+#   quantized convolution in 16 bit, even if the model itself is 8 bit.
+#
+#   For x86, the best performance can be achieved on CPUs with AVX512 instructions set.
+#   In this case, TVM utilizes the fastest available 8 bit instructions for the given target.
+#   This includes support for the VNNI 8 bit dot product instruction (CascadeLake or newer).
+#
+#   Moreover, the following general tips for CPU performance equally applies:
+#
+#    * Set the environment variable TVM_NUM_THREADS to the number of physical cores
+#    * Choose the best target for your hardware, such as "llvm -mcpu=skylake-avx512" or
+#      "llvm -mcpu=cascadelake" (more CPUs with AVX512 would come in the future)
+
+
+###############################################################################
+# Deploy a quantized MXNet Model
+# ------------------------------
+# TODO
+
+###############################################################################
+# Deploy a quantized TFLite Model
+# -------------------------------
+# TODO
diff --git a/docs/_downloads/f83f0c3da8a2ab10657c61e034b7218d/from_pytorch.py b/docs/_downloads/f83f0c3da8a2ab10657c61e034b7218d/from_pytorch.py
index 45e3cb8..8354b0e 100644
--- a/docs/_downloads/f83f0c3da8a2ab10657c61e034b7218d/from_pytorch.py
+++ b/docs/_downloads/f83f0c3da8a2ab10657c61e034b7218d/from_pytorch.py
@@ -88,8 +88,8 @@ img = np.expand_dims(img, 0)
 ######################################################################
 # Import the graph to Relay
 # -------------------------
-# Convert PyTorch graph to Relay graph.
-input_name = 'input0'  # only one input, set it to this name
+# Convert PyTorch graph to Relay graph. The input name can be arbitrary.
+input_name = 'input0'
 shape_list = [(input_name, img.shape)]
 mod, params = relay.frontend.from_pytorch(scripted_model,
                                           shape_list)
diff --git a/docs/_images/sphx_glr_deploy_prequantized_thumb.png b/docs/_images/sphx_glr_deploy_prequantized_thumb.png
new file mode 100644
index 0000000..233f8e6
Binary files /dev/null and b/docs/_images/sphx_glr_deploy_prequantized_thumb.png differ
diff --git a/docs/_sources/api/python/index.rst.txt b/docs/_sources/api/python/index.rst.txt
index 09da9f1..c279dc2 100644
--- a/docs/_sources/api/python/index.rst.txt
+++ b/docs/_sources/api/python/index.rst.txt
@@ -29,10 +29,18 @@ Python API
    tir
    te
    driver
+   relay/index
+   relay/frontend
+   relay/nn
+   relay/vision
+   relay/image
+   relay/transform
+   relay/analysis
+   relay/backend
+   relay/testing
    autotvm
    rpc
    contrib
    graph_runtime
-   relay/index
    vta/index
    topi
diff --git a/docs/_sources/api/python/relay/frontend.rst.txt b/docs/_sources/api/python/relay/frontend.rst.txt
index 4b4bcf0..a62e36e 100644
--- a/docs/_sources/api/python/relay/frontend.rst.txt
+++ b/docs/_sources/api/python/relay/frontend.rst.txt
@@ -20,19 +20,6 @@ tvm.relay.frontend
 ------------------
 
 .. automodule:: tvm.relay.frontend
-
-.. autofunction:: tvm.relay.frontend.from_mxnet
-
-.. autofunction:: tvm.relay.frontend.from_keras
-
-.. autofunction:: tvm.relay.frontend.from_onnx
-
-.. autofunction:: tvm.relay.frontend.from_tflite
-
-.. autofunction:: tvm.relay.frontend.from_coreml
-
-.. autofunction:: tvm.relay.frontend.from_caffe2
-
-.. autofunction:: tvm.relay.frontend.from_tensorflow
-
-.. autofunction:: tvm.relay.frontend.from_pytorch
+    :members:
+    :imported-members:
+    :autosummary:
diff --git a/docs/_sources/api/python/relay/image.rst.txt b/docs/_sources/api/python/relay/image.rst.txt
index e29cf30..efd142f 100644
--- a/docs/_sources/api/python/relay/image.rst.txt
+++ b/docs/_sources/api/python/relay/image.rst.txt
@@ -19,7 +19,7 @@
 tvm.relay.image
 ---------------
 
-.. automodule:: tvm.relay.op.image
+.. automodule:: tvm.relay.image
    :members:
    :imported-members:
-   :exclude-members:
+   :autosummary:
diff --git a/docs/_sources/api/python/relay/index.rst.txt b/docs/_sources/api/python/relay/index.rst.txt
index 49bb4ab..084b745 100644
--- a/docs/_sources/api/python/relay/index.rst.txt
+++ b/docs/_sources/api/python/relay/index.rst.txt
@@ -16,32 +16,13 @@
     under the License.
 
 tvm.relay
-=========
-
-This document contains the Python API for the Relay frontend, optimizer, and
-compiler toolchain.
-
-Relay is the second-generation, high-level intermediate representation (IR) for the TVM
-compiler stack.
-
-.. toctree::
-   :maxdepth: 2
-
-   analysis
-   backend
-   frontend
-   image
-   transform
-   nn
-   op
-   vision
-   testing
+---------
 
 .. automodule:: tvm.relay
     :members:
     :imported-members:
-    :exclude-members: RelayExpr, Pass, PassInfo, function_pass, PassContext,
-      ModulePass, FunctionPass, Sequential, module_pass, Type, TypeKind,
+    :exclude-members: RelayExpr,
+      Type, TypeKind,
       TypeVar, GlobalTypeVar, TypeConstraint, FuncType, TupleType, IncompleteType,
       TypeCall, TypeRelation, TensorType, RelayRefType, GlobalVar, SourceName,
       Span, Var, Op, Constructor
diff --git a/docs/_sources/api/python/relay/nn.rst.txt b/docs/_sources/api/python/relay/nn.rst.txt
index c67c932..b54b752 100644
--- a/docs/_sources/api/python/relay/nn.rst.txt
+++ b/docs/_sources/api/python/relay/nn.rst.txt
@@ -17,7 +17,7 @@
 
 tvm.relay.nn
 ------------
-.. automodule:: tvm.relay.op.nn.nn
+.. automodule:: tvm.relay.nn
     :members:
     :imported-members:
-    :exclude-members:
+    :autosummary:
diff --git a/docs/_sources/api/python/relay/op.rst.txt b/docs/_sources/api/python/relay/op.rst.txt
deleted file mode 100644
index 8843b28..0000000
--- a/docs/_sources/api/python/relay/op.rst.txt
+++ /dev/null
@@ -1,24 +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.
-
-tvm.relay.op
-------------
-.. automodule:: tvm.relay.op
-   :members:
-   :imported-members:
-   :exclude-members: Tuple, TupleWrapper
-   :autosummary:
diff --git a/docs/_sources/api/python/relay/testing.rst.txt b/docs/_sources/api/python/relay/testing.rst.txt
index 5af5ba7..1d0bfe0 100644
--- a/docs/_sources/api/python/relay/testing.rst.txt
+++ b/docs/_sources/api/python/relay/testing.rst.txt
@@ -18,4 +18,34 @@
 tvm.relay.testing
 -----------------
 
-.. autoclass:: tvm.relay.testing.resnet
+.. automodule:: tvm.relay.testing
+    :members:
+    :imported-members:
+    :autosummary:
+
+.. automodule:: tvm.relay.testing.mlp
+    :members:
+
+.. automodule:: tvm.relay.testing.resnet
+    :members:
+
+.. automodule:: tvm.relay.testing.dcgan
+    :members:
+
+.. automodule:: tvm.relay.testing.mobilenet
+    :members:
+
+.. automodule:: tvm.relay.testing.lstm
+    :members:
+
+.. automodule:: tvm.relay.testing.inception_v3
+    :members:
+
+.. automodule:: tvm.relay.testing.squeezenet
+    :members:
+
+.. automodule:: tvm.relay.testing.vgg
+    :members:
+
+.. automodule:: tvm.relay.testing.densenet
+    :members:
diff --git a/docs/_sources/api/python/relay/transform.rst.txt b/docs/_sources/api/python/relay/transform.rst.txt
index b5040a0..c66904d 100644
--- a/docs/_sources/api/python/relay/transform.rst.txt
+++ b/docs/_sources/api/python/relay/transform.rst.txt
@@ -21,5 +21,4 @@ tvm.relay.transform
 .. automodule:: tvm.relay.transform
     :members:
     :imported-members:
-    :exclude-members: Object
     :autosummary:
diff --git a/docs/_sources/api/python/relay/vision.rst.txt b/docs/_sources/api/python/relay/vision.rst.txt
index 1b5ca74..f6bedee 100644
--- a/docs/_sources/api/python/relay/vision.rst.txt
+++ b/docs/_sources/api/python/relay/vision.rst.txt
@@ -19,7 +19,7 @@
 tvm.relay.vision
 ----------------
 
-.. automodule:: tvm.relay.op.vision
+.. automodule:: tvm.relay.vision
     :members:
     :imported-members:
     :autosummary:
diff --git a/docs/_sources/dev/relay_pass_infra.rst.txt b/docs/_sources/dev/relay_pass_infra.rst.txt
index 3b443fa..b40b06e 100644
--- a/docs/_sources/dev/relay_pass_infra.rst.txt
+++ b/docs/_sources/dev/relay_pass_infra.rst.txt
@@ -612,7 +612,7 @@ sequential pass example could be like the following to enable IR dumping for
     seq = tvm.transform.Sequential([
         relay.transform.InferType(),
         relay.transform.FoldConstant(),
-        relay.transform.PrintIR(),
+        transform.PrintIR(),
         relay.transform.EliminateCommonSubexpr(),
         relay.transform.AlterOpLayout()
     ])
diff --git a/docs/_sources/tutorials/autotvm/sg_execution_times.rst.txt b/docs/_sources/tutorials/autotvm/sg_execution_times.rst.txt
index d844268..400f907 100644
--- a/docs/_sources/tutorials/autotvm/sg_execution_times.rst.txt
+++ b/docs/_sources/tutorials/autotvm/sg_execution_times.rst.txt
@@ -5,11 +5,11 @@
 
 Computation times
 =================
-**00:47.538** total execution time for **tutorials_autotvm** files:
+**00:52.428** total execution time for **tutorials_autotvm** files:
 
-- **00:26.480**: :ref:`sphx_glr_tutorials_autotvm_tune_simple_template.py` (``tune_simple_template.py``)
-- **00:20.478**: :ref:`sphx_glr_tutorials_autotvm_tune_conv2d_cuda.py` (``tune_conv2d_cuda.py``)
-- **00:00.162**: :ref:`sphx_glr_tutorials_autotvm_tune_relay_x86.py` (``tune_relay_x86.py``)
-- **00:00.140**: :ref:`sphx_glr_tutorials_autotvm_tune_relay_cuda.py` (``tune_relay_cuda.py``)
+- **00:27.421**: :ref:`sphx_glr_tutorials_autotvm_tune_simple_template.py` (``tune_simple_template.py``)
+- **00:24.417**: :ref:`sphx_glr_tutorials_autotvm_tune_conv2d_cuda.py` (``tune_conv2d_cuda.py``)
+- **00:00.174**: :ref:`sphx_glr_tutorials_autotvm_tune_relay_x86.py` (``tune_relay_x86.py``)
+- **00:00.139**: :ref:`sphx_glr_tutorials_autotvm_tune_relay_cuda.py` (``tune_relay_cuda.py``)
 - **00:00.139**: :ref:`sphx_glr_tutorials_autotvm_tune_relay_arm.py` (``tune_relay_arm.py``)
 - **00:00.139**: :ref:`sphx_glr_tutorials_autotvm_tune_relay_mobile_gpu.py` (``tune_relay_mobile_gpu.py``)
diff --git a/docs/_sources/tutorials/autotvm/tune_conv2d_cuda.rst.txt b/docs/_sources/tutorials/autotvm/tune_conv2d_cuda.rst.txt
index d50b90c..f781b24 100644
--- a/docs/_sources/tutorials/autotvm/tune_conv2d_cuda.rst.txt
+++ b/docs/_sources/tutorials/autotvm/tune_conv2d_cuda.rst.txt
@@ -234,26 +234,26 @@ for this template
        7 unroll_explicit: OtherOption([0, 1]) len=2
     )
     Get devices for measurement successfully!
-    No: 1   GFLOPS: 0.00/0.00       result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f43bf236f01]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0258b) [0x7f43bf23358b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
-    No: 2   GFLOPS: 0.00/0.00       result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f43bf236f01]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0258b) [0x7f43bf23358b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
-    No: 3   GFLOPS: 0.00/0.00       result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f43bf236f01]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0258b) [0x7f43bf23358b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
-    No: 4   GFLOPS: 0.00/0.00       result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f43bf236f01]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0258b) [0x7f43bf23358b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
-    No: 5   GFLOPS: 0.00/0.00       result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f43bf236f01]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0258b) [0x7f43bf23358b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
-    No: 6   GFLOPS: 0.00/0.00       result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f43bf236f01]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0258b) [0x7f43bf23358b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
-    No: 7   GFLOPS: 0.00/0.00       result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f43bf236f01]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0258b) [0x7f43bf23358b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
-    No: 8   GFLOPS: 0.00/0.00       result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f43bf236f01]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0258b) [0x7f43bf23358b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
-    No: 9   GFLOPS: 0.00/0.00       result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f43bf236f01]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0258b) [0x7f43bf23358b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
-    No: 10  GFLOPS: 0.00/0.00       result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f43bf236f01]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0258b) [0x7f43bf23358b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
-    No: 11  GFLOPS: 0.00/0.00       result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f43bf236f01]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0258b) [0x7f43bf23358b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
-    No: 12  GFLOPS: 57.86/57.86     result: MeasureResult(costs=(0.00400104356,), error_no=0, all_cost=1.4397563934326172, timestamp=1586914175.9626982)    [('tile_f', [-1, 1, 1, 1]), ('tile_y', [-1, 1, 1, 7]), ('tile_x', [-1, 1, 1, 1]), ('tile_rc', [-1, 16, 1]), ('tile_ry', [-1, 1, 3]), ('tile_rx', [-1, 1, 3]), ('auto_unroll_max_step', 512), ('unroll_explicit', 1)],None,8533140
-    No: 13  GFLOPS: 0.00/57.86      result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f43bf236f01]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0258b) [0x7f43bf23358b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
-    No: 14  GFLOPS: 0.00/57.86      result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f43bf236f01]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0258b) [0x7f43bf23358b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
-    No: 15  GFLOPS: 0.00/57.86      result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f43bf236f01]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0258b) [0x7f43bf23358b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
-    No: 16  GFLOPS: 0.00/57.86      result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f43bf236f01]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0258b) [0x7f43bf23358b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
-    No: 17  GFLOPS: 0.00/57.86      result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f43bf236f01]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0258b) [0x7f43bf23358b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
-    No: 18  GFLOPS: 0.00/57.86      result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f43bf236f01]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0258b) [0x7f43bf23358b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
-    No: 19  GFLOPS: 780.58/780.58   result: MeasureResult(costs=(0.00029657477777777775,), error_no=0, all_cost=1.8615612983703613, timestamp=1586914179.6813614)   [('tile_f', [-1, 2, 1, 1]), ('tile_y', [-1, 1, 7, 1]), ('tile_x', [-1, 1, 7, 1]), ('tile_rc', [-1, 32, 1]), ('tile_ry', [-1, 1, 3]), ('tile_rx', [-1, 3, 1]), ('auto_unroll_max_step', 1500), ('unroll_explicit', 1)],None,9699801
-    No: 20  GFLOPS: 6.97/780.58     result: MeasureResult(costs=(0.03322433125,), error_no=0, all_cost=1.5661084651947021, timestamp=1586914180.5354848)    [('tile_f', [-1, 2, 1, 16]), ('tile_y', [-1, 1, 1, 1]), ('tile_x', [-1, 7, 1, 1]), ('tile_rc', [-1, 2, 32]), ('tile_ry', [-1, 1, 3]), ('tile_rx', [-1, 1, 1]), ('auto_unroll_max_step', 512), ('unroll_explicit', 1)],None,7502165
+    No: 1   GFLOPS: 0.00/0.00       result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f90b15790e1]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0976b) [0x7f90b157576b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
+    No: 2   GFLOPS: 0.00/0.00       result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f90b15790e1]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0976b) [0x7f90b157576b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
+    No: 3   GFLOPS: 0.00/0.00       result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f90b15790e1]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0976b) [0x7f90b157576b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
+    No: 4   GFLOPS: 0.00/0.00       result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f90b15790e1]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0976b) [0x7f90b157576b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
+    No: 5   GFLOPS: 0.00/0.00       result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f90b15790e1]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0976b) [0x7f90b157576b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
+    No: 6   GFLOPS: 0.00/0.00       result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f90b15790e1]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0976b) [0x7f90b157576b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
+    No: 7   GFLOPS: 0.00/0.00       result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f90b15790e1]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0976b) [0x7f90b157576b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
+    No: 8   GFLOPS: 0.00/0.00       result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f90b15790e1]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0976b) [0x7f90b157576b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
+    No: 9   GFLOPS: 0.00/0.00       result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f90b15790e1]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0976b) [0x7f90b157576b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
+    No: 10  GFLOPS: 0.00/0.00       result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f90b15790e1]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0976b) [0x7f90b157576b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
+    No: 11  GFLOPS: 0.00/0.00       result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f90b15790e1]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0976b) [0x7f90b157576b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
+    No: 12  GFLOPS: 58.18/58.18     result: MeasureResult(costs=(0.0039788533076923075,), error_no=0, all_cost=2.067173719406128, timestamp=1586993556.6456518)     [('tile_f', [-1, 1, 1, 1]), ('tile_y', [-1, 1, 1, 7]), ('tile_x', [-1, 1, 1, 1]), ('tile_rc', [-1, 16, 1]), ('tile_ry', [-1, 1, 3]), ('tile_rx', [-1, 1, 3]), ('auto_unroll_max_step', 512), ('unroll_explicit', 1)],None,8533140
+    No: 13  GFLOPS: 0.00/58.18      result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f90b15790e1]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0976b) [0x7f90b157576b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
+    No: 14  GFLOPS: 0.00/58.18      result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f90b15790e1]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0976b) [0x7f90b157576b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
+    No: 15  GFLOPS: 0.00/58.18      result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f90b15790e1]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0976b) [0x7f90b157576b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
+    No: 16  GFLOPS: 0.00/58.18      result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f90b15790e1]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0976b) [0x7f90b157576b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
+    No: 17  GFLOPS: 0.00/58.18      result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f90b15790e1]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0976b) [0x7f90b157576b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
+    No: 18  GFLOPS: 0.00/58.18      result: MeasureResult(costs=(InstantiationError('Traceback (most recent call last):\n  [bt] (1) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f90b15790e1]\n  [bt] (0) /workspace/build/libtvm.so(+0xd0976b) [0x7f90b157576b]\n  File "tvm/_ffi/_cython/./packed_func.pxi", line 55, in tvm._ffi._cy3.core.tvm_callback\n  File "/workspace/docs/../python/tvm/autotvm/measure/measure_methods.py", line 621, in verify_pass\n    raise InstantiationError("Skipped b [...]
+    No: 19  GFLOPS: 747.82/747.82   result: MeasureResult(costs=(0.00030956918693693695,), error_no=0, all_cost=2.488834857940674, timestamp=1586993561.323387)     [('tile_f', [-1, 2, 1, 1]), ('tile_y', [-1, 1, 7, 1]), ('tile_x', [-1, 1, 7, 1]), ('tile_rc', [-1, 32, 1]), ('tile_ry', [-1, 1, 3]), ('tile_rx', [-1, 3, 1]), ('auto_unroll_max_step', 1500), ('unroll_explicit', 1)],None,9699801
+    No: 20  GFLOPS: 6.97/747.82     result: MeasureResult(costs=(0.033197459,), error_no=0, all_cost=2.1923890113830566, timestamp=1586993562.7962627)      [('tile_f', [-1, 2, 1, 16]), ('tile_y', [-1, 1, 1, 1]), ('tile_x', [-1, 7, 1, 1]), ('tile_rc', [-1, 2, 32]), ('tile_ry', [-1, 1, 3]), ('tile_rx', [-1, 1, 1]), ('auto_unroll_max_step', 512), ('unroll_explicit', 1)],None,7502165
 
 
 
@@ -307,7 +307,7 @@ and measure running time.
 
     Best config:
     [('tile_f', [-1, 2, 1, 1]), ('tile_y', [-1, 1, 7, 1]), ('tile_x', [-1, 1, 7, 1]), ('tile_rc', [-1, 32, 1]), ('tile_ry', [-1, 1, 3]), ('tile_rx', [-1, 3, 1]), ('auto_unroll_max_step', 1500), ('unroll_explicit', 1)],None,9699801
-    Time cost of this operator: 0.000393
+    Time cost of this operator: 0.000355
 
 
 
diff --git a/docs/_sources/tutorials/autotvm/tune_simple_template.rst.txt b/docs/_sources/tutorials/autotvm/tune_simple_template.rst.txt
index 259bad6..86f4def 100644
--- a/docs/_sources/tutorials/autotvm/tune_simple_template.rst.txt
+++ b/docs/_sources/tutorials/autotvm/tune_simple_template.rst.txt
@@ -361,16 +361,16 @@ used to get the best config later.
  .. code-block:: none
 
     Get devices for measurement successfully!
-    No: 1   GFLOPS: 7.07/7.07       result: MeasureResult(costs=(0.0379557924,), error_no=0, all_cost=0.9605300426483154, timestamp=1586914145.5969672)     [('tile_y', [-1, 8]), ('tile_x', [-1, 8])],None,33
-    No: 2   GFLOPS: 2.29/7.07       result: MeasureResult(costs=(0.117000299,), error_no=0, all_cost=2.1433587074279785, timestamp=1586914147.8018377)      [('tile_y', [-1, 8]), ('tile_x', [-1, 2])],None,13
-    No: 3   GFLOPS: 7.27/7.27       result: MeasureResult(costs=(0.0369386566,), error_no=0, all_cost=1.1326470375061035, timestamp=1586914148.7241485)     [('tile_y', [-1, 16]), ('tile_x', [-1, 128])],None,74
-    No: 4   GFLOPS: 4.52/7.27       result: MeasureResult(costs=(0.0593773454,), error_no=0, all_cost=1.3157463073730469, timestamp=1586914150.0114)        [('tile_y', [-1, 16]), ('tile_x', [-1, 32])],None,54
-    No: 5   GFLOPS: 6.19/7.27       result: MeasureResult(costs=(0.043364872799999996,), error_no=0, all_cost=0.976433515548706, timestamp=1586914151.0318248)      [('tile_y', [-1, 128]), ('tile_x', [-1, 8])],None,37
-    No: 6   GFLOPS: 6.44/7.27       result: MeasureResult(costs=(0.041681231,), error_no=0, all_cost=1.0092697143554688, timestamp=1586914152.0299819)      [('tile_y', [-1, 64]), ('tile_x', [-1, 8])],None,36
-    No: 7   GFLOPS: 26.51/26.51     result: MeasureResult(costs=(0.0101250118,), error_no=0, all_cost=0.5193133354187012, timestamp=1586914152.5232635)     [('tile_y', [-1, 1]), ('tile_x', [-1, 128])],None,70
-    No: 8   GFLOPS: 20.75/26.51     result: MeasureResult(costs=(0.012933676199999999,), error_no=0, all_cost=0.5106756687164307, timestamp=1586914153.071874)      [('tile_y', [-1, 4]), ('tile_x', [-1, 512])],None,92
-    No: 9   GFLOPS: 0.84/26.51      result: MeasureResult(costs=(0.319964087,), error_no=0, all_cost=5.368131399154663, timestamp=1586914158.5233579)       [('tile_y', [-1, 512]), ('tile_x', [-1, 2])],None,19
-    No: 10  GFLOPS: 0.00/26.51      result: MeasureResult(costs=(RuntimeError('Traceback (most recent call last):\n  [bt] (3) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f43bf236f01]\n  [bt] (2) /workspace/build/libtvm.so(std::_Function_handler<void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*), tvm::runtime::RPCModuleNode::WrapRemote(void*)::{lambda(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)#1}>::_M_invoke(std::_Any_data const&, tvm::runtime::TVMArgs&&, tvm::runtime:: [...]
+    No: 1   GFLOPS: 6.97/6.97       result: MeasureResult(costs=(0.0385383866,), error_no=0, all_cost=0.8664705753326416, timestamp=1586993522.78784)       [('tile_y', [-1, 8]), ('tile_x', [-1, 8])],None,33
+    No: 2   GFLOPS: 2.32/6.97       result: MeasureResult(costs=(0.11549231280000001,), error_no=0, all_cost=2.101508140563965, timestamp=1586993525.0130222)       [('tile_y', [-1, 8]), ('tile_x', [-1, 2])],None,13
+    No: 3   GFLOPS: 7.35/7.35       result: MeasureResult(costs=(0.0365371688,), error_no=0, all_cost=1.1348650455474854, timestamp=1586993525.9961812)     [('tile_y', [-1, 16]), ('tile_x', [-1, 128])],None,74
+    No: 4   GFLOPS: 4.52/7.35       result: MeasureResult(costs=(0.05943379880000001,), error_no=0, all_cost=1.2699289321899414, timestamp=1586993527.329105)       [('tile_y', [-1, 16]), ('tile_x', [-1, 32])],None,54
+    No: 5   GFLOPS: 6.34/7.35       result: MeasureResult(costs=(0.0423189818,), error_no=0, all_cost=0.9372684955596924, timestamp=1586993528.3820336)     [('tile_y', [-1, 128]), ('tile_x', [-1, 8])],None,37
+    No: 6   GFLOPS: 6.80/7.35       result: MeasureResult(costs=(0.0394898064,), error_no=0, all_cost=0.9311320781707764, timestamp=1586993529.3924904)     [('tile_y', [-1, 64]), ('tile_x', [-1, 8])],None,36
+    No: 7   GFLOPS: 27.03/27.03     result: MeasureResult(costs=(0.0099325676,), error_no=0, all_cost=0.5125160217285156, timestamp=1586993529.9309843)     [('tile_y', [-1, 1]), ('tile_x', [-1, 128])],None,70
+    No: 8   GFLOPS: 20.77/27.03     result: MeasureResult(costs=(0.012926028400000001,), error_no=0, all_cost=0.4918792247772217, timestamp=1586993530.5227294)     [('tile_y', [-1, 4]), ('tile_x', [-1, 512])],None,92
+    No: 9   GFLOPS: 0.78/27.03      result: MeasureResult(costs=(0.344844209,), error_no=0, all_cost=5.782715082168579, timestamp=1586993536.4192333)       [('tile_y', [-1, 512]), ('tile_x', [-1, 2])],None,19
+    No: 10  GFLOPS: 0.00/27.03      result: MeasureResult(costs=(RuntimeError('Traceback (most recent call last):\n  [bt] (3) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f90b15790e1]\n  [bt] (2) /workspace/build/libtvm.so(std::_Function_handler<void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*), tvm::runtime::RPCModuleNode::WrapRemote(void*)::{lambda(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)#1}>::_M_invoke(std::_Any_data const&, tvm::runtime::TVMArgs&&, tvm::runtime:: [...]
 
 
 
diff --git a/docs/_sources/tutorials/cross_compilation_and_rpc.rst.txt b/docs/_sources/tutorials/cross_compilation_and_rpc.rst.txt
index e3f17e7..662468e 100644
--- a/docs/_sources/tutorials/cross_compilation_and_rpc.rst.txt
+++ b/docs/_sources/tutorials/cross_compilation_and_rpc.rst.txt
@@ -235,7 +235,7 @@ device and returns the measured cost. Network overhead is excluded.
 
  .. code-block:: none
 
-    1.683e-07 secs/op
+    1.653e-07 secs/op
 
 
 
diff --git a/docs/_sources/tutorials/dev/low_level_custom_pass.rst.txt b/docs/_sources/tutorials/dev/low_level_custom_pass.rst.txt
index 63665a7..ede8747 100644
--- a/docs/_sources/tutorials/dev/low_level_custom_pass.rst.txt
+++ b/docs/_sources/tutorials/dev/low_level_custom_pass.rst.txt
@@ -74,10 +74,8 @@ our customized lowering pass to manipulate the IR directly instead of using sche
 
  .. code-block:: none
 
-    produce c {
-      for (i, 0, 128) {
-        c[i] = (a[i] + b[i])
-      }
+    for (i, 0, 128) {
+      c[i] = (a[i] + b[i])
     }
 
 
@@ -195,11 +193,9 @@ this pass to TVM's lower pass. We can first call this function directly as a san
 
  .. code-block:: none
 
-    produce c {
-      for (i.outer, 0, 16) {
-        vectorized (i.inner, 0, 8) {
-          c[((i.outer*8) + i.inner)] = (a[((i.outer*8) + i.inner)] + b[((i.outer*8) + i.inner)])
-        }
+    for (i.outer, 0, 16) {
+      vectorized (i.inner, 0, 8) {
+        c[((i.outer*8) + i.inner)] = (a[((i.outer*8) + i.inner)] + b[((i.outer*8) + i.inner)])
       }
     }
 
@@ -239,10 +235,8 @@ Thus, a good place to put this transformation pass is just after Phase 1.
 
  .. code-block:: none
 
-    produce c {
-      for (i.outer, 0, 16) {
-        c[ramp((i.outer*8), 1, 8)] = (a[ramp((i.outer*8), 1, 8)] + b[ramp((i.outer*8), 1, 8)])
-      }
+    for (i.outer, 0, 16) {
+      c[ramp((i.outer*8), 1, 8)] = (a[ramp((i.outer*8), 1, 8)] + b[ramp((i.outer*8), 1, 8)])
     }
 
 
diff --git a/docs/_sources/tutorials/dev/sg_execution_times.rst.txt b/docs/_sources/tutorials/dev/sg_execution_times.rst.txt
index 8435590..aed009f 100644
--- a/docs/_sources/tutorials/dev/sg_execution_times.rst.txt
+++ b/docs/_sources/tutorials/dev/sg_execution_times.rst.txt
@@ -5,7 +5,7 @@
 
 Computation times
 =================
-**00:00.450** total execution time for **tutorials_dev** files:
+**00:00.472** total execution time for **tutorials_dev** files:
 
-- **00:00.311**: :ref:`sphx_glr_tutorials_dev_relay_pass_infra.py` (``relay_pass_infra.py``)
-- **00:00.139**: :ref:`sphx_glr_tutorials_dev_low_level_custom_pass.py` (``low_level_custom_pass.py``)
+- **00:00.332**: :ref:`sphx_glr_tutorials_dev_relay_pass_infra.py` (``relay_pass_infra.py``)
+- **00:00.140**: :ref:`sphx_glr_tutorials_dev_low_level_custom_pass.py` (``low_level_custom_pass.py``)
diff --git a/docs/_sources/tutorials/frontend/deploy_model_on_android.rst.txt b/docs/_sources/tutorials/frontend/deploy_model_on_android.rst.txt
index 2aa5c09..2b92b6e 100644
--- a/docs/_sources/tutorials/frontend/deploy_model_on_android.rst.txt
+++ b/docs/_sources/tutorials/frontend/deploy_model_on_android.rst.txt
@@ -415,7 +415,7 @@ Execute on TVM
 
     TVM prediction top-1: tiger cat
     Evaluate inference time cost...
-    Mean inference time (std dev): 2.73 ms (0.03 ms)
+    Mean inference time (std dev): 2.18 ms (0.29 ms)
 
 
 
diff --git a/docs/_sources/tutorials/frontend/deploy_prequantized.rst.txt b/docs/_sources/tutorials/frontend/deploy_prequantized.rst.txt
new file mode 100644
index 0000000..4229bca
--- /dev/null
+++ b/docs/_sources/tutorials/frontend/deploy_prequantized.rst.txt
@@ -0,0 +1,426 @@
+.. note::
+    :class: sphx-glr-download-link-note
+
+    Click :ref:`here <sphx_glr_download_tutorials_frontend_deploy_prequantized.py>` to download the full example code
+.. rst-class:: sphx-glr-example-title
+
+.. _sphx_glr_tutorials_frontend_deploy_prequantized.py:
+
+
+Deploy a Framework-prequantized Model with TVM
+==============================================
+**Author**: `Masahiro Masuda <https://github.com/masahi>`_
+
+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 <https://discuss.tvm.ai/t/quantization-story/3920>`_.
+
+Here, we demonstrate how to load and run models quantized by PyTorch, MXNet, and TFLite.
+Once loaded, we can run compiled, quantized models on any hardware TVM supports.
+
+First, necessary imports
+
+
+.. code-block:: default
+
+    from PIL import Image
+
+    import numpy as np
+
+    import torch
+    from torchvision.models.quantization import mobilenet as qmobilenet
+
+    import tvm
+    from tvm import relay
+    from tvm.contrib.download import download_testdata
+
+
+
+
+
+
+
+
+Helper functions to run the demo
+
+
+.. code-block:: default
+
+    def get_transform():
+        import torchvision.transforms as transforms
+        normalize = transforms.Normalize(mean=[0.485, 0.456, 0.406],
+                                         std=[0.229, 0.224, 0.225])
+        return transforms.Compose([
+                transforms.Resize(256),
+                transforms.CenterCrop(224),
+                transforms.ToTensor(),
+                normalize,
+            ])
+
+
+    def get_real_image(im_height, im_width):
+        img_url = 'https://github.com/dmlc/mxnet.js/blob/master/data/cat.png?raw=true'
+        img_path = download_testdata(img_url, 'cat.png', module='data')
+        return Image.open(img_path).resize((im_height, im_width))
+
+
+    def get_imagenet_input():
+        im = get_real_image(224, 224)
+        preprocess = get_transform()
+        pt_tensor = preprocess(im)
+        return np.expand_dims(pt_tensor.numpy(), 0)
+
+
+    def get_synset():
+        synset_url = ''.join(['https://gist.githubusercontent.com/zhreshold/',
+                              '4d0b62f3d01426887599d4f7ede23ee5/raw/',
+                              '596b27d23537e5a1b5751d2b0481ef172f58b539/',
+                              'imagenet1000_clsid_to_human.txt'])
+        synset_name = 'imagenet1000_clsid_to_human.txt'
+        synset_path = download_testdata(synset_url, synset_name, module='data')
+        with open(synset_path) as f:
+            return eval(f.read())
+
+
+    def run_tvm_model(mod, params, input_name, inp, target="llvm"):
+        with relay.build_config(opt_level=3):
+            json, lib, params = relay.build(mod, target=target, params=params)
+
+        runtime = tvm.contrib.graph_runtime.create(json, lib, tvm.context(target, 0))
+        runtime.set_input(**params)
+
+        runtime.set_input(input_name, inp)
+        runtime.run()
+        return runtime.get_output(0).asnumpy(), runtime
+
+
+
+
+
+
+
+
+A mapping from label to class name, to verify that the outputs from models below
+are reasonable
+
+
+.. code-block:: default
+
+    synset = get_synset()
+
+
+
+
+
+.. rst-class:: sphx-glr-script-out
+
+ Out:
+
+ .. code-block:: none
+
+    File /workspace/.tvm_test_data/data/imagenet1000_clsid_to_human.txt exists, skip.
+
+
+
+Everyone's favorite cat image for demonstration
+
+
+.. code-block:: default
+
+    inp = get_imagenet_input()
+
+
+
+
+
+.. rst-class:: sphx-glr-script-out
+
+ Out:
+
+ .. code-block:: none
+
+    File /workspace/.tvm_test_data/data/cat.png exists, skip.
+
+
+
+Deploy a quantized PyTorch Model
+--------------------------------
+First, we demonstrate how to load deep learning models quantized by PyTorch,
+using our PyTorch frontend.
+
+Please refer to the PyTorch static quantization tutorial below to learn about
+their quantization workflow.
+https://pytorch.org/tutorials/advanced/static_quantization_tutorial.html
+
+We use this function to quantize PyTorch models.
+In short, this function takes a floating point model and converts it to uint8.
+The model is per-channel quantized.
+
+
+.. code-block:: default
+
+
+    def quantize_model(model, inp):
+        model.fuse_model()
+        model.qconfig = torch.quantization.get_default_qconfig('fbgemm')
+        torch.quantization.prepare(model, inplace=True)
+        # Dummy calibration
+        model(inp)
+        torch.quantization.convert(model, inplace=True)
+
+
+
+
+
+
+
+
+Load quantization-ready, pretrained Mobilenet v2 model from torchvision
+-----------------------------------------------------------------------
+We choose mobilenet v2 because this model was trained with quantization aware
+training. Other models require a full post training calibration.
+
+
+.. code-block:: default
+
+    qmodel = qmobilenet.mobilenet_v2(pretrained=True).eval()
+
+
+
+
+
+.. rst-class:: sphx-glr-script-out
+
+ Out:
+
+ .. code-block:: none
+
+    Downloading: "https://download.pytorch.org/models/mobilenet_v2-b0353104.pth" to /workspace/.cache/torch/checkpoints/mobilenet_v2-b0353104.pth
+
      0%|          | 0.00/13.6M [00:00<?, ?B/s]
     29%|##8       | 3.92M/13.6M [00:00<00:00, 41.1MB/s]
     47%|####6     | 6.34M/13.6M [00:00<00:00, 34.3MB/s]
     62%|######1   | 8.40M/13.6M [00:00<00:00, 27.6MB/s]
     88%|########7 | 11.9M/13.6M [00:00<00:00, 29.8MB/s]
    100%|##########| 13.6M/13.6M [00:00<00:00, 29.9MB/s]
+
+
+
+Quantize, trace and run the PyTorch Mobilenet v2 model
+------------------------------------------------------
+The details are out of scope for this tutorial. Please refer to the tutorials
+on the PyTorch website to learn about quantization and jit.
+
+
+.. code-block:: default
+
+    pt_inp = torch.from_numpy(inp)
+    quantize_model(qmodel, pt_inp)
+    script_module = torch.jit.trace(qmodel, pt_inp).eval()
+
+    with torch.no_grad():
+        pt_result = script_module(pt_inp).numpy()
+
+
+
+
+
+.. rst-class:: sphx-glr-script-out
+
+ Out:
+
+ .. code-block:: none
+
+    /usr/local/lib/python3.6/dist-packages/torch/quantization/observer.py:803: UserWarning: must run observer before calling calculate_qparams.                                    Returning default scale and zero point 
+      Returning default scale and zero point "
+
+
+
+Convert quantized Mobilenet v2 to Relay-QNN using the PyTorch frontend
+----------------------------------------------------------------------
+The PyTorch frontend has support for converting a quantized PyTorch model to
+an equivalent Relay module enriched with quantization-aware operators.
+We call this representation Relay QNN dialect.
+
+You can print the output from the frontend to see how quantized models are
+represented.
+
+You would see operators specific to quantization such as
+qnn.quantize, qnn.dequantize, qnn.requantize, and qnn.conv2d etc.
+
+
+.. code-block:: default
+
+    input_name = "input"  # the input name can be be arbitrary for PyTorch frontend.
+    input_shapes = [(input_name, (1, 3, 224, 224))]
+    mod, params = relay.frontend.from_pytorch(script_module, input_shapes)
+    # print(mod) # comment in to see the QNN IR dump
+
+
+
+
+
+.. rst-class:: sphx-glr-script-out
+
+ Out:
+
+ .. code-block:: none
+
+    ANTLR runtime and generated code versions disagree: 4.8!=4.7.2
+    ANTLR runtime and generated code versions disagree: 4.8!=4.7.2
+
+
+
+Compile and run the Relay module
+--------------------------------
+Once we obtained the quantized Relay module, the rest of the workflow
+is the same as running floating point models. Please refer to other
+tutorials for more details.
+
+Under the hood, quantization specific operators are lowered to a sequence of
+standard Relay operators before compilation.
+
+
+.. code-block:: default
+
+    tvm_result, rt_mod = run_tvm_model(mod, params, input_name, inp, target="llvm")
+
+
+
+
+
+
+
+Compare the output labels
+-------------------------
+We should see identical labels printed.
+
+
+.. code-block:: default
+
+    pt_top3_labels = np.argsort(pt_result[0])[::-1][:3]
+    tvm_top3_labels = np.argsort(tvm_result[0])[::-1][:3]
+
+    print("PyTorch top3 labels:", [synset[label] for label in pt_top3_labels])
+    print("TVM top3 labels:", [synset[label] for label in tvm_top3_labels])
+
+
+
+
+
+.. rst-class:: sphx-glr-script-out
+
+ Out:
+
+ .. code-block:: none
+
+    PyTorch top3 labels: ['tiger cat', 'Egyptian cat', 'tabby, tabby cat']
+    TVM top3 labels: ['tiger cat', 'Egyptian cat', 'tabby, tabby cat']
+
+
+
+However, due to the difference in numerics, in general the raw floating point
+outputs are not expected to be identical. Here, we print how many floating point
+output values are identical out of 1000 outputs from mobilenet v2.
+
+
+.. code-block:: default
+
+    print("%d in 1000 raw floating outputs identical." % np.sum(tvm_result[0] == pt_result[0]))
+
+
+
+
+
+.. rst-class:: sphx-glr-script-out
+
+ Out:
+
+ .. code-block:: none
+
+    188 in 1000 raw floating outputs identical.
+
+
+
+Measure performance
+-------------------------
+Here we give an example of how to measure performance of TVM compiled models.
+
+
+.. code-block:: default
+
+    n_repeat = 100  # should be bigger to make the measurement more accurate
+    ctx = tvm.cpu(0)
+    ftimer = rt_mod.module.time_evaluator("run", ctx, number=1,
+                                          repeat=n_repeat)
+    prof_res = np.array(ftimer().results) * 1e3
+    print("Elapsed average ms:", np.mean(prof_res))
+
+
+
+
+
+.. rst-class:: sphx-glr-script-out
+
+ Out:
+
+ .. code-block:: none
+
+    Elapsed average ms: 6.2028009299999995
+
+
+
+.. note::
+
+  We recommend this method for the following reasons:
+
+   * Measurements are done in C++, so there is no Python overhead
+   * It includes several warm up runs
+   * The same method can be used to profile on remote devices (android etc.).
+
+.. note::
+
+  Unless the hardware has special support for fast 8 bit instructions, quantized models are
+  not expected to be any faster than FP32 models. Without fast 8 bit instructions, TVM does
+  quantized convolution in 16 bit, even if the model itself is 8 bit.
+
+  For x86, the best performance can be achieved on CPUs with AVX512 instructions set.
+  In this case, TVM utilizes the fastest available 8 bit instructions for the given target.
+  This includes support for the VNNI 8 bit dot product instruction (CascadeLake or newer).
+
+  Moreover, the following general tips for CPU performance equally applies:
+
+   * Set the environment variable TVM_NUM_THREADS to the number of physical cores
+   * Choose the best target for your hardware, such as "llvm -mcpu=skylake-avx512" or
+     "llvm -mcpu=cascadelake" (more CPUs with AVX512 would come in the future)
+
+Deploy a quantized MXNet Model
+------------------------------
+TODO
+
+Deploy a quantized TFLite Model
+-------------------------------
+TODO
+
+
+.. _sphx_glr_download_tutorials_frontend_deploy_prequantized.py:
+
+
+.. only :: html
+
+ .. container:: sphx-glr-footer
+    :class: sphx-glr-footer-example
+
+
+
+  .. container:: sphx-glr-download
+
+     :download:`Download Python source code: deploy_prequantized.py <deploy_prequantized.py>`
+
+
+
+  .. container:: sphx-glr-download
+
+     :download:`Download Jupyter notebook: deploy_prequantized.ipynb <deploy_prequantized.ipynb>`
+
+
+.. only:: html
+
+ .. rst-class:: sphx-glr-signature
+
+    `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_
diff --git a/docs/_sources/tutorials/frontend/deploy_ssd_gluoncv.rst.txt b/docs/_sources/tutorials/frontend/deploy_ssd_gluoncv.rst.txt
index 242a3ce..df25838 100644
--- a/docs/_sources/tutorials/frontend/deploy_ssd_gluoncv.rst.txt
+++ b/docs/_sources/tutorials/frontend/deploy_ssd_gluoncv.rst.txt
@@ -169,45 +169,6 @@ Create TVM runtime and do inference
 
  .. code-block:: none
 
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 3, 512, 512), 'float32'), ('TENSOR', (64, 3, 7, 7), 'float32'), (2, 2), (3, 3, 3, 3), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 64, 128, 128), 'float32'), ('TENSOR', (64, 64, 1, 1), 'float32'), (1, 1), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 64, 128, 128), 'float32'), ('TENSOR', (64, 64, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 64, 128, 128), 'float32'), ('TENSOR', (256, 64, 1, 1), 'float32'), (1, 1), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 256, 128, 128), 'float32'), ('TENSOR', (64, 256, 1, 1), 'float32'), (1, 1), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 256, 128, 128), 'float32'), ('TENSOR', (128, 256, 1, 1), 'float32'), (2, 2), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 128, 64, 64), 'float32'), ('TENSOR', (128, 128, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 128, 64, 64), 'float32'), ('TENSOR', (512, 128, 1, 1), 'float32'), (1, 1), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 256, 128, 128), 'float32'), ('TENSOR', (512, 256, 1, 1), 'float32'), (2, 2), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 64, 64), 'float32'), ('TENSOR', (128, 512, 1, 1), 'float32'), (1, 1), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 64, 64), 'float32'), ('TENSOR', (256, 512, 1, 1), 'float32'), (2, 2), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 256, 32, 32), 'float32'), ('TENSOR', (256, 256, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 256, 32, 32), 'float32'), ('TENSOR', (1024, 256, 1, 1), 'float32'), (1, 1), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 64, 64), 'float32'), ('TENSOR', (1024, 512, 1, 1), 'float32'), (2, 2), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 1024, 32, 32), 'float32'), ('TENSOR', (256, 1024, 1, 1), 'float32'), (1, 1), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 1024, 32, 32), 'float32'), ('TENSOR', (84, 1024, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 1024, 32, 32), 'float32'), ('TENSOR', (512, 1024, 1, 1), 'float32'), (2, 2), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 16, 16), 'float32'), ('TENSOR', (512, 512, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 16, 16), 'float32'), ('TENSOR', (2048, 512, 1, 1), 'float32'), (1, 1), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 1024, 32, 32), 'float32'), ('TENSOR', (2048, 1024, 1, 1), 'float32'), (2, 2), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 2048, 16, 16), 'float32'), ('TENSOR', (512, 2048, 1, 1), 'float32'), (1, 1), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 2048, 16, 16), 'float32'), ('TENSOR', (126, 2048, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 16, 16), 'float32'), ('TENSOR', (512, 512, 3, 3), 'float32'), (2, 2), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 8, 8), 'float32'), ('TENSOR', (126, 512, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 8, 8), 'float32'), ('TENSOR', (512, 512, 1, 1), 'float32'), (1, 1), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 8, 8), 'float32'), ('TENSOR', (512, 512, 3, 3), 'float32'), (2, 2), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 4, 4), 'float32'), ('TENSOR', (126, 512, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 4, 4), 'float32'), ('TENSOR', (256, 512, 1, 1), 'float32'), (1, 1), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 256, 4, 4), 'float32'), ('TENSOR', (256, 256, 3, 3), 'float32'), (2, 2), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 256, 2, 2), 'float32'), ('TENSOR', (84, 256, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 256, 2, 2), 'float32'), ('TENSOR', (256, 256, 1, 1), 'float32'), (1, 1), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 256, 2, 2), 'float32'), ('TENSOR', (256, 256, 3, 3), 'float32'), (2, 2), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 256, 1, 1), 'float32'), ('TENSOR', (84, 256, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 1024, 32, 32), 'float32'), ('TENSOR', (16, 1024, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 2048, 16, 16), 'float32'), ('TENSOR', (24, 2048, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 8, 8), 'float32'), ('TENSOR', (24, 512, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 4, 4), 'float32'), ('TENSOR', (24, 512, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 256, 2, 2), 'float32'), ('TENSOR', (16, 256, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
-    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 256, 1, 1), 'float32'), ('TENSOR', (16, 256, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
     Cannot find config for target=cuda, workload=('conv2d_nchw.cuda', ('TENSOR', (1, 3, 512, 512), 'float32'), ('TENSOR', (64, 3, 7, 7), 'float32'), (2, 2), (3, 3, 3, 3), (1, 1), 'float32'). A fallback configuration is used, which may bring great performance regression.
     Cannot find config for target=cuda, workload=('conv2d_nchw.cuda', ('TENSOR', (1, 64, 128, 128), 'float32'), ('TENSOR', (64, 64, 1, 1), 'float32'), (1, 1), (0, 0, 0, 0), (1, 1), 'float32'). A fallback configuration is used, which may bring great performance regression.
     Cannot find config for target=cuda, workload=('conv2d_nchw.cuda', ('TENSOR', (1, 64, 128, 128), 'float32'), ('TENSOR', (64, 64, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'float32'). A fallback configuration is used, which may bring great performance regression.
@@ -263,6 +224,45 @@ Create TVM runtime and do inference
     Cannot find config for target=cuda, workload=('conv2d_nchw_winograd.cuda', ('TENSOR', (1, 256, 2, 2), 'float32'), ('TENSOR', (16, 256, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'float32'). A fallback configuration is used, which may bring great performance regression.
     Cannot find config for target=cuda, workload=('conv2d_nchw.cuda', ('TENSOR', (1, 256, 1, 1), 'float32'), ('TENSOR', (16, 256, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'float32'). A fallback configuration is used, which may bring great performance regression.
     Cannot find config for target=cuda, workload=('conv2d_nchw_winograd.cuda', ('TENSOR', (1, 256, 1, 1), 'float32'), ('TENSOR', (16, 256, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 3, 512, 512), 'float32'), ('TENSOR', (64, 3, 7, 7), 'float32'), (2, 2), (3, 3, 3, 3), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 64, 128, 128), 'float32'), ('TENSOR', (64, 64, 1, 1), 'float32'), (1, 1), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 64, 128, 128), 'float32'), ('TENSOR', (64, 64, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 64, 128, 128), 'float32'), ('TENSOR', (256, 64, 1, 1), 'float32'), (1, 1), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 256, 128, 128), 'float32'), ('TENSOR', (64, 256, 1, 1), 'float32'), (1, 1), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 256, 128, 128), 'float32'), ('TENSOR', (128, 256, 1, 1), 'float32'), (2, 2), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 128, 64, 64), 'float32'), ('TENSOR', (128, 128, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 128, 64, 64), 'float32'), ('TENSOR', (512, 128, 1, 1), 'float32'), (1, 1), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 256, 128, 128), 'float32'), ('TENSOR', (512, 256, 1, 1), 'float32'), (2, 2), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 64, 64), 'float32'), ('TENSOR', (128, 512, 1, 1), 'float32'), (1, 1), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 64, 64), 'float32'), ('TENSOR', (256, 512, 1, 1), 'float32'), (2, 2), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 256, 32, 32), 'float32'), ('TENSOR', (256, 256, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 256, 32, 32), 'float32'), ('TENSOR', (1024, 256, 1, 1), 'float32'), (1, 1), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 64, 64), 'float32'), ('TENSOR', (1024, 512, 1, 1), 'float32'), (2, 2), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 1024, 32, 32), 'float32'), ('TENSOR', (256, 1024, 1, 1), 'float32'), (1, 1), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 1024, 32, 32), 'float32'), ('TENSOR', (84, 1024, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 1024, 32, 32), 'float32'), ('TENSOR', (512, 1024, 1, 1), 'float32'), (2, 2), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 16, 16), 'float32'), ('TENSOR', (512, 512, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 16, 16), 'float32'), ('TENSOR', (2048, 512, 1, 1), 'float32'), (1, 1), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 1024, 32, 32), 'float32'), ('TENSOR', (2048, 1024, 1, 1), 'float32'), (2, 2), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 2048, 16, 16), 'float32'), ('TENSOR', (512, 2048, 1, 1), 'float32'), (1, 1), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 2048, 16, 16), 'float32'), ('TENSOR', (126, 2048, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 16, 16), 'float32'), ('TENSOR', (512, 512, 3, 3), 'float32'), (2, 2), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 8, 8), 'float32'), ('TENSOR', (126, 512, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 8, 8), 'float32'), ('TENSOR', (512, 512, 1, 1), 'float32'), (1, 1), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 8, 8), 'float32'), ('TENSOR', (512, 512, 3, 3), 'float32'), (2, 2), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 4, 4), 'float32'), ('TENSOR', (126, 512, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 4, 4), 'float32'), ('TENSOR', (256, 512, 1, 1), 'float32'), (1, 1), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 256, 4, 4), 'float32'), ('TENSOR', (256, 256, 3, 3), 'float32'), (2, 2), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 256, 2, 2), 'float32'), ('TENSOR', (84, 256, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 256, 2, 2), 'float32'), ('TENSOR', (256, 256, 1, 1), 'float32'), (1, 1), (0, 0, 0, 0), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 256, 2, 2), 'float32'), ('TENSOR', (256, 256, 3, 3), 'float32'), (2, 2), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 256, 1, 1), 'float32'), ('TENSOR', (84, 256, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 1024, 32, 32), 'float32'), ('TENSOR', (16, 1024, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 2048, 16, 16), 'float32'), ('TENSOR', (24, 2048, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 8, 8), 'float32'), ('TENSOR', (24, 512, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 512, 4, 4), 'float32'), ('TENSOR', (24, 512, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 256, 2, 2), 'float32'), ('TENSOR', (16, 256, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
+    Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 256, 1, 1), 'float32'), ('TENSOR', (16, 256, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
 
 
 
diff --git a/docs/_sources/tutorials/frontend/from_onnx.rst.txt b/docs/_sources/tutorials/frontend/from_onnx.rst.txt
index 0c8a0f9..257da52 100644
--- a/docs/_sources/tutorials/frontend/from_onnx.rst.txt
+++ b/docs/_sources/tutorials/frontend/from_onnx.rst.txt
@@ -151,7 +151,7 @@ Execute on TVM
 
  .. code-block:: none
 
-
    ...47%, 0.01 MB, 41 KB/s, 0 seconds passed
    ...94%, 0.02 MB, 83 KB/s, 0 seconds passed
    ...100%, 0.02 MB, 124 KB/s, 0 seconds passed
+
    ...47%, 0.01 MB, 42 KB/s, 0 seconds passed
    ...94%, 0.02 MB, 85 KB/s, 0 seconds passed
    ...100%, 0.02 MB, 128 KB/s, 0 seconds passed
     Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 32, 224, 224), 'float32'), ('TENSOR', (9, 32, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
     Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 64, 224, 224), 'float32'), ('TENSOR', (32, 64, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
     Cannot find config for target=llvm, workload=('conv2d_NCHWc.x86', ('TENSOR', (1, 1, 224, 224), 'float32'), ('TENSOR', (64, 1, 5, 5), 'float32'), (1, 1), (2, 2, 2, 2), (1, 1), 'NCHW', 'NCHW', 'float32'). A fallback configuration is used, which may bring great performance regression.
diff --git a/docs/_sources/tutorials/frontend/from_pytorch.rst.txt b/docs/_sources/tutorials/frontend/from_pytorch.rst.txt
index 3a90a70..a76b2d8 100644
--- a/docs/_sources/tutorials/frontend/from_pytorch.rst.txt
+++ b/docs/_sources/tutorials/frontend/from_pytorch.rst.txt
@@ -114,12 +114,12 @@ Classic cat example!
 
 Import the graph to Relay
 -------------------------
-Convert PyTorch graph to Relay graph.
+Convert PyTorch graph to Relay graph. The input name can be arbitrary.
 
 
 .. code-block:: default
 
-    input_name = 'input0'  # only one input, set it to this name
+    input_name = 'input0'
     shape_list = [(input_name, img.shape)]
     mod, params = relay.frontend.from_pytorch(scripted_model,
                                               shape_list)
diff --git a/docs/_sources/tutorials/frontend/sg_execution_times.rst.txt b/docs/_sources/tutorials/frontend/sg_execution_times.rst.txt
index 930a656..59bf8d3 100644
--- a/docs/_sources/tutorials/frontend/sg_execution_times.rst.txt
+++ b/docs/_sources/tutorials/frontend/sg_execution_times.rst.txt
@@ -5,20 +5,21 @@
 
 Computation times
 =================
-**02:46.309** total execution time for **tutorials_frontend** files:
+**03:05.770** total execution time for **tutorials_frontend** files:
 
-- **00:21.903**: :ref:`sphx_glr_tutorials_frontend_deploy_ssd_gluoncv.py` (``deploy_ssd_gluoncv.py``)
-- **00:19.754**: :ref:`sphx_glr_tutorials_frontend_from_tflite.py` (``from_tflite.py``)
-- **00:17.764**: :ref:`sphx_glr_tutorials_frontend_from_tensorflow.py` (``from_tensorflow.py``)
-- **00:17.623**: :ref:`sphx_glr_tutorials_frontend_deploy_quantized.py` (``deploy_quantized.py``)
-- **00:15.681**: :ref:`sphx_glr_tutorials_frontend_from_darknet.py` (``from_darknet.py``)
-- **00:15.601**: :ref:`sphx_glr_tutorials_frontend_deploy_model_on_android.py` (``deploy_model_on_android.py``)
-- **00:13.258**: :ref:`sphx_glr_tutorials_frontend_from_keras.py` (``from_keras.py``)
-- **00:11.054**: :ref:`sphx_glr_tutorials_frontend_from_caffe2.py` (``from_caffe2.py``)
-- **00:09.056**: :ref:`sphx_glr_tutorials_frontend_from_pytorch.py` (``from_pytorch.py``)
-- **00:06.607**: :ref:`sphx_glr_tutorials_frontend_deploy_model_on_rasp.py` (``deploy_model_on_rasp.py``)
-- **00:05.287**: :ref:`sphx_glr_tutorials_frontend_from_coreml.py` (``from_coreml.py``)
-- **00:04.659**: :ref:`sphx_glr_tutorials_frontend_build_gcn.py` (``build_gcn.py``)
-- **00:04.553**: :ref:`sphx_glr_tutorials_frontend_from_mxnet.py` (``from_mxnet.py``)
-- **00:02.088**: :ref:`sphx_glr_tutorials_frontend_using_external_lib.py` (``using_external_lib.py``)
-- **00:01.421**: :ref:`sphx_glr_tutorials_frontend_from_onnx.py` (``from_onnx.py``)
+- **00:26.319**: :ref:`sphx_glr_tutorials_frontend_deploy_prequantized.py` (``deploy_prequantized.py``)
+- **00:22.821**: :ref:`sphx_glr_tutorials_frontend_deploy_ssd_gluoncv.py` (``deploy_ssd_gluoncv.py``)
+- **00:19.364**: :ref:`sphx_glr_tutorials_frontend_from_tflite.py` (``from_tflite.py``)
+- **00:17.500**: :ref:`sphx_glr_tutorials_frontend_from_tensorflow.py` (``from_tensorflow.py``)
+- **00:16.859**: :ref:`sphx_glr_tutorials_frontend_deploy_quantized.py` (``deploy_quantized.py``)
+- **00:15.361**: :ref:`sphx_glr_tutorials_frontend_from_darknet.py` (``from_darknet.py``)
+- **00:13.839**: :ref:`sphx_glr_tutorials_frontend_deploy_model_on_android.py` (``deploy_model_on_android.py``)
+- **00:13.039**: :ref:`sphx_glr_tutorials_frontend_from_keras.py` (``from_keras.py``)
+- **00:10.709**: :ref:`sphx_glr_tutorials_frontend_from_caffe2.py` (``from_caffe2.py``)
+- **00:06.308**: :ref:`sphx_glr_tutorials_frontend_deploy_model_on_rasp.py` (``deploy_model_on_rasp.py``)
+- **00:06.109**: :ref:`sphx_glr_tutorials_frontend_from_pytorch.py` (``from_pytorch.py``)
+- **00:05.230**: :ref:`sphx_glr_tutorials_frontend_from_coreml.py` (``from_coreml.py``)
+- **00:04.473**: :ref:`sphx_glr_tutorials_frontend_from_mxnet.py` (``from_mxnet.py``)
+- **00:04.422**: :ref:`sphx_glr_tutorials_frontend_build_gcn.py` (``build_gcn.py``)
+- **00:02.027**: :ref:`sphx_glr_tutorials_frontend_using_external_lib.py` (``using_external_lib.py``)
+- **00:01.389**: :ref:`sphx_glr_tutorials_frontend_from_onnx.py` (``from_onnx.py``)
diff --git a/docs/_sources/tutorials/index.rst.txt b/docs/_sources/tutorials/index.rst.txt
index 5a6a439..242ba1d 100644
--- a/docs/_sources/tutorials/index.rst.txt
+++ b/docs/_sources/tutorials/index.rst.txt
@@ -286,6 +286,26 @@ Compile Deep Learning Models
 
 .. raw:: html
 
+    <div class="sphx-glr-thumbcontainer" tooltip="This is a tutorial on loading models quantized by deep learning frameworks into TVM. Pre-quanti...">
+
+.. only:: html
+
+    .. figure:: /tutorials/frontend/images/thumb/sphx_glr_deploy_prequantized_thumb.png
+
+        :ref:`sphx_glr_tutorials_frontend_deploy_prequantized.py`
+
+.. raw:: html
+
+    </div>
+
+
+.. toctree::
+   :hidden:
+
+   /tutorials/frontend/deploy_prequantized
+
+.. raw:: html
+
     <div class="sphx-glr-thumbcontainer" tooltip="This article is an introductory tutorial to deploy TFLite models with Relay.">
 
 .. only:: html
diff --git a/docs/_sources/tutorials/language/reduction.rst.txt b/docs/_sources/tutorials/language/reduction.rst.txt
index 2339c30..45df921 100644
--- a/docs/_sources/tutorials/language/reduction.rst.txt
+++ b/docs/_sources/tutorials/language/reduction.rst.txt
@@ -92,12 +92,10 @@ Before doing anything, let us print out the IR code of default schedule.
 
  .. code-block:: none
 
-    produce B {
-      for (i, 0, n) {
-        B[(i*stride)] = 0f
-        for (k, 0, m) {
-          B[(i*stride)] = (B[(i*stride)] + A[((i*stride) + (k*stride))])
-        }
+    for (i, 0, n) {
+      B[(i*stride)] = 0f
+      for (k, 0, m) {
+        B[(i*stride)] = (B[(i*stride)] + A[((i*stride) + (k*stride))])
       }
     }
 
@@ -128,18 +126,16 @@ axis by different factors. The result is a nested reduction.
 
  .. code-block:: none
 
-    produce B {
-      for (i.outer, 0, floordiv((n + 31), 32)) {
-        for (i.inner, 0, 32) {
-          if (likely((((i.outer*32) + i.inner) < n))) {
-            B[(((i.outer*32) + i.inner)*stride)] = 0f
-          }
-          for (k.outer, 0, floordiv((m + 15), 16)) {
-            for (k.inner, 0, 16) {
-              if (likely((((i.outer*32) + i.inner) < n))) {
-                if (likely((((k.outer*16) + k.inner) < m))) {
-                  B[(((i.outer*32) + i.inner)*stride)] = (B[(((i.outer*32) + i.inner)*stride)] + A[((((i.outer*32) + i.inner)*stride) + (((k.outer*16) + k.inner)*stride))])
-                }
+    for (i.outer, 0, floordiv((n + 31), 32)) {
+      for (i.inner, 0, 32) {
+        if (likely((((i.outer*32) + i.inner) < n))) {
+          B[(((i.outer*32) + i.inner)*stride)] = 0f
+        }
+        for (k.outer, 0, floordiv((m + 15), 16)) {
+          for (k.inner, 0, 16) {
+            if (likely((((i.outer*32) + i.inner) < n))) {
+              if (likely((((k.outer*16) + k.inner) < m))) {
+                B[(((i.outer*32) + i.inner)*stride)] = (B[(((i.outer*32) + i.inner)*stride)] + A[((((i.outer*32) + i.inner)*stride) + (((k.outer*16) + k.inner)*stride))])
               }
             }
           }
@@ -169,18 +165,16 @@ If we are building a GPU kernel, we can bind the rows of B to GPU threads.
 
  .. code-block:: none
 
-    produce B {
-      // attr [iter_var(blockIdx.x, , blockIdx.x)] thread_extent = floordiv((n + 31), 32)
-      // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 32
-      if (likely((((blockIdx.x*32) + threadIdx.x) < n))) {
-        B[(((blockIdx.x*32) + threadIdx.x)*stride)] = 0f
-      }
-      for (k.outer, 0, floordiv((m + 15), 16)) {
-        for (k.inner, 0, 16) {
-          if (likely((((blockIdx.x*32) + threadIdx.x) < n))) {
-            if (likely((((k.outer*16) + k.inner) < m))) {
-              B[(((blockIdx.x*32) + threadIdx.x)*stride)] = (B[(((blockIdx.x*32) + threadIdx.x)*stride)] + A[((((blockIdx.x*32) + threadIdx.x)*stride) + (((k.outer*16) + k.inner)*stride))])
-            }
+    // attr [iter_var(blockIdx.x, , blockIdx.x)] thread_extent = floordiv((n + 31), 32)
+    // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 32
+    if (likely((((blockIdx.x*32) + threadIdx.x) < n))) {
+      B[(((blockIdx.x*32) + threadIdx.x)*stride)] = 0f
+    }
+    for (k.outer, 0, floordiv((m + 15), 16)) {
+      for (k.inner, 0, 16) {
+        if (likely((((blockIdx.x*32) + threadIdx.x) < n))) {
+          if (likely((((k.outer*16) + k.inner) < m))) {
+            B[(((blockIdx.x*32) + threadIdx.x)*stride)] = (B[(((blockIdx.x*32) + threadIdx.x)*stride)] + A[((((blockIdx.x*32) + threadIdx.x)*stride) + (((k.outer*16) + k.inner)*stride))])
           }
         }
       }
@@ -221,24 +215,20 @@ result B.rf. The factored dimension becomes the first dimension of B.rf.
 
     // attr [B.rf] storage_scope = "global"
     allocate B.rf[float32 * (n*16)]
-    produce B.rf {
-      for (k.inner, 0, 16) {
-        for (i, 0, n) {
-          B.rf[((k.inner*n) + i)] = 0f
-          for (k.outer, 0, floordiv((m + 15), 16)) {
-            if (likely((((k.outer*16) + k.inner) < m))) {
-              B.rf[((k.inner*n) + i)] = (B.rf[((k.inner*n) + i)] + A[((i*stride) + (((k.outer*16) + k.inner)*stride))])
-            }
+    for (k.inner, 0, 16) {
+      for (i, 0, n) {
+        B.rf[((k.inner*n) + i)] = 0f
+        for (k.outer, 0, floordiv((m + 15), 16)) {
+          if (likely((((k.outer*16) + k.inner) < m))) {
+            B.rf[((k.inner*n) + i)] = (B.rf[((k.inner*n) + i)] + A[((i*stride) + (((k.outer*16) + k.inner)*stride))])
           }
         }
       }
     }
-    produce B {
-      for (ax0, 0, n) {
-        B[(ax0*stride)] = 0f
-        for (k.inner.v, 0, 16) {
-          B[(ax0*stride)] = (B[(ax0*stride)] + B.rf[((k.inner.v*n) + ax0)])
-        }
+    for (ax0, 0, n) {
+      B[(ax0*stride)] = 0f
+      for (k.inner.v, 0, 16) {
+        B[(ax0*stride)] = (B[(ax0*stride)] + B.rf[((k.inner.v*n) + ax0)])
       }
     }
 
@@ -392,14 +382,12 @@ Here is an example for 2D convolution with filter size = [3, 3] and strides = [1
 
  .. code-block:: none
 
-    produce Output {
-      for (i, 0, (n - 2)) {
-        for (j, 0, (n - 2)) {
-          Output[((i*(n - 2)) + j)] = 0f
-          for (di, 0, 3) {
-            for (dj, 0, 3) {
-              Output[((i*(n - 2)) + j)] = (Output[((i*(n - 2)) + j)] + (Input[(((i + di)*stride) + ((j + dj)*stride))]*Filter[((di*3) + dj)]))
-            }
+    for (i, 0, (n - 2)) {
+      for (j, 0, (n - 2)) {
+        Output[((i*(n - 2)) + j)] = 0f
+        for (di, 0, 3) {
+          for (dj, 0, 3) {
+            Output[((i*(n - 2)) + j)] = (Output[((i*(n - 2)) + j)] + (Input[(((i + di)*stride) + ((j + dj)*stride))]*Filter[((di*3) + dj)]))
           }
         }
       }
diff --git a/docs/_sources/tutorials/language/scan.rst.txt b/docs/_sources/tutorials/language/scan.rst.txt
index aa5782e..f39e872 100644
--- a/docs/_sources/tutorials/language/scan.rst.txt
+++ b/docs/_sources/tutorials/language/scan.rst.txt
@@ -98,18 +98,16 @@ To split on the time iteration, user can schedule on scan_op.scan_axis instead.
 
  .. code-block:: none
 
-    produce scan {
+    // attr [iter_var(blockIdx.x, , blockIdx.x)] thread_extent = floordiv((n + 255), 256)
+    // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 256
+    if (likely((((blockIdx.x*256) + threadIdx.x) < n))) {
+      scan[(((blockIdx.x*256) + threadIdx.x)*stride)] = X[(((blockIdx.x*256) + threadIdx.x)*stride)]
+    }
+    for (scan.idx, 0, (m - 1)) {
       // attr [iter_var(blockIdx.x, , blockIdx.x)] thread_extent = floordiv((n + 255), 256)
       // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 256
       if (likely((((blockIdx.x*256) + threadIdx.x) < n))) {
-        scan[(((blockIdx.x*256) + threadIdx.x)*stride)] = X[(((blockIdx.x*256) + threadIdx.x)*stride)]
-      }
-      for (scan.idx, 0, (m - 1)) {
-        // attr [iter_var(blockIdx.x, , blockIdx.x)] thread_extent = floordiv((n + 255), 256)
-        // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 256
-        if (likely((((blockIdx.x*256) + threadIdx.x) < n))) {
-          scan[(((scan.idx + 1)*stride) + (((blockIdx.x*256) + threadIdx.x)*stride))] = (scan[((scan.idx*stride) + (((blockIdx.x*256) + threadIdx.x)*stride))] + X[(((scan.idx + 1)*stride) + (((blockIdx.x*256) + threadIdx.x)*stride))])
-        }
+        scan[(((scan.idx + 1)*stride) + (((blockIdx.x*256) + threadIdx.x)*stride))] = (scan[((scan.idx*stride) + (((blockIdx.x*256) + threadIdx.x)*stride))] + X[(((scan.idx + 1)*stride) + (((blockIdx.x*256) + threadIdx.x)*stride))])
       }
     }
 
@@ -194,23 +192,19 @@ the body of scan to be compute_at locations outside the scan loop.
 
     // attr [s1] storage_scope = "global"
     allocate s1[float32 * 32]
-    produce scan {
-      for (i, 0, n) {
-        scan[(i*stride)] = X[(i*stride)]
-      }
-      for (scan.idx, 0, (m - 1)) {
-        for (i.outer, 0, floordiv((n + 31), 32)) {
-          produce s1 {
-            for (i, 0, 32) {
-              if (likely((((i.outer*32) + i) < n))) {
-                s1[i] = (scan[((scan.idx*stride) + (((i.outer*32) + i)*stride))]*2f)
-              }
-            }
+    for (i, 0, n) {
+      scan[(i*stride)] = X[(i*stride)]
+    }
+    for (scan.idx, 0, (m - 1)) {
+      for (i.outer, 0, floordiv((n + 31), 32)) {
+        for (i, 0, 32) {
+          if (likely((((i.outer*32) + i) < n))) {
+            s1[i] = (scan[((scan.idx*stride) + (((i.outer*32) + i)*stride))]*2f)
           }
-          for (i.inner, 0, 32) {
-            if (likely((((i.outer*32) + i.inner) < n))) {
-              scan[(((scan.idx + 1)*stride) + (((i.outer*32) + i.inner)*stride))] = (s1[i.inner] + X[(((scan.idx + 1)*stride) + (((i.outer*32) + i.inner)*stride))])
-            }
+        }
+        for (i.inner, 0, 32) {
+          if (likely((((i.outer*32) + i.inner) < n))) {
+            scan[(((scan.idx + 1)*stride) + (((i.outer*32) + i.inner)*stride))] = (s1[i.inner] + X[(((scan.idx + 1)*stride) + (((i.outer*32) + i.inner)*stride))])
           }
         }
       }
@@ -255,20 +249,18 @@ The following example demonstrates how we can build recurrence with two states.
 
  .. code-block:: none
 
-    produce scan {
+    for (i, 0, n) {
+      scan.v0[(i*stride)] = X[(i*stride)]
+    }
+    for (i, 0, l) {
+      scan.v1[(i*stride)] = 0f
+    }
+    for (scan.idx, 0, (m - 1)) {
       for (i, 0, n) {
-        scan.v0[(i*stride)] = X[(i*stride)]
+        scan.v0[(((scan.idx + 1)*stride) + (i*stride))] = (scan.v0[((scan.idx*stride) + (i*stride))] + X[(((scan.idx + 1)*stride) + (i*stride))])
       }
       for (i, 0, l) {
-        scan.v1[(i*stride)] = 0f
-      }
-      for (scan.idx, 0, (m - 1)) {
-        for (i, 0, n) {
-          scan.v0[(((scan.idx + 1)*stride) + (i*stride))] = (scan.v0[((scan.idx*stride) + (i*stride))] + X[(((scan.idx + 1)*stride) + (i*stride))])
-        }
-        for (i, 0, l) {
-          scan.v1[(((scan.idx + 1)*stride) + (i*stride))] = (scan.v1[((scan.idx*stride) + (i*stride))] + scan.v0[(scan.idx*stride)])
-        }
+        scan.v1[(((scan.idx + 1)*stride) + (i*stride))] = (scan.v1[((scan.idx*stride) + (i*stride))] + scan.v0[(scan.idx*stride)])
       }
     }
 
diff --git a/docs/_sources/tutorials/language/schedule_primitives.rst.txt b/docs/_sources/tutorials/language/schedule_primitives.rst.txt
index bd8463a..5d25601 100644
--- a/docs/_sources/tutorials/language/schedule_primitives.rst.txt
+++ b/docs/_sources/tutorials/language/schedule_primitives.rst.txt
@@ -83,11 +83,9 @@ schedule computes tensor in a serial manner in a row-major order.
 
  .. code-block:: none
 
-    produce C {
-      for (i, 0, m) {
-        for (j, 0, n) {
-          C[((i*stride) + (j*stride))] = (A[((i*stride) + (j*stride))]*B[((i*stride) + (j*stride))])
-        }
+    for (i, 0, m) {
+      for (j, 0, n) {
+        C[((i*stride) + (j*stride))] = (A[((i*stride) + (j*stride))]*B[((i*stride) + (j*stride))])
       }
     }
 
@@ -123,12 +121,10 @@ split
 
  .. code-block:: none
 
-    produce B {
-      for (i.outer, 0, floordiv((m + 31), 32)) {
-        for (i.inner, 0, 32) {
-          if (likely((((i.outer*32) + i.inner) < m))) {
-            B[(((i.outer*32) + i.inner)*stride)] = (A[(((i.outer*32) + i.inner)*stride)]*2f)
-          }
+    for (i.outer, 0, floordiv((m + 31), 32)) {
+      for (i.inner, 0, 32) {
+        if (likely((((i.outer*32) + i.inner) < m))) {
+          B[(((i.outer*32) + i.inner)*stride)] = (A[(((i.outer*32) + i.inner)*stride)]*2f)
         }
       }
     }
@@ -159,12 +155,10 @@ contrary with :code:`factor`.
 
  .. code-block:: none
 
-    produce B {
-      for (i.outer, 0, 32) {
-        for (i.inner, 0, floordiv((m + 31), 32)) {
-          if (likely(((i.inner + (i.outer*floordiv((m + 31), 32))) < m))) {
-            B[((i.inner + (i.outer*floordiv((m + 31), 32)))*stride)] = A[((i.inner + (i.outer*floordiv((m + 31), 32)))*stride)]
-          }
+    for (i.outer, 0, 32) {
+      for (i.inner, 0, floordiv((m + 31), 32)) {
+        if (likely(((i.inner + (i.outer*floordiv((m + 31), 32))) < m))) {
+          B[((i.inner + (i.outer*floordiv((m + 31), 32)))*stride)] = A[((i.inner + (i.outer*floordiv((m + 31), 32)))*stride)]
         }
       }
     }
@@ -197,15 +191,13 @@ axises.
 
  .. code-block:: none
 
-    produce B {
-      for (i.outer, 0, floordiv((m + 9), 10)) {
-        for (j.outer, 0, floordiv((n + 4), 5)) {
-          for (i.inner, 0, 10) {
-            for (j.inner, 0, 5) {
-              if (likely((((i.outer*10) + i.inner) < m))) {
-                if (likely((((j.outer*5) + j.inner) < n))) {
-                  B[((((i.outer*10) + i.inner)*stride) + (((j.outer*5) + j.inner)*stride))] = A[((((i.outer*10) + i.inner)*stride) + (((j.outer*5) + j.inner)*stride))]
-                }
+    for (i.outer, 0, floordiv((m + 9), 10)) {
+      for (j.outer, 0, floordiv((n + 4), 5)) {
+        for (i.inner, 0, 10) {
+          for (j.inner, 0, 5) {
+            if (likely((((i.outer*10) + i.inner) < m))) {
+              if (likely((((j.outer*5) + j.inner) < n))) {
+                B[((((i.outer*10) + i.inner)*stride) + (((j.outer*5) + j.inner)*stride))] = A[((((i.outer*10) + i.inner)*stride) + (((j.outer*5) + j.inner)*stride))]
               }
             }
           }
@@ -243,14 +235,12 @@ fuse
 
  .. code-block:: none
 
-    produce B {
-      for (i.outer, 0, floordiv((m + 9), 10)) {
-        for (j.outer, 0, floordiv((n + 4), 5)) {
-          for (i.inner.j.inner.fused, 0, 50) {
-            if (likely((((i.outer*10) + floordiv(i.inner.j.inner.fused, 5)) < m))) {
-              if (likely((((j.outer*5) + floormod(i.inner.j.inner.fused, 5)) < n))) {
-                B[((((i.outer*10) + floordiv(i.inner.j.inner.fused, 5))*stride) + (((j.outer*5) + floormod(i.inner.j.inner.fused, 5))*stride))] = A[((((i.outer*10) + floordiv(i.inner.j.inner.fused, 5))*stride) + (((j.outer*5) + floormod(i.inner.j.inner.fused, 5))*stride))]
-              }
+    for (i.outer, 0, floordiv((m + 9), 10)) {
+      for (j.outer, 0, floordiv((n + 4), 5)) {
+        for (i.inner.j.inner.fused, 0, 50) {
+          if (likely((((i.outer*10) + floordiv(i.inner.j.inner.fused, 5)) < m))) {
+            if (likely((((j.outer*5) + floormod(i.inner.j.inner.fused, 5)) < n))) {
+              B[((((i.outer*10) + floordiv(i.inner.j.inner.fused, 5))*stride) + (((j.outer*5) + floormod(i.inner.j.inner.fused, 5))*stride))] = A[((((i.outer*10) + floordiv(i.inner.j.inner.fused, 5))*stride) + (((j.outer*5) + floormod(i.inner.j.inner.fused, 5))*stride))]
             }
           }
         }
@@ -287,15 +277,13 @@ reorder
 
  .. code-block:: none
 
-    produce B {
-      for (i.inner, 0, 10) {
-        for (j.outer, 0, floordiv((n + 4), 5)) {
-          for (i.outer, 0, floordiv((m + 9), 10)) {
-            for (j.inner, 0, 5) {
-              if (likely((((i.outer*10) + i.inner) < m))) {
-                if (likely((((j.outer*5) + j.inner) < n))) {
-                  B[((((i.outer*10) + i.inner)*stride) + (((j.outer*5) + j.inner)*stride))] = A[((((i.outer*10) + i.inner)*stride) + (((j.outer*5) + j.inner)*stride))]
-                }
+    for (i.inner, 0, 10) {
+      for (j.outer, 0, floordiv((n + 4), 5)) {
+        for (i.outer, 0, floordiv((m + 9), 10)) {
+          for (j.inner, 0, 5) {
+            if (likely((((i.outer*10) + i.inner) < m))) {
+              if (likely((((j.outer*5) + j.inner) < n))) {
+                B[((((i.outer*10) + i.inner)*stride) + (((j.outer*5) + j.inner)*stride))] = A[((((i.outer*10) + i.inner)*stride) + (((j.outer*5) + j.inner)*stride))]
               }
             }
           }
@@ -333,12 +321,10 @@ in gpu programming.
 
  .. code-block:: none
 
-    produce B {
-      // attr [iter_var(blockIdx.x, , blockIdx.x)] thread_extent = floordiv((n + 63), 64)
-      // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 64
-      if (likely((((blockIdx.x*64) + threadIdx.x) < n))) {
-        B[(((blockIdx.x*64) + threadIdx.x)*stride)] = (A[(((blockIdx.x*64) + threadIdx.x)*stride)]*2f)
-      }
+    // attr [iter_var(blockIdx.x, , blockIdx.x)] thread_extent = floordiv((n + 63), 64)
+    // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 64
+    if (likely((((blockIdx.x*64) + threadIdx.x) < n))) {
+      B[(((blockIdx.x*64) + threadIdx.x)*stride)] = (A[(((blockIdx.x*64) + threadIdx.x)*stride)]*2f)
     }
 
 
@@ -369,15 +355,11 @@ tensors at the root separately by default.
 
  .. code-block:: none
 
-    produce B {
-      for (i, 0, m) {
-        B[(i*stride)] = (A[(i*stride)] + 1f)
-      }
+    for (i, 0, m) {
+      B[(i*stride)] = (A[(i*stride)] + 1f)
     }
-    produce C {
-      for (i, 0, m) {
-        C[(i*stride)] = (B[(i*stride)]*2f)
-      }
+    for (i, 0, m) {
+      C[(i*stride)] = (B[(i*stride)]*2f)
     }
 
 
@@ -407,13 +389,9 @@ of computation of `C`.
 
  .. code-block:: none
 
-    produce C {
-      for (i, 0, m) {
-        produce B {
-          B[(i*stride)] = (A[(i*stride)] + 1f)
-        }
-        C[(i*stride)] = (B[(i*stride)]*2f)
-      }
+    for (i, 0, m) {
+      B[(i*stride)] = (A[(i*stride)] + 1f)
+      C[(i*stride)] = (B[(i*stride)]*2f)
     }
 
 
@@ -446,10 +424,8 @@ tensor is required.
 
  .. code-block:: none
 
-    produce C {
-      for (i, 0, m) {
-        C[(i*stride)] = ((A[(i*stride)] + 1f)*2f)
-      }
+    for (i, 0, m) {
+      C[(i*stride)] = ((A[(i*stride)] + 1f)*2f)
     }
 
 
@@ -481,15 +457,11 @@ compute_root
 
  .. code-block:: none
 
-    produce B {
-      for (i, 0, m) {
-        B[(i*stride)] = (A[(i*stride)] + 1f)
-      }
+    for (i, 0, m) {
+      B[(i*stride)] = (A[(i*stride)] + 1f)
     }
-    produce C {
-      for (i, 0, m) {
-        C[(i*stride)] = (B[(i*stride)]*2f)
-      }
+    for (i, 0, m) {
+      C[(i*stride)] = (B[(i*stride)]*2f)
     }
 
 
diff --git a/docs/_sources/tutorials/language/sg_execution_times.rst.txt b/docs/_sources/tutorials/language/sg_execution_times.rst.txt
index c29d06c..716aa95 100644
--- a/docs/_sources/tutorials/language/sg_execution_times.rst.txt
+++ b/docs/_sources/tutorials/language/sg_execution_times.rst.txt
@@ -5,13 +5,13 @@
 
 Computation times
 =================
-**00:03.451** total execution time for **tutorials_language** files:
+**00:03.704** total execution time for **tutorials_language** files:
 
-- **00:01.193**: :ref:`sphx_glr_tutorials_language_intrin_math.py` (``intrin_math.py``)
-- **00:00.652**: :ref:`sphx_glr_tutorials_language_tensorize.py` (``tensorize.py``)
-- **00:00.437**: :ref:`sphx_glr_tutorials_language_reduction.py` (``reduction.py``)
-- **00:00.430**: :ref:`sphx_glr_tutorials_language_scan.py` (``scan.py``)
-- **00:00.272**: :ref:`sphx_glr_tutorials_language_extern_op.py` (``extern_op.py``)
-- **00:00.169**: :ref:`sphx_glr_tutorials_language_tedd.py` (``tedd.py``)
-- **00:00.158**: :ref:`sphx_glr_tutorials_language_schedule_primitives.py` (``schedule_primitives.py``)
-- **00:00.140**: :ref:`sphx_glr_tutorials_language_tuple_inputs.py` (``tuple_inputs.py``)
+- **00:01.313**: :ref:`sphx_glr_tutorials_language_intrin_math.py` (``intrin_math.py``)
+- **00:00.666**: :ref:`sphx_glr_tutorials_language_tensorize.py` (``tensorize.py``)
+- **00:00.515**: :ref:`sphx_glr_tutorials_language_reduction.py` (``reduction.py``)
+- **00:00.462**: :ref:`sphx_glr_tutorials_language_scan.py` (``scan.py``)
+- **00:00.276**: :ref:`sphx_glr_tutorials_language_extern_op.py` (``extern_op.py``)
+- **00:00.174**: :ref:`sphx_glr_tutorials_language_tedd.py` (``tedd.py``)
+- **00:00.157**: :ref:`sphx_glr_tutorials_language_schedule_primitives.py` (``schedule_primitives.py``)
+- **00:00.141**: :ref:`sphx_glr_tutorials_language_tuple_inputs.py` (``tuple_inputs.py``)
diff --git a/docs/_sources/tutorials/language/tensorize.rst.txt b/docs/_sources/tutorials/language/tensorize.rst.txt
index 6b284ab..12b25bd 100644
--- a/docs/_sources/tutorials/language/tensorize.rst.txt
+++ b/docs/_sources/tutorials/language/tensorize.rst.txt
@@ -69,13 +69,11 @@ The following lines describe the computation :code:`A * B^T` in TVM.
 
  .. code-block:: none
 
-    produce C {
-      for (i, 0, 1024) {
-        for (j, 0, 512) {
-          C[((i*512) + j)] = 0f
-          for (k, 0, 64) {
-            C[((i*512) + j)] = (C[((i*512) + j)] + (A[((i*64) + k)]*B[((j*64) + k)]))
-          }
+    for (i, 0, 1024) {
+      for (j, 0, 512) {
+        C[((i*512) + j)] = 0f
+        for (k, 0, 64) {
+          C[((i*512) + j)] = (C[((i*512) + j)] + (A[((i*64) + k)]*B[((j*64) + k)]))
         }
       }
     }
@@ -112,14 +110,12 @@ Thus we break down the matmul loops to make the innermost loops a (16x64) GEMV.
 
  .. code-block:: none
 
-    produce C {
-      for (i, 0, 1024) {
-        for (j.outer, 0, 32) {
-          for (j.inner, 0, 16) {
-            C[(((i*512) + (j.outer*16)) + j.inner)] = 0f
-            for (k, 0, 64) {
-              C[(((i*512) + (j.outer*16)) + j.inner)] = (C[(((i*512) + (j.outer*16)) + j.inner)] + (A[((i*64) + k)]*B[(((j.outer*1024) + (j.inner*64)) + k)]))
-            }
+    for (i, 0, 1024) {
+      for (j.outer, 0, 32) {
+        for (j.inner, 0, 16) {
+          C[(((i*512) + (j.outer*16)) + j.inner)] = 0f
+          for (k, 0, 64) {
+            C[(((i*512) + (j.outer*16)) + j.inner)] = (C[(((i*512) + (j.outer*16)) + j.inner)] + (A[((i*64) + k)]*B[(((j.outer*1024) + (j.inner*64)) + k)]))
           }
         }
       }
@@ -223,11 +219,9 @@ such placeholder can be put to let TVM automatically bind the inferred value for
 
  .. code-block:: none
 
-    produce C {
-      for (i, 0, 1024) {
-        for (j.outer, 0, 32) {
-          gemv_update(tvm_access_ptr(type_annotation(), C, ((i*512) + (j.outer*16)), 16, 2), tvm_access_ptr(type_annotation(), A, (i*64), 64, 1), tvm_access_ptr(type_annotation(), B, (j.outer*1024), 1024, 1), 16, 64, 64)
-        }
+    for (i, 0, 1024) {
+      for (j.outer, 0, 32) {
+        gemv_update(tvm_access_ptr(type_annotation(), C, ((i*512) + (j.outer*16)), 16, 2), tvm_access_ptr(type_annotation(), A, (i*64), 64, 1), tvm_access_ptr(type_annotation(), B, (j.outer*1024), 1024, 1), 16, 64, 64)
       }
     }
 
@@ -287,12 +281,10 @@ The importing needs to happen before the tensorized GEMV being executed.
 
  .. code-block:: none
 
-    produce C {
-      // attr [iter_var(i, )] pragma_import_llvm = "; ModuleID = '/tmp/tmpa_fzin16/input0.cc'\nsource_filename = \"/tmp/tmpa_fzin16/input0.cc\"\ntarget datalayout = \"e-m:e-i64:64-f80:128-n8:16:32:64-S128\"\ntarget triple = \"x86_64-pc-linux-gnu\"\n\n; Function Attrs: noinline nounwind optnone uwtable\ndefine dso_local i32 @gemv_update(float*, float*, float*, i32, i32, i32) #0 {\n  %7 = alloca float*, align 8\n  %8 = alloca float*, align 8\n  %9 = alloca float*, align 8\n  %10 = alloca i [...]
-      for (i, 0, 1024) {
-        for (j.outer, 0, 32) {
-          gemv_update(tvm_access_ptr(type_annotation(), C, ((i*512) + (j.outer*16)), 16, 2), tvm_access_ptr(type_annotation(), A, (i*64), 64, 1), tvm_access_ptr(type_annotation(), B, (j.outer*1024), 1024, 1), 16, 64, 64)
-        }
+    // attr [iter_var(i, )] pragma_import_llvm = "; ModuleID = '/tmp/tmpjeq03rs8/input0.cc'\nsource_filename = \"/tmp/tmpjeq03rs8/input0.cc\"\ntarget datalayout = \"e-m:e-i64:64-f80:128-n8:16:32:64-S128\"\ntarget triple = \"x86_64-pc-linux-gnu\"\n\n; Function Attrs: noinline nounwind optnone uwtable\ndefine dso_local i32 @gemv_update(float*, float*, float*, i32, i32, i32) #0 {\n  %7 = alloca float*, align 8\n  %8 = alloca float*, align 8\n  %9 = alloca float*, align 8\n  %10 = alloca i32 [...]
+    for (i, 0, 1024) {
+      for (j.outer, 0, 32) {
+        gemv_update(tvm_access_ptr(type_annotation(), C, ((i*512) + (j.outer*16)), 16, 2), tvm_access_ptr(type_annotation(), A, (i*64), 64, 1), tvm_access_ptr(type_annotation(), B, (j.outer*1024), 1024, 1), 16, 64, 64)
       }
     }
 
diff --git a/docs/_sources/tutorials/language/tuple_inputs.rst.txt b/docs/_sources/tutorials/language/tuple_inputs.rst.txt
index 12d014f..66b7167 100644
--- a/docs/_sources/tutorials/language/tuple_inputs.rst.txt
+++ b/docs/_sources/tutorials/language/tuple_inputs.rst.txt
@@ -62,12 +62,10 @@ together in the next schedule procedure.
 
  .. code-block:: none
 
-    produce B {
-      for (i, 0, m) {
-        for (j, 0, n) {
-          B.v0[((i*stride) + (j*stride))] = (A0[((i*stride) + (j*stride))] + 2f)
-          B.v1[((i*stride) + (j*stride))] = (A1[((i*stride) + (j*stride))]*3f)
-        }
+    for (i, 0, m) {
+      for (j, 0, n) {
+        B.v0[((i*stride) + (j*stride))] = (A0[((i*stride) + (j*stride))] + 2f)
+        B.v1[((i*stride) + (j*stride))] = (A1[((i*stride) + (j*stride))]*3f)
       }
     }
 
@@ -124,14 +122,12 @@ with :py:func:`te.comm_reducer` as below:
 
  .. code-block:: none
 
-    produce T {
-      for (i, 0, m) {
-        T.v0[(i*stride)] = -1
-        T.v1[(i*stride)] = -2147483648
-        for (k, 0, n) {
-          T.v0[(i*stride)] = tvm_if_then_else((val[((i*stride) + (k*stride))] <= T.v1[(i*stride)]), T.v0[(i*stride)], idx[((i*stride) + (k*stride))])
-          T.v1[(i*stride)] = tvm_if_then_else((val[((i*stride) + (k*stride))] <= T.v1[(i*stride)]), T.v1[(i*stride)], val[((i*stride) + (k*stride))])
-        }
+    for (i, 0, m) {
+      T.v0[(i*stride)] = -1
+      T.v1[(i*stride)] = -2147483648
+      for (k, 0, n) {
+        T.v0[(i*stride)] = tvm_if_then_else((val[((i*stride) + (k*stride))] <= T.v1[(i*stride)]), T.v0[(i*stride)], idx[((i*stride) + (k*stride))])
+        T.v1[(i*stride)] = tvm_if_then_else((val[((i*stride) + (k*stride))] <= T.v1[(i*stride)]), T.v1[(i*stride)], val[((i*stride) + (k*stride))])
       }
     }
 
@@ -179,17 +175,13 @@ in terms of operation.
     allocate B.v0[float32 * n]
     // attr [B.v1] storage_scope = "global"
     allocate B.v1[float32 * n]
-    produce C {
-      for (i, 0, m) {
-        produce B {
-          for (j, 0, n) {
-            B.v0[j] = (A0[((i*stride) + (j*stride))] + 2f)
-            B.v1[j] = (A0[((i*stride) + (j*stride))]*3f)
-          }
-        }
-        for (j, 0, n) {
-          C[((i*stride) + (j*stride))] = (A1[((i*stride) + (j*stride))] + B.v0[j])
-        }
+    for (i, 0, m) {
+      for (j, 0, n) {
+        B.v0[j] = (A0[((i*stride) + (j*stride))] + 2f)
+        B.v1[j] = (A0[((i*stride) + (j*stride))]*3f)
+      }
+      for (j, 0, n) {
+        C[((i*stride) + (j*stride))] = (A1[((i*stride) + (j*stride))] + B.v0[j])
       }
     }
 
diff --git a/docs/_sources/tutorials/optimize/opt_conv_cuda.rst.txt b/docs/_sources/tutorials/optimize/opt_conv_cuda.rst.txt
index c719f50..bad8d43 100644
--- a/docs/_sources/tutorials/optimize/opt_conv_cuda.rst.txt
+++ b/docs/_sources/tutorials/optimize/opt_conv_cuda.rst.txt
@@ -293,7 +293,7 @@ latency of convolution.
 
  .. code-block:: none
 
-    Convolution: 19.769246 ms
+    Convolution: 19.555312 ms
 
 
 
diff --git a/docs/_sources/tutorials/optimize/opt_conv_tensorcore.rst.txt b/docs/_sources/tutorials/optimize/opt_conv_tensorcore.rst.txt
index 86d3144..0d12c54 100644
--- a/docs/_sources/tutorials/optimize/opt_conv_tensorcore.rst.txt
+++ b/docs/_sources/tutorials/optimize/opt_conv_tensorcore.rst.txt
@@ -340,80 +340,68 @@ one time.
 
  .. code-block:: none
 
-    produce Conv {
-      // attr [iter_var(blockIdx.z, , blockIdx.z)] thread_extent = 196
-      // attr [Conv.wmma.accumulator] storage_scope = "wmma.accumulator"
-      allocate Conv.wmma.accumulator[float32 * 2048]
-      // attr [Apad.shared] storage_scope = "shared"
-      allocate Apad.shared[float16 * 12288]
-      // attr [W.shared] storage_scope = "shared"
-      allocate W.shared[float16 * 12288]
-      // attr [Apad.shared.wmma.matrix_a] storage_scope = "wmma.matrix_a"
-      allocate Apad.shared.wmma.matrix_a[float16 * 512]
-      // attr [W.shared.wmma.matrix_b] storage_scope = "wmma.matrix_b"
-      allocate W.shared.wmma.matrix_b[float16 * 1024]
-      // attr [iter_var(blockIdx.x, , blockIdx.x)] thread_extent = 2
-      // attr [iter_var(blockIdx.y, , blockIdx.y)] thread_extent = 4
-      // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 4
-      // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 2
-      produce Conv.wmma.accumulator {
-        for (n.c.init, 0, 2) {
-          for (o.c.init, 0, 4) {
-            for (nn.c.init, 0, 16) {
-              for (oo.c.init, 0, 16) {
-                Conv.wmma.accumulator[((((n.c.init*1024) + (o.c.init*256)) + (nn.c.init*16)) + oo.c.init)] = 0f
-              }
+    // attr [iter_var(blockIdx.z, , blockIdx.z)] thread_extent = 196
+    // attr [Conv.wmma.accumulator] storage_scope = "wmma.accumulator"
+    allocate Conv.wmma.accumulator[float32 * 2048]
+    // attr [Apad.shared] storage_scope = "shared"
+    allocate Apad.shared[float16 * 12288]
+    // attr [W.shared] storage_scope = "shared"
+    allocate W.shared[float16 * 12288]
+    // attr [Apad.shared.wmma.matrix_a] storage_scope = "wmma.matrix_a"
+    allocate Apad.shared.wmma.matrix_a[float16 * 512]
+    // attr [W.shared.wmma.matrix_b] storage_scope = "wmma.matrix_b"
+    allocate W.shared.wmma.matrix_b[float16 * 1024]
+    // attr [iter_var(blockIdx.x, , blockIdx.x)] thread_extent = 2
+    // attr [iter_var(blockIdx.y, , blockIdx.y)] thread_extent = 4
+    // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 4
+    // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 2
+    for (n.c.init, 0, 2) {
+      for (o.c.init, 0, 4) {
+        for (nn.c.init, 0, 16) {
+          for (oo.c.init, 0, 16) {
+            Conv.wmma.accumulator[((((n.c.init*1024) + (o.c.init*256)) + (nn.c.init*16)) + oo.c.init)] = 0f
+          }
+        }
+      }
+    }
+    for (ic.outer, 0, 8) {
+      for (kh, 0, 3) {
+        for (ax2, 0, 3) {
+          for (ax3, 0, 2) {
+            for (ax4.ax5.fused.outer, 0, 8) {
+              // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 32
+              Apad.shared[((((((threadIdx.y*3072) + (threadIdx.z*1536)) + (ax2*512)) + (ax3*256)) + (ax4.ax5.fused.outer*32)) + threadIdx.x)] = tvm_if_then_else(((((1 <= (floordiv(blockIdx.z, 14) + kh)) && ((floordiv(blockIdx.z, 14) + kh) < 15)) && (1 <= (ax2 + floormod(blockIdx.z, 14)))) && ((ax2 + floormod(blockIdx.z, 14)) < 15)), A[(((((((((((blockIdx.x*6422528) + (threadIdx.y*1605632)) + (threadIdx.z*802816)) + (kh*57344)) + (blockIdx.z*4096)) + (ax2*4096)) + (ic.outer*512)) + (ax3*2 [...]
             }
           }
         }
-        for (ic.outer, 0, 8) {
-          for (kh, 0, 3) {
-            produce Apad.shared {
-              for (ax2, 0, 3) {
-                for (ax3, 0, 2) {
-                  for (ax4.ax5.fused.outer, 0, 8) {
-                    // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 32
-                    Apad.shared[((((((threadIdx.y*3072) + (threadIdx.z*1536)) + (ax2*512)) + (ax3*256)) + (ax4.ax5.fused.outer*32)) + threadIdx.x)] = tvm_if_then_else(((((1 <= (floordiv(blockIdx.z, 14) + kh)) && ((floordiv(blockIdx.z, 14) + kh) < 15)) && (1 <= (ax2 + floormod(blockIdx.z, 14)))) && ((ax2 + floormod(blockIdx.z, 14)) < 15)), A[(((((((((((blockIdx.x*6422528) + (threadIdx.y*1605632)) + (threadIdx.z*802816)) + (kh*57344)) + (blockIdx.z*4096)) + (ax2*4096)) + (ic.outer*512)) +  [...]
-                  }
+        for (ax1, 0, 3) {
+          for (ax2, 0, 2) {
+            // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 32
+            W.shared[ramp((((((ax1*4096) + (ax2*2048)) + (threadIdx.y*512)) + (threadIdx.z*256)) + (threadIdx.x*8)), 1, 8)] = W[ramp(((((((((kh*393216) + (ax1*131072)) + (ic.outer*16384)) + (ax2*8192)) + (blockIdx.y*2048)) + (threadIdx.y*512)) + (threadIdx.z*256)) + (threadIdx.x*8)), 1, 8)]
+          }
+        }
+        for (ic.inner, 0, 2) {
+          for (kw, 0, 3) {
+            for (ax0, 0, 2) {
+              for (ax4, 0, 16) {
+                for (ax5, 0, 16) {
+                  Apad.shared.wmma.matrix_a[(((ax0*256) + (ax4*16)) + ax5)] = Apad.shared[((((((threadIdx.y*3072) + (ax0*1536)) + (kw*512)) + (ic.inner*256)) + (ax4*16)) + ax5)]
                 }
               }
             }
-            produce W.shared {
-              for (ax1, 0, 3) {
-                for (ax2, 0, 2) {
-                  // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 32
-                  W.shared[ramp((((((ax1*4096) + (ax2*2048)) + (threadIdx.y*512)) + (threadIdx.z*256)) + (threadIdx.x*8)), 1, 8)] = W[ramp(((((((((kh*393216) + (ax1*131072)) + (ic.outer*16384)) + (ax2*8192)) + (blockIdx.y*2048)) + (threadIdx.y*512)) + (threadIdx.z*256)) + (threadIdx.x*8)), 1, 8)]
+            for (ax3, 0, 4) {
+              for (ax4, 0, 16) {
+                for (ax5, 0, 16) {
+                  W.shared.wmma.matrix_b[(((ax3*256) + (ax4*16)) + ax5)] = W.shared[((((((kw*4096) + (ic.inner*2048)) + (threadIdx.z*1024)) + (ax3*256)) + (ax4*16)) + ax5)]
                 }
               }
             }
-            for (ic.inner, 0, 2) {
-              for (kw, 0, 3) {
-                produce Apad.shared.wmma.matrix_a {
-                  for (ax0, 0, 2) {
-                    for (ax4, 0, 16) {
-                      for (ax5, 0, 16) {
-                        Apad.shared.wmma.matrix_a[(((ax0*256) + (ax4*16)) + ax5)] = Apad.shared[((((((threadIdx.y*3072) + (ax0*1536)) + (kw*512)) + (ic.inner*256)) + (ax4*16)) + ax5)]
-                      }
-                    }
-                  }
-                }
-                produce W.shared.wmma.matrix_b {
-                  for (ax3, 0, 4) {
-                    for (ax4, 0, 16) {
-                      for (ax5, 0, 16) {
-                        W.shared.wmma.matrix_b[(((ax3*256) + (ax4*16)) + ax5)] = W.shared[((((((kw*4096) + (ic.inner*2048)) + (threadIdx.z*1024)) + (ax3*256)) + (ax4*16)) + ax5)]
-                      }
-                    }
-                  }
-                }
-                for (n.c, 0, 2) {
-                  for (o.c, 0, 4) {
-                    for (nn.c, 0, 16) {
-                      for (oo.c, 0, 16) {
-                        for (ii, 0, 16) {
-                          Conv.wmma.accumulator[((((n.c*1024) + (o.c*256)) + (nn.c*16)) + oo.c)] = (Conv.wmma.accumulator[((((n.c*1024) + (o.c*256)) + (nn.c*16)) + oo.c)] + (float32(Apad.shared.wmma.matrix_a[(((n.c*256) + (nn.c*16)) + ii)])*float32(W.shared.wmma.matrix_b[(((o.c*256) + (ii*16)) + oo.c)])))
-                        }
-                      }
+            for (n.c, 0, 2) {
+              for (o.c, 0, 4) {
+                for (nn.c, 0, 16) {
+                  for (oo.c, 0, 16) {
+                    for (ii, 0, 16) {
+                      Conv.wmma.accumulator[((((n.c*1024) + (o.c*256)) + (nn.c*16)) + oo.c)] = (Conv.wmma.accumulator[((((n.c*1024) + (o.c*256)) + (nn.c*16)) + oo.c)] + (float32(Apad.shared.wmma.matrix_a[(((n.c*256) + (nn.c*16)) + ii)])*float32(W.shared.wmma.matrix_b[(((o.c*256) + (ii*16)) + oo.c)])))
                     }
                   }
                 }
@@ -422,12 +410,12 @@ one time.
           }
         }
       }
-      for (n.inner, 0, 2) {
-        for (o.inner, 0, 4) {
-          for (nn, 0, 16) {
-            for (oo, 0, 16) {
-              Conv[(((((((((blockIdx.x*12845056) + (threadIdx.y*3211264)) + (n.inner*1605632)) + (blockIdx.z*8192)) + (blockIdx.y*2048)) + (threadIdx.z*1024)) + (o.inner*256)) + (nn*16)) + oo)] = Conv.wmma.accumulator[((((n.inner*1024) + (o.inner*256)) + (nn*16)) + oo)]
-            }
+    }
+    for (n.inner, 0, 2) {
+      for (o.inner, 0, 4) {
+        for (nn, 0, 16) {
+          for (oo, 0, 16) {
+            Conv[(((((((((blockIdx.x*12845056) + (threadIdx.y*3211264)) + (n.inner*1605632)) + (blockIdx.z*8192)) + (blockIdx.y*2048)) + (threadIdx.z*1024)) + (o.inner*256)) + (nn*16)) + oo)] = Conv.wmma.accumulator[((((n.inner*1024) + (o.inner*256)) + (nn*16)) + oo)]
           }
         }
       }
@@ -461,74 +449,62 @@ by mapping the 2D convolution to tensor intrinsics
 
  .. code-block:: none
 
-    produce Conv {
-      // attr [iter_var(blockIdx.z, , blockIdx.z)] thread_extent = 196
-      // attr [Conv.wmma.accumulator] storage_scope = "wmma.accumulator"
-      allocate Conv.wmma.accumulator[float32 * 2048]
-      // attr [Apad.shared] storage_scope = "shared"
-      allocate Apad.shared[float16 * 12288]
-      // attr [W.shared] storage_scope = "shared"
-      allocate W.shared[float16 * 12288]
-      // attr [Apad.shared.wmma.matrix_a] storage_scope = "wmma.matrix_a"
-      allocate Apad.shared.wmma.matrix_a[float16 * 512]
-      // attr [W.shared.wmma.matrix_b] storage_scope = "wmma.matrix_b"
-      allocate W.shared.wmma.matrix_b[float16 * 1024]
-      // attr [iter_var(blockIdx.x, , blockIdx.x)] thread_extent = 2
-      // attr [iter_var(blockIdx.y, , blockIdx.y)] thread_extent = 4
-      // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 4
-      // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 2
-      produce Conv.wmma.accumulator {
-        for (n.c.init, 0, 2) {
-          for (o.c.init, 0, 4) {
-            tvm_fill_fragment(Conv.wmma.accumulator, 16, 16, 16, ((n.c.init*4) + o.c.init), 0f)
+    // attr [iter_var(blockIdx.z, , blockIdx.z)] thread_extent = 196
+    // attr [Conv.wmma.accumulator] storage_scope = "wmma.accumulator"
+    allocate Conv.wmma.accumulator[float32 * 2048]
+    // attr [Apad.shared] storage_scope = "shared"
+    allocate Apad.shared[float16 * 12288]
+    // attr [W.shared] storage_scope = "shared"
+    allocate W.shared[float16 * 12288]
+    // attr [Apad.shared.wmma.matrix_a] storage_scope = "wmma.matrix_a"
+    allocate Apad.shared.wmma.matrix_a[float16 * 512]
+    // attr [W.shared.wmma.matrix_b] storage_scope = "wmma.matrix_b"
+    allocate W.shared.wmma.matrix_b[float16 * 1024]
+    // attr [iter_var(blockIdx.x, , blockIdx.x)] thread_extent = 2
+    // attr [iter_var(blockIdx.y, , blockIdx.y)] thread_extent = 4
+    // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 4
+    // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 2
+    for (n.c.init, 0, 2) {
+      for (o.c.init, 0, 4) {
+        tvm_fill_fragment(Conv.wmma.accumulator, 16, 16, 16, ((n.c.init*4) + o.c.init), 0f)
+      }
+    }
+    for (ic.outer, 0, 8) {
+      for (kh, 0, 3) {
+        for (ax2, 0, 3) {
+          for (ax3, 0, 2) {
+            for (ax4.ax5.fused.outer, 0, 8) {
+              // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 32
+              Apad.shared[((((((threadIdx.y*3072) + (threadIdx.z*1536)) + (ax2*512)) + (ax3*256)) + (ax4.ax5.fused.outer*32)) + threadIdx.x)] = tvm_if_then_else(((((1 <= (floordiv(blockIdx.z, 14) + kh)) && ((floordiv(blockIdx.z, 14) + kh) < 15)) && (1 <= (ax2 + floormod(blockIdx.z, 14)))) && ((ax2 + floormod(blockIdx.z, 14)) < 15)), A[(((((((((((blockIdx.x*6422528) + (threadIdx.y*1605632)) + (threadIdx.z*802816)) + (kh*57344)) + (blockIdx.z*4096)) + (ax2*4096)) + (ic.outer*512)) + (ax3*2 [...]
+            }
           }
         }
-        for (ic.outer, 0, 8) {
-          for (kh, 0, 3) {
-            produce Apad.shared {
-              for (ax2, 0, 3) {
-                for (ax3, 0, 2) {
-                  for (ax4.ax5.fused.outer, 0, 8) {
-                    // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 32
-                    Apad.shared[((((((threadIdx.y*3072) + (threadIdx.z*1536)) + (ax2*512)) + (ax3*256)) + (ax4.ax5.fused.outer*32)) + threadIdx.x)] = tvm_if_then_else(((((1 <= (floordiv(blockIdx.z, 14) + kh)) && ((floordiv(blockIdx.z, 14) + kh) < 15)) && (1 <= (ax2 + floormod(blockIdx.z, 14)))) && ((ax2 + floormod(blockIdx.z, 14)) < 15)), A[(((((((((((blockIdx.x*6422528) + (threadIdx.y*1605632)) + (threadIdx.z*802816)) + (kh*57344)) + (blockIdx.z*4096)) + (ax2*4096)) + (ic.outer*512)) +  [...]
-                  }
-                }
-              }
+        for (ax1, 0, 3) {
+          for (ax2, 0, 2) {
+            // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 32
+            W.shared[ramp((((((ax1*4096) + (ax2*2048)) + (threadIdx.y*512)) + (threadIdx.z*256)) + (threadIdx.x*8)), 1, 8)] = W[ramp(((((((((kh*393216) + (ax1*131072)) + (ic.outer*16384)) + (ax2*8192)) + (blockIdx.y*2048)) + (threadIdx.y*512)) + (threadIdx.z*256)) + (threadIdx.x*8)), 1, 8)]
+          }
+        }
+        for (ic.inner, 0, 2) {
+          for (kw, 0, 3) {
+            for (ax0, 0, 2) {
+              tvm_load_matrix_sync(Apad.shared.wmma.matrix_a, 16, 16, 16, ax0, tvm_access_ptr(type_annotation(), Apad.shared, ((((threadIdx.y*3072) + (ax0*1536)) + (kw*512)) + (ic.inner*256)), 256, 1), 16, "row_major")
             }
-            produce W.shared {
-              for (ax1, 0, 3) {
-                for (ax2, 0, 2) {
-                  // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 32
-                  W.shared[ramp((((((ax1*4096) + (ax2*2048)) + (threadIdx.y*512)) + (threadIdx.z*256)) + (threadIdx.x*8)), 1, 8)] = W[ramp(((((((((kh*393216) + (ax1*131072)) + (ic.outer*16384)) + (ax2*8192)) + (blockIdx.y*2048)) + (threadIdx.y*512)) + (threadIdx.z*256)) + (threadIdx.x*8)), 1, 8)]
-                }
-              }
+            for (ax3, 0, 4) {
+              tvm_load_matrix_sync(W.shared.wmma.matrix_b, 16, 16, 16, ax3, tvm_access_ptr(type_annotation(), W.shared, ((((kw*4096) + (ic.inner*2048)) + (threadIdx.z*1024)) + (ax3*256)), 256, 1), 16, "row_major")
             }
-            for (ic.inner, 0, 2) {
-              for (kw, 0, 3) {
-                produce Apad.shared.wmma.matrix_a {
-                  for (ax0, 0, 2) {
-                    tvm_load_matrix_sync(Apad.shared.wmma.matrix_a, 16, 16, 16, ax0, tvm_access_ptr(type_annotation(), Apad.shared, ((((threadIdx.y*3072) + (ax0*1536)) + (kw*512)) + (ic.inner*256)), 256, 1), 16, "row_major")
-                  }
-                }
-                produce W.shared.wmma.matrix_b {
-                  for (ax3, 0, 4) {
-                    tvm_load_matrix_sync(W.shared.wmma.matrix_b, 16, 16, 16, ax3, tvm_access_ptr(type_annotation(), W.shared, ((((kw*4096) + (ic.inner*2048)) + (threadIdx.z*1024)) + (ax3*256)), 256, 1), 16, "row_major")
-                  }
-                }
-                for (n.c, 0, 2) {
-                  for (o.c, 0, 4) {
-                    tvm_mma_sync(Conv.wmma.accumulator, ((n.c*4) + o.c), Apad.shared.wmma.matrix_a, n.c, W.shared.wmma.matrix_b, o.c, Conv.wmma.accumulator, ((n.c*4) + o.c))
-                  }
-                }
+            for (n.c, 0, 2) {
+              for (o.c, 0, 4) {
+                tvm_mma_sync(Conv.wmma.accumulator, ((n.c*4) + o.c), Apad.shared.wmma.matrix_a, n.c, W.shared.wmma.matrix_b, o.c, Conv.wmma.accumulator, ((n.c*4) + o.c))
               }
             }
           }
         }
       }
-      for (n.inner, 0, 2) {
-        for (o.inner, 0, 4) {
-          tvm_store_matrix_sync(Conv.wmma.accumulator, 16, 16, 16, ((n.inner*4) + o.inner), tvm_access_ptr(type_annotation(), Conv, (((((((blockIdx.x*12845056) + (threadIdx.y*3211264)) + (n.inner*1605632)) + (blockIdx.z*8192)) + (blockIdx.y*2048)) + (threadIdx.z*1024)) + (o.inner*256)), 256, 2), 16, "row_major")
-        }
+    }
+    for (n.inner, 0, 2) {
+      for (o.inner, 0, 4) {
+        tvm_store_matrix_sync(Conv.wmma.accumulator, 16, 16, 16, ((n.inner*4) + o.inner), tvm_access_ptr(type_annotation(), Conv, (((((((blockIdx.x*12845056) + (threadIdx.y*3211264)) + (n.inner*1605632)) + (blockIdx.z*8192)) + (blockIdx.y*2048)) + (threadIdx.z*1024)) + (o.inner*256)), 256, 2), 16, "row_major")
       }
     }
 
@@ -567,7 +543,7 @@ be able to run on our build server
 
  .. code-block:: none
 
-    conv2d with tensor core: 6.365957 ms
+    conv2d with tensor core: 6.301623 ms
 
 
 
diff --git a/docs/_sources/tutorials/optimize/opt_gemm.rst.txt b/docs/_sources/tutorials/optimize/opt_gemm.rst.txt
index cd4da59..25a430f 100644
--- a/docs/_sources/tutorials/optimize/opt_gemm.rst.txt
+++ b/docs/_sources/tutorials/optimize/opt_gemm.rst.txt
@@ -118,8 +118,8 @@ Then we write a baseline implementation, the simplest way to write a matrix mult
 
  .. code-block:: none
 
-    Numpy running time: 0.007138
-    Baseline: 5.849220
+    Numpy running time: 0.005827
+    Baseline: 5.754878
 
 
 
@@ -142,13 +142,11 @@ Here is the generated IR using our baseline schedule.
 
  .. code-block:: none
 
-    produce C {
-      for (x, 0, 1024) {
-        for (y, 0, 1024) {
-          C[((x*1024) + y)] = 0f
-          for (k, 0, 1024) {
-            C[((x*1024) + y)] = (C[((x*1024) + y)] + (A[((x*1024) + k)]*B[((k*1024) + y)]))
-          }
+    for (x, 0, 1024) {
+      for (y, 0, 1024) {
+        C[((x*1024) + y)] = 0f
+        for (k, 0, 1024) {
+          C[((x*1024) + y)] = (C[((x*1024) + y)] + (A[((x*1024) + k)]*B[((k*1024) + y)]))
         }
       }
     }
@@ -200,7 +198,7 @@ fill 32 * 32 * sizeof(float) which is 4KB in the cache whose total size is 32KB
 
  .. code-block:: none
 
-    Opt1: 0.110809
+    Opt1: 0.107895
 
 
 
@@ -222,20 +220,18 @@ Here is the generated IR after blocking.
 
  .. code-block:: none
 
-    produce C {
-      for (x.outer, 0, 32) {
-        for (y.outer, 0, 32) {
-          for (x.inner.init, 0, 32) {
-            for (y.inner.init, 0, 32) {
-              C[((((x.outer*32768) + (x.inner.init*1024)) + (y.outer*32)) + y.inner.init)] = 0f
-            }
+    for (x.outer, 0, 32) {
+      for (y.outer, 0, 32) {
+        for (x.inner.init, 0, 32) {
+          for (y.inner.init, 0, 32) {
+            C[((((x.outer*32768) + (x.inner.init*1024)) + (y.outer*32)) + y.inner.init)] = 0f
           }
-          for (k.outer, 0, 256) {
-            for (k.inner, 0, 4) {
-              for (x.inner, 0, 32) {
-                for (y.inner, 0, 32) {
-                  C[((((x.outer*32768) + (x.inner*1024)) + (y.outer*32)) + y.inner)] = (C[((((x.outer*32768) + (x.inner*1024)) + (y.outer*32)) + y.inner)] + (A[((((x.outer*32768) + (x.inner*1024)) + (k.outer*4)) + k.inner)]*B[((((k.outer*4096) + (k.inner*1024)) + (y.outer*32)) + y.inner)]))
-                }
+        }
+        for (k.outer, 0, 256) {
+          for (k.inner, 0, 4) {
+            for (x.inner, 0, 32) {
+              for (y.inner, 0, 32) {
+                C[((((x.outer*32768) + (x.inner*1024)) + (y.outer*32)) + y.inner)] = (C[((((x.outer*32768) + (x.inner*1024)) + (y.outer*32)) + y.inner)] + (A[((((x.outer*32768) + (x.inner*1024)) + (k.outer*4)) + k.inner)]*B[((((k.outer*4096) + (k.inner*1024)) + (y.outer*32)) + y.inner)]))
               }
             }
           }
@@ -288,7 +284,7 @@ In this tutorial, we chose to vectorize the inner loop row data since it is cach
 
  .. code-block:: none
 
-    Opt2: 0.118893
+    Opt2: 0.111950
 
 
 
@@ -310,17 +306,15 @@ Here is the generated IR after vectorization.
 
  .. code-block:: none
 
-    produce C {
-      for (x.outer, 0, 32) {
-        for (y.outer, 0, 32) {
-          for (x.inner.init, 0, 32) {
-            C[ramp((((x.outer*32768) + (x.inner.init*1024)) + (y.outer*32)), 1, 32)] = x32(0f)
-          }
-          for (k.outer, 0, 256) {
-            for (k.inner, 0, 4) {
-              for (x.inner, 0, 32) {
-                C[ramp((((x.outer*32768) + (x.inner*1024)) + (y.outer*32)), 1, 32)] = (C[ramp((((x.outer*32768) + (x.inner*1024)) + (y.outer*32)), 1, 32)] + (x32(A[((((x.outer*32768) + (x.inner*1024)) + (k.outer*4)) + k.inner)])*B[ramp((((k.outer*4096) + (k.inner*1024)) + (y.outer*32)), 1, 32)]))
-              }
+    for (x.outer, 0, 32) {
+      for (y.outer, 0, 32) {
+        for (x.inner.init, 0, 32) {
+          C[ramp((((x.outer*32768) + (x.inner.init*1024)) + (y.outer*32)), 1, 32)] = x32(0f)
+        }
+        for (k.outer, 0, 256) {
+          for (k.inner, 0, 4) {
+            for (x.inner, 0, 32) {
+              C[ramp((((x.outer*32768) + (x.inner*1024)) + (y.outer*32)), 1, 32)] = (C[ramp((((x.outer*32768) + (x.inner*1024)) + (y.outer*32)), 1, 32)] + (x32(A[((((x.outer*32768) + (x.inner*1024)) + (k.outer*4)) + k.inner)])*B[ramp((((k.outer*4096) + (k.inner*1024)) + (y.outer*32)), 1, 32)]))
             }
           }
         }
@@ -371,7 +365,7 @@ the access pattern for A matrix is more cache friendly.
 
  .. code-block:: none
 
-    Opt3: 0.059414
+    Opt3: 0.060003
 
 
 
@@ -393,17 +387,15 @@ Here is the generated IR after loop permutation.
 
  .. code-block:: none
 
-    produce C {
-      for (x.outer, 0, 32) {
-        for (y.outer, 0, 32) {
-          for (x.inner.init, 0, 32) {
-            C[ramp((((x.outer*32768) + (x.inner.init*1024)) + (y.outer*32)), 1, 32)] = x32(0f)
-          }
-          for (k.outer, 0, 256) {
-            for (x.inner, 0, 32) {
-              for (k.inner, 0, 4) {
-                C[ramp((((x.outer*32768) + (x.inner*1024)) + (y.outer*32)), 1, 32)] = (C[ramp((((x.outer*32768) + (x.inner*1024)) + (y.outer*32)), 1, 32)] + (x32(A[((((x.outer*32768) + (x.inner*1024)) + (k.outer*4)) + k.inner)])*B[ramp((((k.outer*4096) + (k.inner*1024)) + (y.outer*32)), 1, 32)]))
-              }
+    for (x.outer, 0, 32) {
+      for (y.outer, 0, 32) {
+        for (x.inner.init, 0, 32) {
+          C[ramp((((x.outer*32768) + (x.inner.init*1024)) + (y.outer*32)), 1, 32)] = x32(0f)
+        }
+        for (k.outer, 0, 256) {
+          for (x.inner, 0, 32) {
+            for (k.inner, 0, 4) {
+              C[ramp((((x.outer*32768) + (x.inner*1024)) + (y.outer*32)), 1, 32)] = (C[ramp((((x.outer*32768) + (x.inner*1024)) + (y.outer*32)), 1, 32)] + (x32(A[((((x.outer*32768) + (x.inner*1024)) + (k.outer*4)) + k.inner)])*B[ramp((((k.outer*4096) + (k.inner*1024)) + (y.outer*32)), 1, 32)]))
             }
           }
         }
@@ -473,7 +465,7 @@ the corresponding value from the packed array.
 
  .. code-block:: none
 
-    Opt4: 0.064715
+    Opt4: 0.060794
 
 
 
@@ -497,24 +489,20 @@ Here is the generated IR after array packing.
 
     // attr [packedB] storage_scope = "global"
     allocate packedB[float32x32 * 32768]
-    produce packedB {
-      parallel (x, 0, 32) {
-        for (y, 0, 1024) {
-          packedB[ramp(((x*32768) + (y*32)), 1, 32)] = B[ramp(((y*1024) + (x*32)), 1, 32)]
-        }
+    parallel (x, 0, 32) {
+      for (y, 0, 1024) {
+        packedB[ramp(((x*32768) + (y*32)), 1, 32)] = B[ramp(((y*1024) + (x*32)), 1, 32)]
       }
     }
-    produce C {
-      for (x.outer, 0, 32) {
-        for (y.outer, 0, 32) {
-          for (x.inner.init, 0, 32) {
-            C[ramp((((x.outer*32768) + (x.inner.init*1024)) + (y.outer*32)), 1, 32)] = x32(0f)
-          }
-          for (k.outer, 0, 256) {
-            for (x.inner, 0, 32) {
-              for (k.inner, 0, 4) {
-                C[ramp((((x.outer*32768) + (x.inner*1024)) + (y.outer*32)), 1, 32)] = (C[ramp((((x.outer*32768) + (x.inner*1024)) + (y.outer*32)), 1, 32)] + (x32(A[((((x.outer*32768) + (x.inner*1024)) + (k.outer*4)) + k.inner)])*packedB[ramp((((y.outer*32768) + (k.outer*128)) + (k.inner*32)), 1, 32)]))
-              }
+    for (x.outer, 0, 32) {
+      for (y.outer, 0, 32) {
+        for (x.inner.init, 0, 32) {
+          C[ramp((((x.outer*32768) + (x.inner.init*1024)) + (y.outer*32)), 1, 32)] = x32(0f)
+        }
+        for (k.outer, 0, 256) {
+          for (x.inner, 0, 32) {
+            for (k.inner, 0, 4) {
+              C[ramp((((x.outer*32768) + (x.inner*1024)) + (y.outer*32)), 1, 32)] = (C[ramp((((x.outer*32768) + (x.inner*1024)) + (y.outer*32)), 1, 32)] + (x32(A[((((x.outer*32768) + (x.inner*1024)) + (k.outer*4)) + k.inner)])*packedB[ramp((((y.outer*32768) + (k.outer*128)) + (k.inner*32)), 1, 32)]))
             }
           }
         }
@@ -578,7 +566,7 @@ write to C when all the block results are ready.
 
  .. code-block:: none
 
-    Opt5: 0.089912
+    Opt5: 0.060997
 
 
 
@@ -604,33 +592,27 @@ Here is the generated IR after blocking.
     allocate packedB[float32x32 * 32768]
     // attr [C.global] storage_scope = "global"
     allocate C.global[float32 * 1024]
-    produce packedB {
-      parallel (x, 0, 32) {
-        for (y, 0, 1024) {
-          packedB[ramp(((x*32768) + (y*32)), 1, 32)] = B[ramp(((y*1024) + (x*32)), 1, 32)]
-        }
+    parallel (x, 0, 32) {
+      for (y, 0, 1024) {
+        packedB[ramp(((x*32768) + (y*32)), 1, 32)] = B[ramp(((y*1024) + (x*32)), 1, 32)]
       }
     }
-    produce C {
-      for (x.outer, 0, 32) {
-        for (y.outer, 0, 32) {
-          produce C.global {
-            for (x.c.init, 0, 32) {
-              C.global[ramp((x.c.init*32), 1, 32)] = x32(0f)
-            }
-            for (k.outer, 0, 256) {
-              for (x.c, 0, 32) {
-                C.global[ramp((x.c*32), 1, 32)] = (C.global[ramp((x.c*32), 1, 32)] + (x32(A[(((x.outer*32768) + (x.c*1024)) + (k.outer*4))])*packedB[ramp(((y.outer*32768) + (k.outer*128)), 1, 32)]))
-                C.global[ramp((x.c*32), 1, 32)] = (C.global[ramp((x.c*32), 1, 32)] + (x32(A[((((x.outer*32768) + (x.c*1024)) + (k.outer*4)) + 1)])*packedB[ramp((((y.outer*32768) + (k.outer*128)) + 32), 1, 32)]))
-                C.global[ramp((x.c*32), 1, 32)] = (C.global[ramp((x.c*32), 1, 32)] + (x32(A[((((x.outer*32768) + (x.c*1024)) + (k.outer*4)) + 2)])*packedB[ramp((((y.outer*32768) + (k.outer*128)) + 64), 1, 32)]))
-                C.global[ramp((x.c*32), 1, 32)] = (C.global[ramp((x.c*32), 1, 32)] + (x32(A[((((x.outer*32768) + (x.c*1024)) + (k.outer*4)) + 3)])*packedB[ramp((((y.outer*32768) + (k.outer*128)) + 96), 1, 32)]))
-              }
-            }
+    for (x.outer, 0, 32) {
+      for (y.outer, 0, 32) {
+        for (x.c.init, 0, 32) {
+          C.global[ramp((x.c.init*32), 1, 32)] = x32(0f)
+        }
+        for (k.outer, 0, 256) {
+          for (x.c, 0, 32) {
+            C.global[ramp((x.c*32), 1, 32)] = (C.global[ramp((x.c*32), 1, 32)] + (x32(A[(((x.outer*32768) + (x.c*1024)) + (k.outer*4))])*packedB[ramp(((y.outer*32768) + (k.outer*128)), 1, 32)]))
+            C.global[ramp((x.c*32), 1, 32)] = (C.global[ramp((x.c*32), 1, 32)] + (x32(A[((((x.outer*32768) + (x.c*1024)) + (k.outer*4)) + 1)])*packedB[ramp((((y.outer*32768) + (k.outer*128)) + 32), 1, 32)]))
+            C.global[ramp((x.c*32), 1, 32)] = (C.global[ramp((x.c*32), 1, 32)] + (x32(A[((((x.outer*32768) + (x.c*1024)) + (k.outer*4)) + 2)])*packedB[ramp((((y.outer*32768) + (k.outer*128)) + 64), 1, 32)]))
+            C.global[ramp((x.c*32), 1, 32)] = (C.global[ramp((x.c*32), 1, 32)] + (x32(A[((((x.outer*32768) + (x.c*1024)) + (k.outer*4)) + 3)])*packedB[ramp((((y.outer*32768) + (k.outer*128)) + 96), 1, 32)]))
           }
-          for (x.inner, 0, 32) {
-            for (y.inner, 0, 32) {
-              C[((((x.outer*32768) + (x.inner*1024)) + (y.outer*32)) + y.inner)] = C.global[((x.inner*32) + y.inner)]
-            }
+        }
+        for (x.inner, 0, 32) {
+          for (y.inner, 0, 32) {
+            C[((((x.outer*32768) + (x.inner*1024)) + (y.outer*32)) + y.inner)] = C.global[((x.inner*32) + y.inner)]
           }
         }
       }
@@ -691,7 +673,7 @@ Futhermore, we can also utilize multi-core processors to do the thread-level par
 
  .. code-block:: none
 
-    Opt6: 0.016163
+    Opt6: 0.008228
 
 
 
@@ -715,35 +697,29 @@ Here is the generated IR after parallelization.
 
     // attr [packedB] storage_scope = "global"
     allocate packedB[float32x32 * 32768]
-    produce packedB {
-      parallel (x, 0, 32) {
-        for (y, 0, 1024) {
-          packedB[ramp(((x*32768) + (y*32)), 1, 32)] = B[ramp(((y*1024) + (x*32)), 1, 32)]
-        }
+    parallel (x, 0, 32) {
+      for (y, 0, 1024) {
+        packedB[ramp(((x*32768) + (y*32)), 1, 32)] = B[ramp(((y*1024) + (x*32)), 1, 32)]
       }
     }
-    produce C {
-      parallel (x.outer, 0, 32) {
-        // attr [C.global] storage_scope = "global"
-        allocate C.global[float32 * 1024]
-        for (y.outer, 0, 32) {
-          produce C.global {
-            for (x.c.init, 0, 32) {
-              C.global[ramp((x.c.init*32), 1, 32)] = x32(0f)
-            }
-            for (k.outer, 0, 256) {
-              for (x.c, 0, 32) {
-                C.global[ramp((x.c*32), 1, 32)] = (C.global[ramp((x.c*32), 1, 32)] + (x32(A[(((x.outer*32768) + (x.c*1024)) + (k.outer*4))])*packedB[ramp(((y.outer*32768) + (k.outer*128)), 1, 32)]))
-                C.global[ramp((x.c*32), 1, 32)] = (C.global[ramp((x.c*32), 1, 32)] + (x32(A[((((x.outer*32768) + (x.c*1024)) + (k.outer*4)) + 1)])*packedB[ramp((((y.outer*32768) + (k.outer*128)) + 32), 1, 32)]))
-                C.global[ramp((x.c*32), 1, 32)] = (C.global[ramp((x.c*32), 1, 32)] + (x32(A[((((x.outer*32768) + (x.c*1024)) + (k.outer*4)) + 2)])*packedB[ramp((((y.outer*32768) + (k.outer*128)) + 64), 1, 32)]))
-                C.global[ramp((x.c*32), 1, 32)] = (C.global[ramp((x.c*32), 1, 32)] + (x32(A[((((x.outer*32768) + (x.c*1024)) + (k.outer*4)) + 3)])*packedB[ramp((((y.outer*32768) + (k.outer*128)) + 96), 1, 32)]))
-              }
-            }
+    parallel (x.outer, 0, 32) {
+      // attr [C.global] storage_scope = "global"
+      allocate C.global[float32 * 1024]
+      for (y.outer, 0, 32) {
+        for (x.c.init, 0, 32) {
+          C.global[ramp((x.c.init*32), 1, 32)] = x32(0f)
+        }
+        for (k.outer, 0, 256) {
+          for (x.c, 0, 32) {
+            C.global[ramp((x.c*32), 1, 32)] = (C.global[ramp((x.c*32), 1, 32)] + (x32(A[(((x.outer*32768) + (x.c*1024)) + (k.outer*4))])*packedB[ramp(((y.outer*32768) + (k.outer*128)), 1, 32)]))
+            C.global[ramp((x.c*32), 1, 32)] = (C.global[ramp((x.c*32), 1, 32)] + (x32(A[((((x.outer*32768) + (x.c*1024)) + (k.outer*4)) + 1)])*packedB[ramp((((y.outer*32768) + (k.outer*128)) + 32), 1, 32)]))
+            C.global[ramp((x.c*32), 1, 32)] = (C.global[ramp((x.c*32), 1, 32)] + (x32(A[((((x.outer*32768) + (x.c*1024)) + (k.outer*4)) + 2)])*packedB[ramp((((y.outer*32768) + (k.outer*128)) + 64), 1, 32)]))
+            C.global[ramp((x.c*32), 1, 32)] = (C.global[ramp((x.c*32), 1, 32)] + (x32(A[((((x.outer*32768) + (x.c*1024)) + (k.outer*4)) + 3)])*packedB[ramp((((y.outer*32768) + (k.outer*128)) + 96), 1, 32)]))
           }
-          for (x.inner, 0, 32) {
-            for (y.inner, 0, 32) {
-              C[((((x.outer*32768) + (x.inner*1024)) + (y.outer*32)) + y.inner)] = C.global[((x.inner*32) + y.inner)]
-            }
+        }
+        for (x.inner, 0, 32) {
+          for (y.inner, 0, 32) {
+            C[((((x.outer*32768) + (x.inner*1024)) + (y.outer*32)) + y.inner)] = C.global[((x.inner*32) + y.inner)]
           }
         }
       }
diff --git a/docs/_sources/tutorials/optimize/sg_execution_times.rst.txt b/docs/_sources/tutorials/optimize/sg_execution_times.rst.txt
index a530b56..736dde1 100644
--- a/docs/_sources/tutorials/optimize/sg_execution_times.rst.txt
+++ b/docs/_sources/tutorials/optimize/sg_execution_times.rst.txt
@@ -5,9 +5,9 @@
 
 Computation times
 =================
-**00:27.034** total execution time for **tutorials_optimize** files:
+**00:25.623** total execution time for **tutorials_optimize** files:
 
-- **00:25.258**: :ref:`sphx_glr_tutorials_optimize_opt_gemm.py` (``opt_gemm.py``)
-- **00:00.929**: :ref:`sphx_glr_tutorials_optimize_opt_conv_tensorcore.py` (``opt_conv_tensorcore.py``)
-- **00:00.695**: :ref:`sphx_glr_tutorials_optimize_opt_conv_cuda.py` (``opt_conv_cuda.py``)
+- **00:23.853**: :ref:`sphx_glr_tutorials_optimize_opt_gemm.py` (``opt_gemm.py``)
+- **00:00.912**: :ref:`sphx_glr_tutorials_optimize_opt_conv_tensorcore.py` (``opt_conv_tensorcore.py``)
+- **00:00.705**: :ref:`sphx_glr_tutorials_optimize_opt_conv_cuda.py` (``opt_conv_cuda.py``)
 - **00:00.153**: :ref:`sphx_glr_tutorials_optimize_opt_matmul_auto_tensorcore.py` (``opt_matmul_auto_tensorcore.py``)
diff --git a/docs/_sources/tutorials/relay_quick_start.rst.txt b/docs/_sources/tutorials/relay_quick_start.rst.txt
index c844ff7..f5d4ad3 100644
--- a/docs/_sources/tutorials/relay_quick_start.rst.txt
+++ b/docs/_sources/tutorials/relay_quick_start.rst.txt
@@ -223,7 +223,7 @@ in this example. Then the machine code will be generated as the module library.
 
  .. code-block:: none
 
-
    ...1%, 0.01 MB, 48 KB/s, 0 seconds passed
    ...3%, 0.02 MB, 97 KB/s, 0 seconds passed
    ...5%, 0.02 MB, 145 KB/s, 0 seconds passed
    ...7%, 0.03 MB, 192 KB/s, 0 seconds passed
    ...9%, 0.04 MB, 240 KB/s, 0 seconds passed
    ...11%, 0.05 MB, 288 KB/s, 0 seconds passed
    ...13%, 0.05 MB, 335 KB/s, 0 seconds passed
    ...15%, 0.06 MB, 381 KB/s, 0 seconds passed
    ...17%, 0.07 MB, 429 KB/s, 0 seconds passed
    ...19%, 0.08 MB, 474 KB/s, 0 seconds passed
    ...21%, 0.09 MB, 521 KB/s, 0 seconds passed
    ...23%, 0.09 MB, 568 KB/s, 0 seconds passed
    ...25%, 0.10 MB, 615 KB/s, 0 seconds passed
    ...27%, 0.11 MB, 659 KB/s, 0 seconds passed
    ...29%, 0.12 MB, 705 KB/s, 0 seconds passed
    ...31%, 0.12 MB, 751 KB/s, 0 seconds passed
    ...33%, 0.13 MB, 798 KB/s, 0 seconds passed
    ...35%, 0.14 MB, 842 KB/s, 0 seconds passed
    ...37%, 0.15 MB, 889 KB/s, 0 seconds passed
    ...39%, 0.16 MB, 932 KB/s, 0 seconds passed
    ...41%, 0.16 MB, 978 KB/s, 0 seconds pa
 ssed
    ...43%, 0.17 MB, 1023 KB/s, 0 seconds passed
    ...45%, 0.18 MB, 1069 KB/s, 0 seconds passed
    ...47%, 0.19 MB, 1112 KB/s, 0 seconds passed
    ...49%, 0.20 MB, 1158 KB/s, 0 seconds passed
    ...51%, 0.20 MB, 1203 KB/s, 0 seconds passed
    ...53%, 0.21 MB, 1248 KB/s, 0 seconds passed
    ...55%, 0.22 MB, 1290 KB/s, 0 seconds passed
    ...57%, 0.23 MB, 1335 KB/s, 0 seconds passed
    ...59%, 0.23 MB, 1379 KB/s, 0 seconds passed
    ...61%, 0.24 MB, 1424 KB/s, 0 seconds passed
    ...63%, 0.25 MB, 1466 KB/s, 0 seconds passed
    ...65%, 0.26 MB, 1511 KB/s, 0 seconds passed
    ...67%, 0.27 MB, 1554 KB/s, 0 seconds passed
    ...69%, 0.27 MB, 1599 KB/s, 0 seconds passed
    ...71%, 0.28 MB, 1640 KB/s, 0 seconds passed
    ...73%, 0.29 MB, 1684 KB/s, 0 seconds passed
    ...75%, 0.30 MB, 1729 KB/s, 0 seconds passed
    ...77%, 0.30 MB, 1773 KB/s, 0 seconds passed
    ...79%, 0.31 MB, 1817 KB/s, 0 seconds passed
    ...81%, 0.32 MB, 1861 KB/s, 0 seconds passed
    ...83%, 
 0.33 MB, 1902 KB/s, 0 seconds passed
    ...85%, 0.34 MB, 1946 KB/s, 0 seconds passed
    ...87%, 0.34 MB, 1986 KB/s, 0 seconds passed
    ...89%, 0.35 MB, 2030 KB/s, 0 seconds passed
    ...91%, 0.36 MB, 2074 KB/s, 0 seconds passed
    ...93%, 0.37 MB, 2118 KB/s, 0 seconds passed
    ...95%, 0.38 MB, 2160 KB/s, 0 seconds passed
    ...97%, 0.38 MB, 2204 KB/s, 0 seconds passed
    ...99%, 0.39 MB, 2248 KB/s, 0 seconds passed
    ...100%, 0.40 MB, 2291 KB/s, 0 seconds passed
+
    ...1%, 0.01 MB, 52 KB/s, 0 seconds passed
    ...3%, 0.02 MB, 104 KB/s, 0 seconds passed
    ...5%, 0.02 MB, 156 KB/s, 0 seconds passed
    ...7%, 0.03 MB, 207 KB/s, 0 seconds passed
    ...9%, 0.04 MB, 259 KB/s, 0 seconds passed
    ...11%, 0.05 MB, 310 KB/s, 0 seconds passed
    ...13%, 0.05 MB, 362 KB/s, 0 seconds passed
    ...15%, 0.06 MB, 411 KB/s, 0 seconds passed
    ...17%, 0.07 MB, 462 KB/s, 0 seconds passed
    ...19%, 0.08 MB, 513 KB/s, 0 seconds passed
    ...21%, 0.09 MB, 564 KB/s, 0 seconds passed
    ...23%, 0.09 MB, 613 KB/s, 0 seconds passed
    ...25%, 0.10 MB, 664 KB/s, 0 seconds passed
    ...27%, 0.11 MB, 711 KB/s, 0 seconds passed
    ...29%, 0.12 MB, 762 KB/s, 0 seconds passed
    ...31%, 0.12 MB, 810 KB/s, 0 seconds passed
    ...33%, 0.13 MB, 860 KB/s, 0 seconds passed
    ...35%, 0.14 MB, 908 KB/s, 0 seconds passed
    ...37%, 0.15 MB, 958 KB/s, 0 seconds passed
    ...39%, 0.16 MB, 1007 KB/s, 0 seconds passed
    ...41%, 0.16 MB, 1056 KB/s, 0 seconds
  passed
    ...43%, 0.17 MB, 1103 KB/s, 0 seconds passed
    ...45%, 0.18 MB, 1152 KB/s, 0 seconds passed
    ...47%, 0.19 MB, 1200 KB/s, 0 seconds passed
    ...49%, 0.20 MB, 1250 KB/s, 0 seconds passed
    ...51%, 0.20 MB, 1296 KB/s, 0 seconds passed
    ...53%, 0.21 MB, 1345 KB/s, 0 seconds passed
    ...55%, 0.22 MB, 1392 KB/s, 0 seconds passed
    ...57%, 0.23 MB, 1441 KB/s, 0 seconds passed
    ...59%, 0.23 MB, 1487 KB/s, 0 seconds passed
    ...61%, 0.24 MB, 1536 KB/s, 0 seconds passed
    ...63%, 0.25 MB, 1581 KB/s, 0 seconds passed
    ...65%, 0.26 MB, 1630 KB/s, 0 seconds passed
    ...67%, 0.27 MB, 1676 KB/s, 0 seconds passed
    ...69%, 0.27 MB, 1724 KB/s, 0 seconds passed
    ...71%, 0.28 MB, 1768 KB/s, 0 seconds passed
    ...73%, 0.29 MB, 1816 KB/s, 0 seconds passed
    ...75%, 0.30 MB, 1858 KB/s, 0 seconds passed
    ...77%, 0.30 MB, 1906 KB/s, 0 seconds passed
    ...79%, 0.31 MB, 1954 KB/s, 0 seconds passed
    ...81%, 0.32 MB, 2001 KB/s, 0 seconds passed
    ...83
 %, 0.33 MB, 2049 KB/s, 0 seconds passed
    ...85%, 0.34 MB, 2096 KB/s, 0 seconds passed
    ...87%, 0.34 MB, 2139 KB/s, 0 seconds passed
    ...89%, 0.35 MB, 2187 KB/s, 0 seconds passed
    ...91%, 0.36 MB, 2234 KB/s, 0 seconds passed
    ...93%, 0.37 MB, 2281 KB/s, 0 seconds passed
    ...95%, 0.38 MB, 2326 KB/s, 0 seconds passed
    ...97%, 0.38 MB, 2373 KB/s, 0 seconds passed
    ...99%, 0.39 MB, 2417 KB/s, 0 seconds passed
    ...100%, 0.40 MB, 2463 KB/s, 0 seconds passed
     Cannot find config for target=cuda -model=unknown, workload=('conv2d_nchw.cuda', ('TENSOR', (1, 64, 56, 56), 'float32'), ('TENSOR', (64, 64, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'float32'). A fallback configuration is used, which may bring great performance regression.
     Cannot find config for target=cuda -model=unknown, workload=('conv2d_nchw.cuda', ('TENSOR', (1, 128, 28, 28), 'float32'), ('TENSOR', (128, 128, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'float32'). A fallback configuration is used, which may bring great performance regression.
     Cannot find config for target=cuda -model=unknown, workload=('conv2d_nchw.cuda', ('TENSOR', (1, 256, 14, 14), 'float32'), ('TENSOR', (256, 256, 3, 3), 'float32'), (1, 1), (1, 1, 1, 1), (1, 1), 'float32'). A fallback configuration is used, which may bring great performance regression.
diff --git a/docs/_sources/tutorials/sg_execution_times.rst.txt b/docs/_sources/tutorials/sg_execution_times.rst.txt
index 2703f7d..54c3666 100644
--- a/docs/_sources/tutorials/sg_execution_times.rst.txt
+++ b/docs/_sources/tutorials/sg_execution_times.rst.txt
@@ -5,8 +5,8 @@
 
 Computation times
 =================
-**00:09.090** total execution time for **tutorials** files:
+**00:09.413** total execution time for **tutorials** files:
 
-- **00:08.641**: :ref:`sphx_glr_tutorials_relay_quick_start.py` (``relay_quick_start.py``)
-- **00:00.317**: :ref:`sphx_glr_tutorials_tensor_expr_get_started.py` (``tensor_expr_get_started.py``)
-- **00:00.131**: :ref:`sphx_glr_tutorials_cross_compilation_and_rpc.py` (``cross_compilation_and_rpc.py``)
+- **00:08.906**: :ref:`sphx_glr_tutorials_relay_quick_start.py` (``relay_quick_start.py``)
+- **00:00.354**: :ref:`sphx_glr_tutorials_tensor_expr_get_started.py` (``tensor_expr_get_started.py``)
+- **00:00.154**: :ref:`sphx_glr_tutorials_cross_compilation_and_rpc.py` (``cross_compilation_and_rpc.py``)
diff --git a/docs/_sources/tutorials/topi/intro_topi.rst.txt b/docs/_sources/tutorials/topi/intro_topi.rst.txt
index 09415ba..76e6d29 100644
--- a/docs/_sources/tutorials/topi/intro_topi.rst.txt
+++ b/docs/_sources/tutorials/topi/intro_topi.rst.txt
@@ -74,12 +74,10 @@ and to examine the IR code in human readable format, we can do
 
     // attr [B] storage_scope = "global"
     allocate B[float32 * n]
-    produce B {
-      for (i, 0, n) {
-        B[i] = 0f
-        for (k, 0, m) {
-          B[i] = (B[i] + A[((i*stride) + (k*stride))])
-        }
+    for (i, 0, n) {
+      B[i] = 0f
+      for (k, 0, m) {
+        B[i] = (B[i] + A[((i*stride) + (k*stride))])
       }
     }
 
@@ -110,12 +108,10 @@ Fortunately, we can replace those two lines with simple :code:`topi.sum` much li
 
     // attr [A_red] storage_scope = "global"
     allocate A_red[float32 * n]
-    produce A_red {
-      for (ax0, 0, n) {
-        A_red[ax0] = 0f
-        for (k1, 0, m) {
-          A_red[ax0] = (A_red[ax0] + A[((ax0*stride) + (k1*stride))])
-        }
+    for (ax0, 0, n) {
+      A_red[ax0] = 0f
+      for (k1, 0, m) {
+        A_red[ax0] = (A_red[ax0] + A[((ax0*stride) + (k1*stride))])
       }
     }
 
@@ -176,26 +172,22 @@ we can schedule the following series of operations ending with :code:`topi.sum`
 
     // attr [T_divide_red] storage_scope = "global"
     allocate T_divide_red[float32 * 1]
-    produce T_divide_red {
-      // attr [iter_var(threadIdx.x, range(min=0, ext=1024), threadIdx.x)] thread_extent = 1024
-      // attr [T_divide_red.rf] storage_scope = "local"
-      allocate T_divide_red.rf[float32 * 1]
-      // attr [reduce_temp0] storage_scope = "local"
-      allocate reduce_temp0[float32 * 1]
-      produce T_divide_red.rf {
-        T_divide_red.rf[0] = 0f
-        for (k0.k1.fused.k2.fused.outer, 0, 10) {
-          if (likely((((((k0.k1.fused.k2.fused.outer*1024) + threadIdx.x) < 10000) && (((k0.k1.fused.k2.fused.outer*1024) + threadIdx.x) < 10000)) && (((k0.k1.fused.k2.fused.outer*1024) + threadIdx.x) < 10000)))) {
-            T_divide_red.rf[0] = (T_divide_red.rf[0] + (((a[((k0.k1.fused.k2.fused.outer*1024) + threadIdx.x)] + b[floormod(((k0.k1.fused.k2.fused.outer*1024) + threadIdx.x), 100)]) + (a[((k0.k1.fused.k2.fused.outer*1024) + threadIdx.x)]*b[floormod(((k0.k1.fused.k2.fused.outer*1024) + threadIdx.x), 100)]))*0.5f))
-          }
-        }
-      }
-      // attr [comm_reducer(result=[(x + y)], lhs=[x], rhs=[y], identity_element=[0f])] reduce_scope = reinterpret((uint64)0)
-      tvm_thread_allreduce((uint32)1, T_divide_red.rf[0], (bool)1, reduce_temp0, threadIdx.x)
-      if ((threadIdx.x == 0)) {
-        T_divide_red[0] = reduce_temp0[0]
+    // attr [iter_var(threadIdx.x, range(min=0, ext=1024), threadIdx.x)] thread_extent = 1024
+    // attr [T_divide_red.rf] storage_scope = "local"
+    allocate T_divide_red.rf[float32 * 1]
+    // attr [reduce_temp0] storage_scope = "local"
+    allocate reduce_temp0[float32 * 1]
+    T_divide_red.rf[0] = 0f
+    for (k0.k1.fused.k2.fused.outer, 0, 10) {
+      if (likely((((((k0.k1.fused.k2.fused.outer*1024) + threadIdx.x) < 10000) && (((k0.k1.fused.k2.fused.outer*1024) + threadIdx.x) < 10000)) && (((k0.k1.fused.k2.fused.outer*1024) + threadIdx.x) < 10000)))) {
+        T_divide_red.rf[0] = (T_divide_red.rf[0] + (((a[((k0.k1.fused.k2.fused.outer*1024) + threadIdx.x)] + b[floormod(((k0.k1.fused.k2.fused.outer*1024) + threadIdx.x), 100)]) + (a[((k0.k1.fused.k2.fused.outer*1024) + threadIdx.x)]*b[floormod(((k0.k1.fused.k2.fused.outer*1024) + threadIdx.x), 100)]))*0.5f))
       }
     }
+    // attr [comm_reducer(result=[(x + y)], lhs=[x], rhs=[y], identity_element=[0f])] reduce_scope = reinterpret((uint64)0)
+    tvm_thread_allreduce((uint32)1, T_divide_red.rf[0], (bool)1, reduce_temp0, threadIdx.x)
+    if ((threadIdx.x == 0)) {
+      T_divide_red[0] = reduce_temp0[0]
+    }
 
 
 
@@ -218,7 +210,7 @@ As you can see, scheduled stages of computation have been accumulated and we can
 
  .. code-block:: none
 
-    [stage(a, 0xeee0bd10), stage(b, 0x1020aa6b0), stage(T_add, 0x66ac0fb0), stage(T_multiply, 0x101f8e9c0), stage(T_elemwise_sum, 0x113a344d0), stage(T_divide, 0x101f89a50), stage(T_divide_red.rf, 0x102442390), stage(T_divide_red, 0x1020b1460)]
+    [stage(a, 0x11b9187f0), stage(b, 0x11b7670d0), stage(T_add, 0x11b7baf30), stage(T_multiply, 0x1081b3010), stage(T_elemwise_sum, 0x11a19aab0), stage(T_divide, 0x11b78c420), stage(T_divide_red.rf, 0x117ddf470), stage(T_divide_red, 0x11b919310)]
 
 
 
@@ -271,44 +263,34 @@ TOPI also provides common neural nets operations such as _softmax_ with optimize
     allocate T_softmax_maxelem[float32 * 512]
     // attr [T_softmax_exp] storage_scope = "global"
     allocate T_softmax_exp[float32 * 262144]
-    produce T_softmax_maxelem {
-      // attr [iter_var(blockIdx.x, , blockIdx.x)] thread_extent = 512
-      T_softmax_maxelem[blockIdx.x] = -3.40282e+38f
-      for (k, 0, 512) {
-        T_softmax_maxelem[blockIdx.x] = max(T_softmax_maxelem[blockIdx.x], tarray[((blockIdx.x*512) + k)])
-      }
+    // attr [iter_var(blockIdx.x, , blockIdx.x)] thread_extent = 512
+    T_softmax_maxelem[blockIdx.x] = -3.40282e+38f
+    for (k, 0, 512) {
+      T_softmax_maxelem[blockIdx.x] = max(T_softmax_maxelem[blockIdx.x], tarray[((blockIdx.x*512) + k)])
     }
-    produce T_softmax_exp {
-      // attr [iter_var(blockIdx.x, , blockIdx.x)] thread_extent = 512
-      for (i1, 0, 512) {
-        T_softmax_exp[((blockIdx.x*512) + i1)] = exp((tarray[((blockIdx.x*512) + i1)] - T_softmax_maxelem[blockIdx.x]))
-      }
+    // attr [iter_var(blockIdx.x, , blockIdx.x)] thread_extent = 512
+    for (i1, 0, 512) {
+      T_softmax_exp[((blockIdx.x*512) + i1)] = exp((tarray[((blockIdx.x*512) + i1)] - T_softmax_maxelem[blockIdx.x]))
     }
-    produce T_softmax_expsum {
-      // attr [iter_var(blockIdx.x, , blockIdx.x)] thread_extent = 512
-      // attr [T_softmax_expsum.rf] storage_scope = "local"
-      allocate T_softmax_expsum.rf[float32 * 1]
-      // attr [reduce_temp0] storage_scope = "local"
-      allocate reduce_temp0[float32 * 1]
-      // attr [iter_var(threadIdx.x, range(min=0, ext=64), threadIdx.x)] thread_extent = 64
-      produce T_softmax_expsum.rf {
-        T_softmax_expsum.rf[0] = 0f
-        for (k.outer, 0, 8) {
-          T_softmax_expsum.rf[0] = (T_softmax_expsum.rf[0] + T_softmax_exp[(((blockIdx.x*512) + (k.outer*64)) + threadIdx.x)])
-        }
-      }
-      // attr [comm_reducer(result=[(x + y)], lhs=[x], rhs=[y], identity_element=[0f])] reduce_scope = reinterpret((uint64)0)
-      tvm_thread_allreduce((uint32)1, T_softmax_expsum.rf[0], (bool)1, reduce_temp0, threadIdx.x)
-      if ((threadIdx.x == 0)) {
-        T_softmax_maxelem[blockIdx.x] = reduce_temp0[0]
-      }
+    // attr [iter_var(blockIdx.x, , blockIdx.x)] thread_extent = 512
+    // attr [T_softmax_expsum.rf] storage_scope = "local"
+    allocate T_softmax_expsum.rf[float32 * 1]
+    // attr [reduce_temp0] storage_scope = "local"
+    allocate reduce_temp0[float32 * 1]
+    // attr [iter_var(threadIdx.x, range(min=0, ext=64), threadIdx.x)] thread_extent = 64
+    T_softmax_expsum.rf[0] = 0f
+    for (k.outer, 0, 8) {
+      T_softmax_expsum.rf[0] = (T_softmax_expsum.rf[0] + T_softmax_exp[(((blockIdx.x*512) + (k.outer*64)) + threadIdx.x)])
     }
-    produce T_softmax_norm {
-      // attr [iter_var(blockIdx.x, , blockIdx.x)] thread_extent = 512
-      // attr [iter_var(threadIdx.x, range(min=0, ext=64), threadIdx.x)] thread_extent = 64
-      for (i1.inner, 0, 8) {
-        T_softmax_exp[(((blockIdx.x*512) + (threadIdx.x*8)) + i1.inner)] = (T_softmax_exp[(((blockIdx.x*512) + (threadIdx.x*8)) + i1.inner)]/T_softmax_maxelem[blockIdx.x])
-      }
+    // attr [comm_reducer(result=[(x + y)], lhs=[x], rhs=[y], identity_element=[0f])] reduce_scope = reinterpret((uint64)0)
+    tvm_thread_allreduce((uint32)1, T_softmax_expsum.rf[0], (bool)1, reduce_temp0, threadIdx.x)
+    if ((threadIdx.x == 0)) {
+      T_softmax_maxelem[blockIdx.x] = reduce_temp0[0]
+    }
+    // attr [iter_var(blockIdx.x, , blockIdx.x)] thread_extent = 512
+    // attr [iter_var(threadIdx.x, range(min=0, ext=64), threadIdx.x)] thread_extent = 64
+    for (i1.inner, 0, 8) {
+      T_softmax_exp[(((blockIdx.x*512) + (threadIdx.x*8)) + i1.inner)] = (T_softmax_exp[(((blockIdx.x*512) + (threadIdx.x*8)) + i1.inner)]/T_softmax_maxelem[blockIdx.x])
     }
 
 
@@ -351,284 +333,260 @@ We can fuse :code:`topi.nn.conv2d` and :code:`topi.nn.relu` together.
 
     // attr [compute] storage_scope = "global"
     allocate compute[float32 * 501760]
-    produce compute {
-      // attr [iter_var(blockIdx.z, , blockIdx.z)] thread_extent = 5
-      // attr [compute] storage_scope = "local"
-      allocate compute[float32 * 14]
-      // attr [pad_temp.shared] storage_scope = "shared"
-      allocate pad_temp.shared[float32 * 112]
-      // attr [placeholder.shared] storage_scope = "shared"
-      allocate placeholder.shared[float32 * 2]
-      // attr [iter_var(blockIdx.y, , blockIdx.y)] thread_extent = 224
-      // attr [iter_var(blockIdx.x, , blockIdx.x)] thread_extent = 2
-      // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 1
-      // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 1
-      // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 16
-      produce compute {
-        compute[0] = 0f
-        compute[2] = 0f
-        compute[4] = 0f
-        compute[6] = 0f
-        compute[8] = 0f
-        compute[10] = 0f
-        compute[12] = 0f
-        compute[1] = 0f
-        compute[3] = 0f
-        compute[5] = 0f
-        compute[7] = 0f
-        compute[9] = 0f
-        compute[11] = 0f
-        compute[13] = 0f
-        for (rc.outer, 0, 3) {
-          for (ry.outer, 0, 5) {
-            produce pad_temp.shared {
-              // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 1
-              // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 1
-              // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 16
-              pad_temp.shared[(threadIdx.x*7)] = tvm_if_then_else((((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)) && (2 <= ((blockIdx.x*112) + (threadIdx.x*7)))), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 450)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 1)] = tvm_if_then_else((((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)) && (1 <= ((blockIdx.x*112) + (threadIdx.x*7)))), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 449)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 2)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 448)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 3)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 447)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 4)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 446)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 5)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 445)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 6)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 444)], 0f)
-            }
-            produce placeholder.shared {
-              // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 1
-              // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 1
-              // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 16
+    // attr [iter_var(blockIdx.z, , blockIdx.z)] thread_extent = 5
+    // attr [compute] storage_scope = "local"
+    allocate compute[float32 * 14]
+    // attr [pad_temp.shared] storage_scope = "shared"
+    allocate pad_temp.shared[float32 * 112]
+    // attr [placeholder.shared] storage_scope = "shared"
+    allocate placeholder.shared[float32 * 2]
+    // attr [iter_var(blockIdx.y, , blockIdx.y)] thread_extent = 224
+    // attr [iter_var(blockIdx.x, , blockIdx.x)] thread_extent = 2
+    // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 1
+    // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 1
+    // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 16
+    compute[0] = 0f
+    compute[2] = 0f
+    compute[4] = 0f
+    compute[6] = 0f
+    compute[8] = 0f
+    compute[10] = 0f
+    compute[12] = 0f
+    compute[1] = 0f
+    compute[3] = 0f
+    compute[5] = 0f
+    compute[7] = 0f
+    compute[9] = 0f
+    compute[11] = 0f
+    compute[13] = 0f
+    for (rc.outer, 0, 3) {
+      for (ry.outer, 0, 5) {
+        // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 1
+        // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 1
+        // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 16
+        pad_temp.shared[(threadIdx.x*7)] = tvm_if_then_else((((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)) && (2 <= ((blockIdx.x*112) + (threadIdx.x*7)))), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 450)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 1)] = tvm_if_then_else((((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)) && (1 <= ((blockIdx.x*112) + (threadIdx.x*7)))), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 449)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 2)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 448)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 3)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 447)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 4)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 446)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 5)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 445)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 6)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 444)], 0f)
+        // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 1
+        // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 1
+        // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 16
+        if (likely((threadIdx.x < 2))) {
+          if (likely((threadIdx.x < 2))) {
+            if (likely((threadIdx.x < 2))) {
               if (likely((threadIdx.x < 2))) {
                 if (likely((threadIdx.x < 2))) {
                   if (likely((threadIdx.x < 2))) {
-                    if (likely((threadIdx.x < 2))) {
-                      if (likely((threadIdx.x < 2))) {
-                        if (likely((threadIdx.x < 2))) {
-                          if (likely((((blockIdx.z*2) + threadIdx.x) < 10))) {
-                            placeholder.shared[threadIdx.x] = placeholder[((((blockIdx.z*150) + (threadIdx.x*75)) + (rc.outer*25)) + (ry.outer*5))]
-                          }
-                        }
-                      }
+                    if (likely((((blockIdx.z*2) + threadIdx.x) < 10))) {
+                      placeholder.shared[threadIdx.x] = placeholder[((((blockIdx.z*150) + (threadIdx.x*75)) + (rc.outer*25)) + (ry.outer*5))]
                     }
                   }
                 }
               }
             }
-            compute[0] = (compute[0] + (pad_temp.shared[threadIdx.x]*placeholder.shared[0]))
-            compute[2] = (compute[2] + (pad_temp.shared[(threadIdx.x + 16)]*placeholder.shared[0]))
-            compute[4] = (compute[4] + (pad_temp.shared[(threadIdx.x + 32)]*placeholder.shared[0]))
-            compute[6] = (compute[6] + (pad_temp.shared[(threadIdx.x + 48)]*placeholder.shared[0]))
-            compute[8] = (compute[8] + (pad_temp.shared[(threadIdx.x + 64)]*placeholder.shared[0]))
-            compute[10] = (compute[10] + (pad_temp.shared[(threadIdx.x + 80)]*placeholder.shared[0]))
-            compute[12] = (compute[12] + (pad_temp.shared[(threadIdx.x + 96)]*placeholder.shared[0]))
-            compute[1] = (compute[1] + (pad_temp.shared[threadIdx.x]*placeholder.shared[1]))
-            compute[3] = (compute[3] + (pad_temp.shared[(threadIdx.x + 16)]*placeholder.shared[1]))
-            compute[5] = (compute[5] + (pad_temp.shared[(threadIdx.x + 32)]*placeholder.shared[1]))
-            compute[7] = (compute[7] + (pad_temp.shared[(threadIdx.x + 48)]*placeholder.shared[1]))
-            compute[9] = (compute[9] + (pad_temp.shared[(threadIdx.x + 64)]*placeholder.shared[1]))
-            compute[11] = (compute[11] + (pad_temp.shared[(threadIdx.x + 80)]*placeholder.shared[1]))
-            compute[13] = (compute[13] + (pad_temp.shared[(threadIdx.x + 96)]*placeholder.shared[1]))
-            produce pad_temp.shared {
-              // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 1
-              // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 1
-              // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 16
-              pad_temp.shared[(threadIdx.x*7)] = tvm_if_then_else((((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)) && (1 <= ((blockIdx.x*112) + (threadIdx.x*7)))), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 449)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 1)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 448)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 2)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 447)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 3)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 446)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 4)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 445)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 5)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 444)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 6)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 443)], 0f)
-            }
-            produce placeholder.shared {
-              // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 1
-              // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 1
-              // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 16
+          }
+        }
+        compute[0] = (compute[0] + (pad_temp.shared[threadIdx.x]*placeholder.shared[0]))
+        compute[2] = (compute[2] + (pad_temp.shared[(threadIdx.x + 16)]*placeholder.shared[0]))
+        compute[4] = (compute[4] + (pad_temp.shared[(threadIdx.x + 32)]*placeholder.shared[0]))
+        compute[6] = (compute[6] + (pad_temp.shared[(threadIdx.x + 48)]*placeholder.shared[0]))
+        compute[8] = (compute[8] + (pad_temp.shared[(threadIdx.x + 64)]*placeholder.shared[0]))
+        compute[10] = (compute[10] + (pad_temp.shared[(threadIdx.x + 80)]*placeholder.shared[0]))
+        compute[12] = (compute[12] + (pad_temp.shared[(threadIdx.x + 96)]*placeholder.shared[0]))
+        compute[1] = (compute[1] + (pad_temp.shared[threadIdx.x]*placeholder.shared[1]))
+        compute[3] = (compute[3] + (pad_temp.shared[(threadIdx.x + 16)]*placeholder.shared[1]))
+        compute[5] = (compute[5] + (pad_temp.shared[(threadIdx.x + 32)]*placeholder.shared[1]))
+        compute[7] = (compute[7] + (pad_temp.shared[(threadIdx.x + 48)]*placeholder.shared[1]))
+        compute[9] = (compute[9] + (pad_temp.shared[(threadIdx.x + 64)]*placeholder.shared[1]))
+        compute[11] = (compute[11] + (pad_temp.shared[(threadIdx.x + 80)]*placeholder.shared[1]))
+        compute[13] = (compute[13] + (pad_temp.shared[(threadIdx.x + 96)]*placeholder.shared[1]))
+        // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 1
+        // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 1
+        // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 16
+        pad_temp.shared[(threadIdx.x*7)] = tvm_if_then_else((((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)) && (1 <= ((blockIdx.x*112) + (threadIdx.x*7)))), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 449)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 1)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 448)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 2)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 447)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 3)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 446)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 4)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 445)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 5)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 444)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 6)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 443)], 0f)
+        // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 1
+        // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 1
+        // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 16
+        if (likely((threadIdx.x < 2))) {
+          if (likely((threadIdx.x < 2))) {
+            if (likely((threadIdx.x < 2))) {
               if (likely((threadIdx.x < 2))) {
                 if (likely((threadIdx.x < 2))) {
                   if (likely((threadIdx.x < 2))) {
-                    if (likely((threadIdx.x < 2))) {
-                      if (likely((threadIdx.x < 2))) {
-                        if (likely((threadIdx.x < 2))) {
-                          if (likely((((blockIdx.z*2) + threadIdx.x) < 10))) {
-                            placeholder.shared[threadIdx.x] = placeholder[(((((blockIdx.z*150) + (threadIdx.x*75)) + (rc.outer*25)) + (ry.outer*5)) + 1)]
-                          }
-                        }
-                      }
+                    if (likely((((blockIdx.z*2) + threadIdx.x) < 10))) {
+                      placeholder.shared[threadIdx.x] = placeholder[(((((blockIdx.z*150) + (threadIdx.x*75)) + (rc.outer*25)) + (ry.outer*5)) + 1)]
                     }
                   }
                 }
               }
             }
-            compute[0] = (compute[0] + (pad_temp.shared[threadIdx.x]*placeholder.shared[0]))
-            compute[2] = (compute[2] + (pad_temp.shared[(threadIdx.x + 16)]*placeholder.shared[0]))
-            compute[4] = (compute[4] + (pad_temp.shared[(threadIdx.x + 32)]*placeholder.shared[0]))
-            compute[6] = (compute[6] + (pad_temp.shared[(threadIdx.x + 48)]*placeholder.shared[0]))
-            compute[8] = (compute[8] + (pad_temp.shared[(threadIdx.x + 64)]*placeholder.shared[0]))
-            compute[10] = (compute[10] + (pad_temp.shared[(threadIdx.x + 80)]*placeholder.shared[0]))
-            compute[12] = (compute[12] + (pad_temp.shared[(threadIdx.x + 96)]*placeholder.shared[0]))
-            compute[1] = (compute[1] + (pad_temp.shared[threadIdx.x]*placeholder.shared[1]))
-            compute[3] = (compute[3] + (pad_temp.shared[(threadIdx.x + 16)]*placeholder.shared[1]))
-            compute[5] = (compute[5] + (pad_temp.shared[(threadIdx.x + 32)]*placeholder.shared[1]))
-            compute[7] = (compute[7] + (pad_temp.shared[(threadIdx.x + 48)]*placeholder.shared[1]))
-            compute[9] = (compute[9] + (pad_temp.shared[(threadIdx.x + 64)]*placeholder.shared[1]))
-            compute[11] = (compute[11] + (pad_temp.shared[(threadIdx.x + 80)]*placeholder.shared[1]))
-            compute[13] = (compute[13] + (pad_temp.shared[(threadIdx.x + 96)]*placeholder.shared[1]))
-            produce pad_temp.shared {
-              // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 1
-              // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 1
-              // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 16
-              pad_temp.shared[(threadIdx.x*7)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 448)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 1)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 447)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 2)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 446)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 3)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 445)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 4)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 444)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 5)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 443)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 6)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 442)], 0f)
-            }
-            produce placeholder.shared {
-              // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 1
-              // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 1
-              // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 16
+          }
+        }
+        compute[0] = (compute[0] + (pad_temp.shared[threadIdx.x]*placeholder.shared[0]))
+        compute[2] = (compute[2] + (pad_temp.shared[(threadIdx.x + 16)]*placeholder.shared[0]))
+        compute[4] = (compute[4] + (pad_temp.shared[(threadIdx.x + 32)]*placeholder.shared[0]))
+        compute[6] = (compute[6] + (pad_temp.shared[(threadIdx.x + 48)]*placeholder.shared[0]))
+        compute[8] = (compute[8] + (pad_temp.shared[(threadIdx.x + 64)]*placeholder.shared[0]))
+        compute[10] = (compute[10] + (pad_temp.shared[(threadIdx.x + 80)]*placeholder.shared[0]))
+        compute[12] = (compute[12] + (pad_temp.shared[(threadIdx.x + 96)]*placeholder.shared[0]))
+        compute[1] = (compute[1] + (pad_temp.shared[threadIdx.x]*placeholder.shared[1]))
+        compute[3] = (compute[3] + (pad_temp.shared[(threadIdx.x + 16)]*placeholder.shared[1]))
+        compute[5] = (compute[5] + (pad_temp.shared[(threadIdx.x + 32)]*placeholder.shared[1]))
+        compute[7] = (compute[7] + (pad_temp.shared[(threadIdx.x + 48)]*placeholder.shared[1]))
+        compute[9] = (compute[9] + (pad_temp.shared[(threadIdx.x + 64)]*placeholder.shared[1]))
+        compute[11] = (compute[11] + (pad_temp.shared[(threadIdx.x + 80)]*placeholder.shared[1]))
+        compute[13] = (compute[13] + (pad_temp.shared[(threadIdx.x + 96)]*placeholder.shared[1]))
+        // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 1
+        // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 1
+        // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 16
+        pad_temp.shared[(threadIdx.x*7)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 448)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 1)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 447)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 2)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 446)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 3)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 445)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 4)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 444)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 5)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 443)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 6)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 442)], 0f)
+        // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 1
+        // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 1
+        // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 16
+        if (likely((threadIdx.x < 2))) {
+          if (likely((threadIdx.x < 2))) {
+            if (likely((threadIdx.x < 2))) {
               if (likely((threadIdx.x < 2))) {
                 if (likely((threadIdx.x < 2))) {
                   if (likely((threadIdx.x < 2))) {
-                    if (likely((threadIdx.x < 2))) {
-                      if (likely((threadIdx.x < 2))) {
-                        if (likely((threadIdx.x < 2))) {
-                          if (likely((((blockIdx.z*2) + threadIdx.x) < 10))) {
-                            placeholder.shared[threadIdx.x] = placeholder[(((((blockIdx.z*150) + (threadIdx.x*75)) + (rc.outer*25)) + (ry.outer*5)) + 2)]
-                          }
-                        }
-                      }
+                    if (likely((((blockIdx.z*2) + threadIdx.x) < 10))) {
+                      placeholder.shared[threadIdx.x] = placeholder[(((((blockIdx.z*150) + (threadIdx.x*75)) + (rc.outer*25)) + (ry.outer*5)) + 2)]
                     }
                   }
                 }
               }
             }
-            compute[0] = (compute[0] + (pad_temp.shared[threadIdx.x]*placeholder.shared[0]))
-            compute[2] = (compute[2] + (pad_temp.shared[(threadIdx.x + 16)]*placeholder.shared[0]))
-            compute[4] = (compute[4] + (pad_temp.shared[(threadIdx.x + 32)]*placeholder.shared[0]))
-            compute[6] = (compute[6] + (pad_temp.shared[(threadIdx.x + 48)]*placeholder.shared[0]))
-            compute[8] = (compute[8] + (pad_temp.shared[(threadIdx.x + 64)]*placeholder.shared[0]))
-            compute[10] = (compute[10] + (pad_temp.shared[(threadIdx.x + 80)]*placeholder.shared[0]))
-            compute[12] = (compute[12] + (pad_temp.shared[(threadIdx.x + 96)]*placeholder.shared[0]))
-            compute[1] = (compute[1] + (pad_temp.shared[threadIdx.x]*placeholder.shared[1]))
-            compute[3] = (compute[3] + (pad_temp.shared[(threadIdx.x + 16)]*placeholder.shared[1]))
-            compute[5] = (compute[5] + (pad_temp.shared[(threadIdx.x + 32)]*placeholder.shared[1]))
-            compute[7] = (compute[7] + (pad_temp.shared[(threadIdx.x + 48)]*placeholder.shared[1]))
-            compute[9] = (compute[9] + (pad_temp.shared[(threadIdx.x + 64)]*placeholder.shared[1]))
-            compute[11] = (compute[11] + (pad_temp.shared[(threadIdx.x + 80)]*placeholder.shared[1]))
-            compute[13] = (compute[13] + (pad_temp.shared[(threadIdx.x + 96)]*placeholder.shared[1]))
-            produce pad_temp.shared {
-              // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 1
-              // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 1
-              // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 16
-              pad_temp.shared[(threadIdx.x*7)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 447)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 1)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 446)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 2)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 445)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 3)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 444)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 4)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 443)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 5)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 442)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 6)] = tvm_if_then_else((((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)) && (((blockIdx.x*112) + (threadIdx.x*7)) < 217)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 441)], 0f)
-            }
-            produce placeholder.shared {
-              // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 1
-              // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 1
-              // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 16
+          }
+        }
+        compute[0] = (compute[0] + (pad_temp.shared[threadIdx.x]*placeholder.shared[0]))
+        compute[2] = (compute[2] + (pad_temp.shared[(threadIdx.x + 16)]*placeholder.shared[0]))
+        compute[4] = (compute[4] + (pad_temp.shared[(threadIdx.x + 32)]*placeholder.shared[0]))
+        compute[6] = (compute[6] + (pad_temp.shared[(threadIdx.x + 48)]*placeholder.shared[0]))
+        compute[8] = (compute[8] + (pad_temp.shared[(threadIdx.x + 64)]*placeholder.shared[0]))
+        compute[10] = (compute[10] + (pad_temp.shared[(threadIdx.x + 80)]*placeholder.shared[0]))
+        compute[12] = (compute[12] + (pad_temp.shared[(threadIdx.x + 96)]*placeholder.shared[0]))
+        compute[1] = (compute[1] + (pad_temp.shared[threadIdx.x]*placeholder.shared[1]))
+        compute[3] = (compute[3] + (pad_temp.shared[(threadIdx.x + 16)]*placeholder.shared[1]))
+        compute[5] = (compute[5] + (pad_temp.shared[(threadIdx.x + 32)]*placeholder.shared[1]))
+        compute[7] = (compute[7] + (pad_temp.shared[(threadIdx.x + 48)]*placeholder.shared[1]))
+        compute[9] = (compute[9] + (pad_temp.shared[(threadIdx.x + 64)]*placeholder.shared[1]))
+        compute[11] = (compute[11] + (pad_temp.shared[(threadIdx.x + 80)]*placeholder.shared[1]))
+        compute[13] = (compute[13] + (pad_temp.shared[(threadIdx.x + 96)]*placeholder.shared[1]))
+        // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 1
+        // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 1
+        // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 16
+        pad_temp.shared[(threadIdx.x*7)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 447)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 1)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 446)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 2)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 445)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 3)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 444)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 4)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 443)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 5)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 442)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 6)] = tvm_if_then_else((((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)) && (((blockIdx.x*112) + (threadIdx.x*7)) < 217)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 441)], 0f)
+        // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 1
+        // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 1
+        // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 16
+        if (likely((threadIdx.x < 2))) {
+          if (likely((threadIdx.x < 2))) {
+            if (likely((threadIdx.x < 2))) {
               if (likely((threadIdx.x < 2))) {
                 if (likely((threadIdx.x < 2))) {
                   if (likely((threadIdx.x < 2))) {
-                    if (likely((threadIdx.x < 2))) {
-                      if (likely((threadIdx.x < 2))) {
-                        if (likely((threadIdx.x < 2))) {
-                          if (likely((((blockIdx.z*2) + threadIdx.x) < 10))) {
-                            placeholder.shared[threadIdx.x] = placeholder[(((((blockIdx.z*150) + (threadIdx.x*75)) + (rc.outer*25)) + (ry.outer*5)) + 3)]
-                          }
-                        }
-                      }
+                    if (likely((((blockIdx.z*2) + threadIdx.x) < 10))) {
+                      placeholder.shared[threadIdx.x] = placeholder[(((((blockIdx.z*150) + (threadIdx.x*75)) + (rc.outer*25)) + (ry.outer*5)) + 3)]
                     }
                   }
                 }
               }
             }
-            compute[0] = (compute[0] + (pad_temp.shared[threadIdx.x]*placeholder.shared[0]))
-            compute[2] = (compute[2] + (pad_temp.shared[(threadIdx.x + 16)]*placeholder.shared[0]))
-            compute[4] = (compute[4] + (pad_temp.shared[(threadIdx.x + 32)]*placeholder.shared[0]))
-            compute[6] = (compute[6] + (pad_temp.shared[(threadIdx.x + 48)]*placeholder.shared[0]))
-            compute[8] = (compute[8] + (pad_temp.shared[(threadIdx.x + 64)]*placeholder.shared[0]))
-            compute[10] = (compute[10] + (pad_temp.shared[(threadIdx.x + 80)]*placeholder.shared[0]))
-            compute[12] = (compute[12] + (pad_temp.shared[(threadIdx.x + 96)]*placeholder.shared[0]))
-            compute[1] = (compute[1] + (pad_temp.shared[threadIdx.x]*placeholder.shared[1]))
-            compute[3] = (compute[3] + (pad_temp.shared[(threadIdx.x + 16)]*placeholder.shared[1]))
-            compute[5] = (compute[5] + (pad_temp.shared[(threadIdx.x + 32)]*placeholder.shared[1]))
-            compute[7] = (compute[7] + (pad_temp.shared[(threadIdx.x + 48)]*placeholder.shared[1]))
-            compute[9] = (compute[9] + (pad_temp.shared[(threadIdx.x + 64)]*placeholder.shared[1]))
-            compute[11] = (compute[11] + (pad_temp.shared[(threadIdx.x + 80)]*placeholder.shared[1]))
-            compute[13] = (compute[13] + (pad_temp.shared[(threadIdx.x + 96)]*placeholder.shared[1]))
-            produce pad_temp.shared {
-              // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 1
-              // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 1
-              // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 16
-              pad_temp.shared[(threadIdx.x*7)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 446)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 1)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 445)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 2)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 444)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 3)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 443)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 4)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 442)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 5)] = tvm_if_then_else((((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)) && (((blockIdx.x*112) + (threadIdx.x*7)) < 217)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 441)], 0f)
-              pad_temp.shared[((threadIdx.x*7) + 6)] = tvm_if_then_else((((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)) && (((blockIdx.x*112) + (threadIdx.x*7)) < 216)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 440)], 0f)
-            }
-            produce placeholder.shared {
-              // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 1
-              // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 1
-              // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 16
+          }
+        }
+        compute[0] = (compute[0] + (pad_temp.shared[threadIdx.x]*placeholder.shared[0]))
+        compute[2] = (compute[2] + (pad_temp.shared[(threadIdx.x + 16)]*placeholder.shared[0]))
+        compute[4] = (compute[4] + (pad_temp.shared[(threadIdx.x + 32)]*placeholder.shared[0]))
+        compute[6] = (compute[6] + (pad_temp.shared[(threadIdx.x + 48)]*placeholder.shared[0]))
+        compute[8] = (compute[8] + (pad_temp.shared[(threadIdx.x + 64)]*placeholder.shared[0]))
+        compute[10] = (compute[10] + (pad_temp.shared[(threadIdx.x + 80)]*placeholder.shared[0]))
+        compute[12] = (compute[12] + (pad_temp.shared[(threadIdx.x + 96)]*placeholder.shared[0]))
+        compute[1] = (compute[1] + (pad_temp.shared[threadIdx.x]*placeholder.shared[1]))
+        compute[3] = (compute[3] + (pad_temp.shared[(threadIdx.x + 16)]*placeholder.shared[1]))
+        compute[5] = (compute[5] + (pad_temp.shared[(threadIdx.x + 32)]*placeholder.shared[1]))
+        compute[7] = (compute[7] + (pad_temp.shared[(threadIdx.x + 48)]*placeholder.shared[1]))
+        compute[9] = (compute[9] + (pad_temp.shared[(threadIdx.x + 64)]*placeholder.shared[1]))
+        compute[11] = (compute[11] + (pad_temp.shared[(threadIdx.x + 80)]*placeholder.shared[1]))
+        compute[13] = (compute[13] + (pad_temp.shared[(threadIdx.x + 96)]*placeholder.shared[1]))
+        // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 1
+        // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 1
+        // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 16
+        pad_temp.shared[(threadIdx.x*7)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 446)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 1)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 445)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 2)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 444)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 3)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 443)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 4)] = tvm_if_then_else(((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 442)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 5)] = tvm_if_then_else((((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)) && (((blockIdx.x*112) + (threadIdx.x*7)) < 217)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 441)], 0f)
+        pad_temp.shared[((threadIdx.x*7) + 6)] = tvm_if_then_else((((2 <= (blockIdx.y + ry.outer)) && ((blockIdx.y + ry.outer) < 226)) && (((blockIdx.x*112) + (threadIdx.x*7)) < 216)), placeholder[((((((rc.outer*50176) + (blockIdx.y*224)) + (ry.outer*224)) + (blockIdx.x*112)) + (threadIdx.x*7)) - 440)], 0f)
+        // attr [iter_var(threadIdx.z, , threadIdx.z)] thread_extent = 1
+        // attr [iter_var(threadIdx.y, , threadIdx.y)] thread_extent = 1
+        // attr [iter_var(threadIdx.x, , threadIdx.x)] thread_extent = 16
+        if (likely((threadIdx.x < 2))) {
+          if (likely((threadIdx.x < 2))) {
+            if (likely((threadIdx.x < 2))) {
               if (likely((threadIdx.x < 2))) {
                 if (likely((threadIdx.x < 2))) {
                   if (likely((threadIdx.x < 2))) {
-                    if (likely((threadIdx.x < 2))) {
-                      if (likely((threadIdx.x < 2))) {
-                        if (likely((threadIdx.x < 2))) {
-                          if (likely((((blockIdx.z*2) + threadIdx.x) < 10))) {
-                            placeholder.shared[threadIdx.x] = placeholder[(((((blockIdx.z*150) + (threadIdx.x*75)) + (rc.outer*25)) + (ry.outer*5)) + 4)]
-                          }
-                        }
-                      }
+                    if (likely((((blockIdx.z*2) + threadIdx.x) < 10))) {
+                      placeholder.shared[threadIdx.x] = placeholder[(((((blockIdx.z*150) + (threadIdx.x*75)) + (rc.outer*25)) + (ry.outer*5)) + 4)]
                     }
                   }
                 }
               }
             }
-            compute[0] = (compute[0] + (pad_temp.shared[threadIdx.x]*placeholder.shared[0]))
-            compute[2] = (compute[2] + (pad_temp.shared[(threadIdx.x + 16)]*placeholder.shared[0]))
-            compute[4] = (compute[4] + (pad_temp.shared[(threadIdx.x + 32)]*placeholder.shared[0]))
-            compute[6] = (compute[6] + (pad_temp.shared[(threadIdx.x + 48)]*placeholder.shared[0]))
-            compute[8] = (compute[8] + (pad_temp.shared[(threadIdx.x + 64)]*placeholder.shared[0]))
-            compute[10] = (compute[10] + (pad_temp.shared[(threadIdx.x + 80)]*placeholder.shared[0]))
-            compute[12] = (compute[12] + (pad_temp.shared[(threadIdx.x + 96)]*placeholder.shared[0]))
-            compute[1] = (compute[1] + (pad_temp.shared[threadIdx.x]*placeholder.shared[1]))
-            compute[3] = (compute[3] + (pad_temp.shared[(threadIdx.x + 16)]*placeholder.shared[1]))
-            compute[5] = (compute[5] + (pad_temp.shared[(threadIdx.x + 32)]*placeholder.shared[1]))
-            compute[7] = (compute[7] + (pad_temp.shared[(threadIdx.x + 48)]*placeholder.shared[1]))
-            compute[9] = (compute[9] + (pad_temp.shared[(threadIdx.x + 64)]*placeholder.shared[1]))
-            compute[11] = (compute[11] + (pad_temp.shared[(threadIdx.x + 80)]*placeholder.shared[1]))
-            compute[13] = (compute[13] + (pad_temp.shared[(threadIdx.x + 96)]*placeholder.shared[1]))
           }
         }
+        compute[0] = (compute[0] + (pad_temp.shared[threadIdx.x]*placeholder.shared[0]))
+        compute[2] = (compute[2] + (pad_temp.shared[(threadIdx.x + 16)]*placeholder.shared[0]))
+        compute[4] = (compute[4] + (pad_temp.shared[(threadIdx.x + 32)]*placeholder.shared[0]))
+        compute[6] = (compute[6] + (pad_temp.shared[(threadIdx.x + 48)]*placeholder.shared[0]))
+        compute[8] = (compute[8] + (pad_temp.shared[(threadIdx.x + 64)]*placeholder.shared[0]))
+        compute[10] = (compute[10] + (pad_temp.shared[(threadIdx.x + 80)]*placeholder.shared[0]))
+        compute[12] = (compute[12] + (pad_temp.shared[(threadIdx.x + 96)]*placeholder.shared[0]))
+        compute[1] = (compute[1] + (pad_temp.shared[threadIdx.x]*placeholder.shared[1]))
+        compute[3] = (compute[3] + (pad_temp.shared[(threadIdx.x + 16)]*placeholder.shared[1]))
+        compute[5] = (compute[5] + (pad_temp.shared[(threadIdx.x + 32)]*placeholder.shared[1]))
+        compute[7] = (compute[7] + (pad_temp.shared[(threadIdx.x + 48)]*placeholder.shared[1]))
+        compute[9] = (compute[9] + (pad_temp.shared[(threadIdx.x + 64)]*placeholder.shared[1]))
+        compute[11] = (compute[11] + (pad_temp.shared[(threadIdx.x + 80)]*placeholder.shared[1]))
+        compute[13] = (compute[13] + (pad_temp.shared[(threadIdx.x + 96)]*placeholder.shared[1]))
       }
-      compute[((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x)] = max(compute[0], 0f)
-      compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 16)] = max(compute[2], 0f)
-      compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 32)] = max(compute[4], 0f)
-      compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 48)] = max(compute[6], 0f)
-      compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 64)] = max(compute[8], 0f)
-      compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 80)] = max(compute[10], 0f)
-      compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 96)] = max(compute[12], 0f)
-      compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 50176)] = max(compute[1], 0f)
-      compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 50192)] = max(compute[3], 0f)
-      compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 50208)] = max(compute[5], 0f)
-      compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 50224)] = max(compute[7], 0f)
-      compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 50240)] = max(compute[9], 0f)
-      compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 50256)] = max(compute[11], 0f)
-      compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 50272)] = max(compute[13], 0f)
     }
+    compute[((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x)] = max(compute[0], 0f)
+    compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 16)] = max(compute[2], 0f)
+    compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 32)] = max(compute[4], 0f)
+    compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 48)] = max(compute[6], 0f)
+    compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 64)] = max(compute[8], 0f)
+    compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 80)] = max(compute[10], 0f)
+    compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 96)] = max(compute[12], 0f)
+    compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 50176)] = max(compute[1], 0f)
+    compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 50192)] = max(compute[3], 0f)
+    compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 50208)] = max(compute[5], 0f)
+    compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 50224)] = max(compute[7], 0f)
+    compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 50240)] = max(compute[9], 0f)
+    compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 50256)] = max(compute[11], 0f)
+    compute[(((((blockIdx.z*100352) + (blockIdx.y*224)) + (blockIdx.x*112)) + threadIdx.x) + 50272)] = max(compute[13], 0f)
 
 
 
diff --git a/docs/_sources/tutorials/topi/sg_execution_times.rst.txt b/docs/_sources/tutorials/topi/sg_execution_times.rst.txt
index 6b420bd..efb74d2 100644
--- a/docs/_sources/tutorials/topi/sg_execution_times.rst.txt
+++ b/docs/_sources/tutorials/topi/sg_execution_times.rst.txt
@@ -5,6 +5,6 @@
 
 Computation times
 =================
-**00:00.455** total execution time for **tutorials_topi** files:
+**00:00.484** total execution time for **tutorials_topi** files:
 
-- **00:00.455**: :ref:`sphx_glr_tutorials_topi_intro_topi.py` (``intro_topi.py``)
+- **00:00.484**: :ref:`sphx_glr_tutorials_topi_intro_topi.py` (``intro_topi.py``)
diff --git a/docs/_sources/vta/tutorials/autotvm/sg_execution_times.rst.txt b/docs/_sources/vta/tutorials/autotvm/sg_execution_times.rst.txt
index 9966e02..8ff478f 100644
--- a/docs/_sources/vta/tutorials/autotvm/sg_execution_times.rst.txt
+++ b/docs/_sources/vta/tutorials/autotvm/sg_execution_times.rst.txt
@@ -5,6 +5,6 @@
 
 Computation times
 =================
-**00:03.141** total execution time for **vta_tutorials_autotvm** files:
+**00:03.231** total execution time for **vta_tutorials_autotvm** files:
 
-- **00:03.141**: :ref:`sphx_glr_vta_tutorials_autotvm_tune_relay_vta.py` (``tune_relay_vta.py``)
+- **00:03.231**: :ref:`sphx_glr_vta_tutorials_autotvm_tune_relay_vta.py` (``tune_relay_vta.py``)
diff --git a/docs/_sources/vta/tutorials/autotvm/tune_relay_vta.rst.txt b/docs/_sources/vta/tutorials/autotvm/tune_relay_vta.rst.txt
index f73deef..f1dd338 100644
--- a/docs/_sources/vta/tutorials/autotvm/tune_relay_vta.rst.txt
+++ b/docs/_sources/vta/tutorials/autotvm/tune_relay_vta.rst.txt
@@ -481,8 +481,8 @@ Finally, we launch tuning jobs and evaluate the end-to-end performance.
  .. code-block:: none
 
     Extract tasks...
-
    ...1%, 0.01 MB, 45 KB/s, 0 seconds passed
    ...2%, 0.02 MB, 91 KB/s, 0 seconds passed
    ...3%, 0.02 MB, 137 KB/s, 0 seconds passed
    ...4%, 0.03 MB, 178 KB/s, 0 seconds passed
    ...5%, 0.04 MB, 223 KB/s, 0 seconds passed
    ...6%, 0.05 MB, 265 KB/s, 0 seconds passed
    ...7%, 0.05 MB, 309 KB/s, 0 seconds passed
    ...8%, 0.06 MB, 352 KB/s, 0 seconds passed
    ...9%, 0.07 MB, 395 KB/s, 0 seconds passed
    ...10%, 0.08 MB, 435 KB/s, 0 seconds passed
    ...11%, 0.09 MB, 478 KB/s, 0 seconds passed
    ...13%, 0.09 MB, 521 KB/s, 0 seconds passed
    ...14%, 0.10 MB, 564 KB/s, 0 seconds passed
    ...15%, 0.11 MB, 605 KB/s, 0 seconds passed
    ...16%, 0.12 MB, 648 KB/s, 0 seconds passed
    ...17%, 0.12 MB, 689 KB/s, 0 seconds passed
    ...18%, 0.13 MB, 732 KB/s, 0 seconds passed
    ...19%, 0.14 MB, 771 KB/s, 0 seconds passed
    ...20%, 0.15 MB, 814 KB/s, 0 seconds passed
    ...21%, 0.16 MB, 854 KB/s, 0 seconds passed
    ...22%, 0.16 MB, 896 KB/s, 0 seconds passed
 
    ...23%, 0.17 MB, 936 KB/s, 0 seconds passed
    ...25%, 0.18 MB, 978 KB/s, 0 seconds passed
    ...26%, 0.19 MB, 1017 KB/s, 0 seconds passed
    ...27%, 0.20 MB, 1059 KB/s, 0 seconds passed
    ...28%, 0.20 MB, 1100 KB/s, 0 seconds passed
    ...29%, 0.21 MB, 1142 KB/s, 0 seconds passed
    ...30%, 0.22 MB, 1181 KB/s, 0 seconds passed
    ...31%, 0.23 MB, 1223 KB/s, 0 seconds passed
    ...32%, 0.23 MB, 1261 KB/s, 0 seconds passed
    ...33%, 0.24 MB, 1302 KB/s, 0 seconds passed
    ...34%, 0.25 MB, 1341 KB/s, 0 seconds passed
    ...35%, 0.26 MB, 1382 KB/s, 0 seconds passed
    ...36%, 0.27 MB, 1420 KB/s, 0 seconds passed
    ...38%, 0.27 MB, 1460 KB/s, 0 seconds passed
    ...39%, 0.28 MB, 1498 KB/s, 0 seconds passed
    ...40%, 0.29 MB, 1539 KB/s, 0 seconds passed
    ...41%, 0.30 MB, 1579 KB/s, 0 seconds passed
    ...42%, 0.30 MB, 1620 KB/s, 0 seconds passed
    ...43%, 0.31 MB, 1658 KB/s, 0 seconds passed
    ...44%, 0.32 MB, 1698 KB/s, 0 seconds passed
    ...45%, 0.33 M
 B, 1736 KB/s, 0 seconds passed
    ...46%, 0.34 MB, 1776 KB/s, 0 seconds passed
    ...47%, 0.34 MB, 1815 KB/s, 0 seconds passed
    ...48%, 0.35 MB, 1855 KB/s, 0 seconds passed
    ...50%, 0.36 MB, 1892 KB/s, 0 seconds passed
    ...51%, 0.37 MB, 1932 KB/s, 0 seconds passed
    ...52%, 0.38 MB, 1971 KB/s, 0 seconds passed
    ...53%, 0.38 MB, 2011 KB/s, 0 seconds passed
    ...54%, 0.39 MB, 2048 KB/s, 0 seconds passed
    ...55%, 0.40 MB, 2088 KB/s, 0 seconds passed
    ...56%, 0.41 MB, 2126 KB/s, 0 seconds passed
    ...57%, 0.41 MB, 2166 KB/s, 0 seconds passed
    ...58%, 0.42 MB, 2205 KB/s, 0 seconds passed
    ...59%, 0.43 MB, 2245 KB/s, 0 seconds passed
    ...60%, 0.44 MB, 2280 KB/s, 0 seconds passed
    ...62%, 0.45 MB, 2320 KB/s, 0 seconds passed
    ...63%, 0.45 MB, 2357 KB/s, 0 seconds passed
    ...64%, 0.46 MB, 2397 KB/s, 0 seconds passed
    ...65%, 0.47 MB, 2434 KB/s, 0 seconds passed
    ...66%, 0.48 MB, 2473 KB/s, 0 seconds passed
    ...67%, 0.48 MB, 2513 KB/s, 0 s
 econds passed
    ...68%, 0.49 MB, 2552 KB/s, 0 seconds passed
    ...69%, 0.50 MB, 2586 KB/s, 0 seconds passed
    ...70%, 0.51 MB, 2625 KB/s, 0 seconds passed
    ...71%, 0.52 MB, 2664 KB/s, 0 seconds passed
    ...72%, 0.52 MB, 2704 KB/s, 0 seconds passed
    ...73%, 0.53 MB, 2740 KB/s, 0 seconds passed
    ...75%, 0.54 MB, 2779 KB/s, 0 seconds passed
    ...76%, 0.55 MB, 2818 KB/s, 0 seconds passed
    ...77%, 0.55 MB, 2857 KB/s, 0 seconds passed
    ...78%, 0.56 MB, 2890 KB/s, 0 seconds passed
    ...79%, 0.57 MB, 2929 KB/s, 0 seconds passed
    ...80%, 0.58 MB, 2964 KB/s, 0 seconds passed
    ...81%, 0.59 MB, 3003 KB/s, 0 seconds passed
    ...82%, 0.59 MB, 3039 KB/s, 0 seconds passed
    ...83%, 0.60 MB, 3078 KB/s, 0 seconds passed
    ...84%, 0.61 MB, 3116 KB/s, 0 seconds passed
    ...85%, 0.62 MB, 3154 KB/s, 0 seconds passed
    ...87%, 0.62 MB, 3190 KB/s, 0 seconds passed
    ...88%, 0.63 MB, 3228 KB/s, 0 seconds passed
    ...89%, 0.64 MB, 3260 KB/s, 0 seconds passed
   
  ...90%, 0.65 MB, 3298 KB/s, 0 seconds passed
    ...91%, 0.66 MB, 3336 KB/s, 0 seconds passed
    ...92%, 0.66 MB, 3374 KB/s, 0 seconds passed
    ...93%, 0.67 MB, 3412 KB/s, 0 seconds passed
    ...94%, 0.68 MB, 3450 KB/s, 0 seconds passed
    ...95%, 0.69 MB, 3488 KB/s, 0 seconds passed
    ...96%, 0.70 MB, 3527 KB/s, 0 seconds passed
    ...97%, 0.70 MB, 3561 KB/s, 0 seconds passed
    ...99%, 0.71 MB, 3599 KB/s, 0 seconds passed
    ...100%, 0.72 MB, 3635 KB/s, 0 seconds passed
-    Exception in thread Thread-9:
+
    ...1%, 0.01 MB, 46 KB/s, 0 seconds passed
    ...2%, 0.02 MB, 92 KB/s, 0 seconds passed
    ...3%, 0.02 MB, 139 KB/s, 0 seconds passed
    ...4%, 0.03 MB, 183 KB/s, 0 seconds passed
    ...5%, 0.04 MB, 229 KB/s, 0 seconds passed
    ...6%, 0.05 MB, 273 KB/s, 0 seconds passed
    ...7%, 0.05 MB, 319 KB/s, 0 seconds passed
    ...8%, 0.06 MB, 364 KB/s, 0 seconds passed
    ...9%, 0.07 MB, 409 KB/s, 0 seconds passed
    ...10%, 0.08 MB, 452 KB/s, 0 seconds passed
    ...11%, 0.09 MB, 497 KB/s, 0 seconds passed
    ...13%, 0.09 MB, 540 KB/s, 0 seconds passed
    ...14%, 0.10 MB, 585 KB/s, 0 seconds passed
    ...15%, 0.11 MB, 628 KB/s, 0 seconds passed
    ...16%, 0.12 MB, 673 KB/s, 0 seconds passed
    ...17%, 0.12 MB, 716 KB/s, 0 seconds passed
    ...18%, 0.13 MB, 761 KB/s, 0 seconds passed
    ...19%, 0.14 MB, 803 KB/s, 0 seconds passed
    ...20%, 0.15 MB, 848 KB/s, 0 seconds passed
    ...21%, 0.16 MB, 888 KB/s, 0 seconds passed
    ...22%, 0.16 MB, 932 KB/s, 0 seconds passed
 
    ...23%, 0.17 MB, 974 KB/s, 0 seconds passed
    ...25%, 0.18 MB, 1018 KB/s, 0 seconds passed
    ...26%, 0.19 MB, 1060 KB/s, 0 seconds passed
    ...27%, 0.20 MB, 1104 KB/s, 0 seconds passed
    ...28%, 0.20 MB, 1144 KB/s, 0 seconds passed
    ...29%, 0.21 MB, 1188 KB/s, 0 seconds passed
    ...30%, 0.22 MB, 1227 KB/s, 0 seconds passed
    ...31%, 0.23 MB, 1270 KB/s, 0 seconds passed
    ...32%, 0.23 MB, 1313 KB/s, 0 seconds passed
    ...33%, 0.24 MB, 1356 KB/s, 0 seconds passed
    ...34%, 0.25 MB, 1396 KB/s, 0 seconds passed
    ...35%, 0.26 MB, 1439 KB/s, 0 seconds passed
    ...36%, 0.27 MB, 1479 KB/s, 0 seconds passed
    ...38%, 0.27 MB, 1522 KB/s, 0 seconds passed
    ...39%, 0.28 MB, 1561 KB/s, 0 seconds passed
    ...40%, 0.29 MB, 1604 KB/s, 0 seconds passed
    ...41%, 0.30 MB, 1645 KB/s, 0 seconds passed
    ...42%, 0.30 MB, 1687 KB/s, 0 seconds passed
    ...43%, 0.31 MB, 1724 KB/s, 0 seconds passed
    ...44%, 0.32 MB, 1766 KB/s, 0 seconds passed
    ...45%, 0.33 
 MB, 1807 KB/s, 0 seconds passed
    ...46%, 0.34 MB, 1849 KB/s, 0 seconds passed
    ...47%, 0.34 MB, 1885 KB/s, 0 seconds passed
    ...48%, 0.35 MB, 1927 KB/s, 0 seconds passed
    ...50%, 0.36 MB, 1968 KB/s, 0 seconds passed
    ...51%, 0.37 MB, 2010 KB/s, 0 seconds passed
    ...52%, 0.38 MB, 2050 KB/s, 0 seconds passed
    ...53%, 0.38 MB, 2092 KB/s, 0 seconds passed
    ...54%, 0.39 MB, 2129 KB/s, 0 seconds passed
    ...55%, 0.40 MB, 2170 KB/s, 0 seconds passed
    ...56%, 0.41 MB, 2210 KB/s, 0 seconds passed
    ...57%, 0.41 MB, 2251 KB/s, 0 seconds passed
    ...58%, 0.42 MB, 2287 KB/s, 0 seconds passed
    ...59%, 0.43 MB, 2329 KB/s, 0 seconds passed
    ...60%, 0.44 MB, 2370 KB/s, 0 seconds passed
    ...62%, 0.45 MB, 2411 KB/s, 0 seconds passed
    ...63%, 0.45 MB, 2450 KB/s, 0 seconds passed
    ...64%, 0.46 MB, 2491 KB/s, 0 seconds passed
    ...65%, 0.47 MB, 2525 KB/s, 0 seconds passed
    ...66%, 0.48 MB, 2566 KB/s, 0 seconds passed
    ...67%, 0.48 MB, 2604 KB/s, 0 
 seconds passed
    ...68%, 0.49 MB, 2645 KB/s, 0 seconds passed
    ...69%, 0.50 MB, 2685 KB/s, 0 seconds passed
    ...70%, 0.51 MB, 2726 KB/s, 0 seconds passed
    ...71%, 0.52 MB, 2760 KB/s, 0 seconds passed
    ...72%, 0.52 MB, 2801 KB/s, 0 seconds passed
    ...73%, 0.53 MB, 2839 KB/s, 0 seconds passed
    ...75%, 0.54 MB, 2879 KB/s, 0 seconds passed
    ...76%, 0.55 MB, 2911 KB/s, 0 seconds passed
    ...77%, 0.55 MB, 2952 KB/s, 0 seconds passed
    ...78%, 0.56 MB, 2992 KB/s, 0 seconds passed
    ...79%, 0.57 MB, 3032 KB/s, 0 seconds passed
    ...80%, 0.58 MB, 3072 KB/s, 0 seconds passed
    ...81%, 0.59 MB, 3112 KB/s, 0 seconds passed
    ...82%, 0.59 MB, 3146 KB/s, 0 seconds passed
    ...83%, 0.60 MB, 3186 KB/s, 0 seconds passed
    ...84%, 0.61 MB, 3225 KB/s, 0 seconds passed
    ...85%, 0.62 MB, 3265 KB/s, 0 seconds passed
    ...87%, 0.62 MB, 3301 KB/s, 0 seconds passed
    ...88%, 0.63 MB, 3341 KB/s, 0 seconds passed
    ...89%, 0.64 MB, 3377 KB/s, 0 seconds passed
  
   ...90%, 0.65 MB, 3417 KB/s, 0 seconds passed
    ...91%, 0.66 MB, 3456 KB/s, 0 seconds passed
    ...92%, 0.66 MB, 3495 KB/s, 0 seconds passed
    ...93%, 0.67 MB, 3526 KB/s, 0 seconds passed
    ...94%, 0.68 MB, 3566 KB/s, 0 seconds passed
    ...95%, 0.69 MB, 3604 KB/s, 0 seconds passed
    ...96%, 0.70 MB, 3644 KB/s, 0 seconds passed
    ...97%, 0.70 MB, 3676 KB/s, 0 seconds passed
    ...99%, 0.71 MB, 3715 KB/s, 0 seconds passed
    ...100%, 0.72 MB, 3752 KB/s, 0 seconds passed
+    Exception in thread Thread-10:
     Traceback (most recent call last):
       File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
         self.run()
@@ -497,11 +497,11 @@ Finally, we launch tuning jobs and evaluate the end-to-end performance.
       File "tvm/_ffi/_cython/./packed_func.pxi", line 236, in tvm._ffi._cy3.core.FuncCall3
       File "tvm/_ffi/_cython/./base.pxi", line 160, in tvm._ffi._cy3.core.CALL
     tvm._ffi.base.TVMError: Traceback (most recent call last):
-      [bt] (4) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f43bf236f01]
-      [bt] (3) /workspace/build/libtvm.so(std::_Function_handler<void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*), tvm::relay::backend::GraphRuntimeCodegenModule::GetFunction(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, tvm::runtime::ObjectPtr<tvm::runtime::Object> const&)::{lambda(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)#5}>::_M_invoke(std::_Any_data const&, tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&)+0x17) [0x7f43b [...]
-      [bt] (2) /workspace/build/libtvm.so(tvm::relay::backend::GraphRuntimeCodegenModule::GetFunction(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, tvm::runtime::ObjectPtr<tvm::runtime::Object> const&)::{lambda(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)#5}::operator()(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*) const+0x58) [0x7f43bf0daa18]
-      [bt] (1) /workspace/build/libtvm.so(tvm::runtime::TVMArgValue::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >[abi:cxx11]() const+0x13b) [0x7f43be94214b]
-      [bt] (0) /workspace/build/libtvm.so(dmlc::LogMessageFatal::~LogMessageFatal()+0x32) [0x7f43be92c302]
+      [bt] (4) /workspace/build/libtvm.so(TVMFuncCall+0x61) [0x7f90b15790e1]
+      [bt] (3) /workspace/build/libtvm.so(std::_Function_handler<void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*), tvm::relay::backend::GraphRuntimeCodegenModule::GetFunction(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, tvm::runtime::ObjectPtr<tvm::runtime::Object> const&)::{lambda(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)#5}>::_M_invoke(std::_Any_data const&, tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&)+0x17) [0x7f90b [...]
+      [bt] (2) /workspace/build/libtvm.so(tvm::relay::backend::GraphRuntimeCodegenModule::GetFunction(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, tvm::runtime::ObjectPtr<tvm::runtime::Object> const&)::{lambda(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)#5}::operator()(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*) const+0x58) [0x7f90b141ba08]
+      [bt] (1) /workspace/build/libtvm.so(tvm::runtime::TVMArgValue::operator std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >[abi:cxx11]() const+0x13b) [0x7f90b0c7db6b]
+      [bt] (0) /workspace/build/libtvm.so(dmlc::LogMessageFatal::~LogMessageFatal()+0x32) [0x7f90b0c67d22]
       File "/workspace/include/tvm/runtime/packed_func.h", line 507
     TVMError: Check failed: type_code_ == kTVMStr (8 vs. 11) : expected str but get Object
 
diff --git a/docs/_sources/vta/tutorials/frontend/deploy_classification.rst.txt b/docs/_sources/vta/tutorials/frontend/deploy_classification.rst.txt
index bdde011..05bea38 100644
--- a/docs/_sources/vta/tutorials/frontend/deploy_classification.rst.txt
+++ b/docs/_sources/vta/tutorials/frontend/deploy_classification.rst.txt
@@ -243,8 +243,8 @@ The compilation steps are:
 
  .. code-block:: none
 
-
    ...12%, 0.01 MB, 40 KB/s, 0 seconds passed
    ...25%, 0.02 MB, 80 KB/s, 0 seconds passed
    ...38%, 0.02 MB, 120 KB/s, 0 seconds passed
    ...51%, 0.03 MB, 159 KB/s, 0 seconds passed
    ...64%, 0.04 MB, 199 KB/s, 0 seconds passed
    ...77%, 0.05 MB, 238 KB/s, 0 seconds passed
    ...90%, 0.05 MB, 278 KB/s, 0 seconds passed
    ...100%, 0.06 MB, 317 KB/s, 0 seconds passed
-    resnet18_v1 inference graph built in 4.14s!
+
    ...12%, 0.01 MB, 56 KB/s, 0 seconds passed
    ...25%, 0.02 MB, 112 KB/s, 0 seconds passed
    ...38%, 0.02 MB, 167 KB/s, 0 seconds passed
    ...51%, 0.03 MB, 222 KB/s, 0 seconds passed
    ...64%, 0.04 MB, 277 KB/s, 0 seconds passed
    ...77%, 0.05 MB, 332 KB/s, 0 seconds passed
    ...90%, 0.05 MB, 387 KB/s, 0 seconds passed
    ...100%, 0.06 MB, 441 KB/s, 0 seconds passed
+    resnet18_v1 inference graph built in 3.54s!
 
 
 
diff --git a/docs/_sources/vta/tutorials/frontend/deploy_detection.rst.txt b/docs/_sources/vta/tutorials/frontend/deploy_detection.rst.txt
index 2e471dc..c9963ef 100644
--- a/docs/_sources/vta/tutorials/frontend/deploy_detection.rst.txt
+++ b/docs/_sources/vta/tutorials/frontend/deploy_detection.rst.txt
@@ -315,7 +315,7 @@ The compilation steps are:
 
  .. code-block:: none
 
-    yolov3-tiny inference graph built in 4.81s!
+    yolov3-tiny inference graph built in 4.76s!
 
 
 
diff --git a/docs/_sources/vta/tutorials/frontend/sg_execution_times.rst.txt b/docs/_sources/vta/tutorials/frontend/sg_execution_times.rst.txt
index 57b76fb..eb3f2dc 100644
--- a/docs/_sources/vta/tutorials/frontend/sg_execution_times.rst.txt
+++ b/docs/_sources/vta/tutorials/frontend/sg_execution_times.rst.txt
@@ -5,7 +5,7 @@
 
 Computation times
 =================
-**00:53.252** total execution time for **vta_tutorials_frontend** files:
+**00:49.135** total execution time for **vta_tutorials_frontend** files:
 
-- **00:31.214**: :ref:`sphx_glr_vta_tutorials_frontend_deploy_detection.py` (``deploy_detection.py``)
-- **00:22.038**: :ref:`sphx_glr_vta_tutorials_frontend_deploy_classification.py` (``deploy_classification.py``)
+- **00:29.567**: :ref:`sphx_glr_vta_tutorials_frontend_deploy_detection.py` (``deploy_detection.py``)
+- **00:19.568**: :ref:`sphx_glr_vta_tutorials_frontend_deploy_classification.py` (``deploy_classification.py``)
diff --git a/docs/_sources/vta/tutorials/matrix_multiply.rst.txt b/docs/_sources/vta/tutorials/matrix_multiply.rst.txt
index 05165da..624e877 100644
--- a/docs/_sources/vta/tutorials/matrix_multiply.rst.txt
+++ b/docs/_sources/vta/tutorials/matrix_multiply.rst.txt
@@ -308,41 +308,33 @@ After we construct the schedule, by default the schedule computes
     allocate B_buf[int8 * 65536]
     // attr [C_buf] storage_scope = "global"
     allocate C_buf[int32 * 256]
-    produce A_buf {
-      for (i1, 0, 16) {
-        for (i3, 0, 16) {
-          A_buf[((i1*16) + i3)] = A[((i1*16) + i3)]
-        }
+    for (i1, 0, 16) {
+      for (i3, 0, 16) {
+        A_buf[((i1*16) + i3)] = A[((i1*16) + i3)]
       }
     }
-    produce B_buf {
-      for (i0, 0, 16) {
-        for (i1, 0, 16) {
-          for (i2, 0, 16) {
-            for (i3, 0, 16) {
-              B_buf[((((i0*4096) + (i1*256)) + (i2*16)) + i3)] = B[((((i0*4096) + (i1*256)) + (i2*16)) + i3)]
-            }
+    for (i0, 0, 16) {
+      for (i1, 0, 16) {
+        for (i2, 0, 16) {
+          for (i3, 0, 16) {
+            B_buf[((((i0*4096) + (i1*256)) + (i2*16)) + i3)] = B[((((i0*4096) + (i1*256)) + (i2*16)) + i3)]
           }
         }
       }
     }
-    produce C_buf {
-      for (co, 0, 16) {
-        for (ci, 0, 16) {
-          C_buf[((co*16) + ci)] = 0
-          for (ko, 0, 16) {
-            for (ki, 0, 16) {
-              C_buf[((co*16) + ci)] = (C_buf[((co*16) + ci)] + (int32(A_buf[((ko*16) + ki)])*int32(B_buf[((((co*4096) + (ko*256)) + (ci*16)) + ki)])))
-            }
+    for (co, 0, 16) {
+      for (ci, 0, 16) {
+        C_buf[((co*16) + ci)] = 0
+        for (ko, 0, 16) {
+          for (ki, 0, 16) {
+            C_buf[((co*16) + ci)] = (C_buf[((co*16) + ci)] + (int32(A_buf[((ko*16) + ki)])*int32(B_buf[((((co*4096) + (ko*256)) + (ci*16)) + ki)])))
           }
         }
       }
     }
-    produce C {
-      for (i1, 0, 16) {
-        for (i3, 0, 16) {
-          C[((i1*16) + i3)] = int8(C_buf[((i1*16) + i3)])
-        }
+    for (i1, 0, 16) {
+      for (i3, 0, 16) {
+        C[((i1*16) + i3)] = int8(C_buf[((i1*16) + i3)])
       }
     }
 
@@ -453,36 +445,28 @@ moving the copy operations into the matrix multiplication loop.
     allocate A_buf[int8 * 16]
     // attr [B_buf] storage_scope = "local.wgt_buffer"
     allocate B_buf[int8 * 16]
-    produce C_buf {
-      for (co, 0, 16) {
-        for (ci, 0, 16) {
-          C_buf[((co*16) + ci)] = 0
-          for (ko, 0, 16) {
-            produce A_buf {
-              // attr [iter_var(i0, )] pragma_dma_copy = 1
-              for (i3, 0, 16) {
-                A_buf[i3] = A[((ko*16) + i3)]
-              }
-            }
-            produce B_buf {
-              // attr [iter_var(i0, )] pragma_dma_copy = 1
-              for (i3, 0, 16) {
-                B_buf[i3] = B[((((co*4096) + (ko*256)) + (ci*16)) + i3)]
-              }
-            }
-            for (ki, 0, 16) {
-              C_buf[((co*16) + ci)] = (C_buf[((co*16) + ci)] + (int32(A_buf[ki])*int32(B_buf[ki])))
-            }
+    for (co, 0, 16) {
+      for (ci, 0, 16) {
+        C_buf[((co*16) + ci)] = 0
+        for (ko, 0, 16) {
+          // attr [iter_var(i0, )] pragma_dma_copy = 1
+          for (i3, 0, 16) {
+            A_buf[i3] = A[((ko*16) + i3)]
+          }
+          // attr [iter_var(i0, )] pragma_dma_copy = 1
+          for (i3, 0, 16) {
+            B_buf[i3] = B[((((co*4096) + (ko*256)) + (ci*16)) + i3)]
+          }
+          for (ki, 0, 16) {
+            C_buf[((co*16) + ci)] = (C_buf[((co*16) + ci)] + (int32(A_buf[ki])*int32(B_buf[ki])))
           }
         }
       }
     }
-    produce C {
-      // attr [iter_var(i0, )] pragma_dma_copy = 1
-      for (i1, 0, 16) {
-        for (i3, 0, 16) {
-          C[((i1*16) + i3)] = int8(C_buf[((i1*16) + i3)])
-        }
+    // attr [iter_var(i0, )] pragma_dma_copy = 1
+    for (i1, 0, 16) {
+      for (i3, 0, 16) {
+        C[((i1*16) + i3)] = int8(C_buf[((i1*16) + i3)])
       }
     }
 
@@ -538,40 +522,31 @@ by the VTA runtime JIT compiler.
     // attr [C_buf] storage_scope = "local.acc_buffer"
     // attr [A_buf] storage_scope = "local.inp_buffer"
     // attr [B_buf] storage_scope = "local.wgt_buffer"
-    produce C_buf {
+    // attr [iter_var(vta, , vta)] coproc_scope = 2
+    // attr [iter_var(vta, , vta)] coproc_uop_scope = "VTAPushGEMMOp"
+    VTAUopLoopBegin(16, 1, 0, 0)
+    VTAUopPush(0, 1, 0, 0, 0, 0, 0, 0)
+    VTAUopLoopEnd()
+    vta.coproc_dep_push(2, 1)
+    for (ko, 0, 16) {
+      // attr [iter_var(vta, , vta)] coproc_scope = 1
+      vta.coproc_dep_pop(2, 1)
+      VTALoadBuffer2D(tvm_thread_context(VTATLSCommandHandle()), A, ko, 1, 1, 1, 0, 0, 0, 0, 0, 2)
+      VTALoadBuffer2D(tvm_thread_context(VTATLSCommandHandle()), B, ko, 1, 16, 16, 0, 0, 0, 0, 0, 1)
+      vta.coproc_dep_push(1, 2)
       // attr [iter_var(vta, , vta)] coproc_scope = 2
+      vta.coproc_dep_pop(1, 2)
       // attr [iter_var(vta, , vta)] coproc_uop_scope = "VTAPushGEMMOp"
-      VTAUopLoopBegin(16, 1, 0, 0)
-      VTAUopPush(0, 1, 0, 0, 0, 0, 0, 0)
+      VTAUopLoopBegin(16, 1, 0, 1)
+      VTAUopPush(0, 0, 0, 0, 0, 0, 0, 0)
       VTAUopLoopEnd()
       vta.coproc_dep_push(2, 1)
-      for (ko, 0, 16) {
-        // attr [iter_var(vta, , vta)] coproc_scope = 1
-        vta.coproc_dep_pop(2, 1)
-        produce A_buf {
-          VTALoadBuffer2D(tvm_thread_context(VTATLSCommandHandle()), A, ko, 1, 1, 1, 0, 0, 0, 0, 0, 2)
-        }
-        // attr [iter_var(vta, , vta)] coproc_scope = 1
-        produce B_buf {
-          VTALoadBuffer2D(tvm_thread_context(VTATLSCommandHandle()), B, ko, 1, 16, 16, 0, 0, 0, 0, 0, 1)
-        }
-        vta.coproc_dep_push(1, 2)
-        // attr [iter_var(vta, , vta)] coproc_scope = 2
-        vta.coproc_dep_pop(1, 2)
-        // attr [iter_var(vta, , vta)] coproc_uop_scope = "VTAPushGEMMOp"
-        VTAUopLoopBegin(16, 1, 0, 1)
-        VTAUopPush(0, 0, 0, 0, 0, 0, 0, 0)
-        VTAUopLoopEnd()
-        vta.coproc_dep_push(2, 1)
-      }
-      vta.coproc_dep_push(2, 3)
-      vta.coproc_dep_pop(2, 1)
     }
+    vta.coproc_dep_push(2, 3)
+    vta.coproc_dep_pop(2, 1)
     // attr [iter_var(vta, , vta)] coproc_scope = 3
     vta.coproc_dep_pop(2, 3)
-    produce C {
-      VTAStoreBuffer2D(tvm_thread_context(VTATLSCommandHandle()), 0, 4, C, 0, 16, 1, 16)
-    }
+    VTAStoreBuffer2D(tvm_thread_context(VTATLSCommandHandle()), 0, 4, C, 0, 16, 1, 16)
     vta.coproc_sync()
 
 
diff --git a/docs/_sources/vta/tutorials/optimize/convolution_opt.rst.txt b/docs/_sources/vta/tutorials/optimize/convolution_opt.rst.txt
index 862cf6d..ec65809 100644
--- a/docs/_sources/vta/tutorials/optimize/convolution_opt.rst.txt
+++ b/docs/_sources/vta/tutorials/optimize/convolution_opt.rst.txt
@@ -261,44 +261,38 @@ Those include:
     allocate kernel_buf[int8 * 589824]
     // attr [res_conv] storage_scope = "global"
     allocate res_conv[int32 * 50176]
-    produce data_buf {
-      for (i1, 0, 16) {
-        for (i2, 0, 16) {
-          for (i3, 0, 16) {
-            for (i5, 0, 16) {
-              data_buf[((((i1*4096) + (i2*256)) + (i3*16)) + i5)] = tvm_if_then_else(((((1 <= i2) && (i2 < 15)) && (1 <= i3)) && (i3 < 15)), data[(((((i1*3136) + (i2*224)) + (i3*16)) + i5) - 240)], (int8)0)
-            }
+    for (i1, 0, 16) {
+      for (i2, 0, 16) {
+        for (i3, 0, 16) {
+          for (i5, 0, 16) {
+            data_buf[((((i1*4096) + (i2*256)) + (i3*16)) + i5)] = tvm_if_then_else(((((1 <= i2) && (i2 < 15)) && (1 <= i3)) && (i3 < 15)), data[(((((i1*3136) + (i2*224)) + (i3*16)) + i5) - 240)], (int8)0)
           }
         }
       }
     }
-    produce kernel_buf {
-      for (i0, 0, 16) {
-        for (i1, 0, 16) {
-          for (i2, 0, 3) {
-            for (i3, 0, 3) {
-              for (i4, 0, 16) {
-                for (i5, 0, 16) {
-                  kernel_buf[((((((i0*36864) + (i1*2304)) + (i2*768)) + (i3*256)) + (i4*16)) + i5)] = kernel[((((((i0*36864) + (i1*2304)) + (i2*768)) + (i3*256)) + (i4*16)) + i5)]
-                }
+    for (i0, 0, 16) {
+      for (i1, 0, 16) {
+        for (i2, 0, 3) {
+          for (i3, 0, 3) {
+            for (i4, 0, 16) {
+              for (i5, 0, 16) {
+                kernel_buf[((((((i0*36864) + (i1*2304)) + (i2*768)) + (i3*256)) + (i4*16)) + i5)] = kernel[((((((i0*36864) + (i1*2304)) + (i2*768)) + (i3*256)) + (i4*16)) + i5)]
               }
             }
           }
         }
       }
     }
-    produce res_conv {
-      for (co, 0, 16) {
-        for (i, 0, 14) {
-          for (j, 0, 14) {
-            for (ci, 0, 16) {
-              res_conv[((((co*3136) + (i*224)) + (j*16)) + ci)] = 0
-              for (ic, 0, 16) {
-                for (dy, 0, 3) {
-                  for (dx, 0, 3) {
-                    for (ic_tns, 0, 16) {
-                      res_conv[((((co*3136) + (i*224)) + (j*16)) + ci)] = (res_conv[((((co*3136) + (i*224)) + (j*16)) + ci)] + (int32(data_buf[((((((ic*4096) + (i*256)) + (dy*256)) + (j*16)) + (dx*16)) + ic_tns)])*int32(kernel_buf[((((((co*36864) + (ic*2304)) + (dy*768)) + (dx*256)) + (ci*16)) + ic_tns)])))
-                    }
+    for (co, 0, 16) {
+      for (i, 0, 14) {
+        for (j, 0, 14) {
+          for (ci, 0, 16) {
+            res_conv[((((co*3136) + (i*224)) + (j*16)) + ci)] = 0
+            for (ic, 0, 16) {
+              for (dy, 0, 3) {
+                for (dx, 0, 3) {
+                  for (ic_tns, 0, 16) {
+                    res_conv[((((co*3136) + (i*224)) + (j*16)) + ci)] = (res_conv[((((co*3136) + (i*224)) + (j*16)) + ci)] + (int32(data_buf[((((((ic*4096) + (i*256)) + (dy*256)) + (j*16)) + (dx*16)) + ic_tns)])*int32(kernel_buf[((((((co*36864) + (ic*2304)) + (dy*768)) + (dx*256)) + (ci*16)) + ic_tns)])))
                   }
                 }
               }
@@ -307,46 +301,38 @@ Those include:
         }
       }
     }
-    produce res_shr {
-      for (i1, 0, 16) {
-        for (i2, 0, 14) {
-          for (i3, 0, 14) {
-            for (i5, 0, 16) {
-              res_conv[((((i1*3136) + (i2*224)) + (i3*16)) + i5)] = shift_right(res_conv[((((i1*3136) + (i2*224)) + (i3*16)) + i5)], 8)
-            }
+    for (i1, 0, 16) {
+      for (i2, 0, 14) {
+        for (i3, 0, 14) {
+          for (i5, 0, 16) {
+            res_conv[((((i1*3136) + (i2*224)) + (i3*16)) + i5)] = shift_right(res_conv[((((i1*3136) + (i2*224)) + (i3*16)) + i5)], 8)
           }
         }
       }
     }
-    produce res_max {
-      for (i1, 0, 16) {
-        for (i2, 0, 14) {
-          for (i3, 0, 14) {
-            for (i5, 0, 16) {
-              res_conv[((((i1*3136) + (i2*224)) + (i3*16)) + i5)] = max(res_conv[((((i1*3136) + (i2*224)) + (i3*16)) + i5)], 0)
-            }
+    for (i1, 0, 16) {
+      for (i2, 0, 14) {
+        for (i3, 0, 14) {
+          for (i5, 0, 16) {
+            res_conv[((((i1*3136) + (i2*224)) + (i3*16)) + i5)] = max(res_conv[((((i1*3136) + (i2*224)) + (i3*16)) + i5)], 0)
           }
         }
       }
     }
-    produce res_min {
-      for (i1, 0, 16) {
-        for (i2, 0, 14) {
-          for (i3, 0, 14) {
-            for (i5, 0, 16) {
-              res_conv[((((i1*3136) + (i2*224)) + (i3*16)) + i5)] = min(res_conv[((((i1*3136) + (i2*224)) + (i3*16)) + i5)], 127)
-            }
+    for (i1, 0, 16) {
+      for (i2, 0, 14) {
+        for (i3, 0, 14) {
+          for (i5, 0, 16) {
+            res_conv[((((i1*3136) + (i2*224)) + (i3*16)) + i5)] = min(res_conv[((((i1*3136) + (i2*224)) + (i3*16)) + i5)], 127)
           }
         }
       }
     }
-    produce res {
-      for (i1, 0, 16) {
-        for (i2, 0, 14) {
-          for (i3, 0, 14) {
-            for (i5, 0, 16) {
-              res[((((i1*3136) + (i2*224)) + (i3*16)) + i5)] = int8(res_conv[((((i1*3136) + (i2*224)) + (i3*16)) + i5)])
-            }
+    for (i1, 0, 16) {
+      for (i2, 0, 14) {
+        for (i3, 0, 14) {
+          for (i5, 0, 16) {
+            res[((((i1*3136) + (i2*224)) + (i3*16)) + i5)] = int8(res_conv[((((i1*3136) + (i2*224)) + (i3*16)) + i5)])
           }
         }
       }
@@ -462,57 +448,49 @@ below.
     allocate kernel_buf[int8 * 589824]
     // attr [res_conv] storage_scope = "global"
     allocate res_conv[int32 * 25088]
-    produce data_buf {
-      for (i1, 0, 16) {
-        for (i2, 0, 16) {
-          for (i3, 0, 16) {
-            for (i5, 0, 16) {
-              data_buf[((((i1*4096) + (i2*256)) + (i3*16)) + i5)] = tvm_if_then_else(((((1 <= i2) && (i2 < 15)) && (1 <= i3)) && (i3 < 15)), data[(((((i1*3136) + (i2*224)) + (i3*16)) + i5) - 240)], (int8)0)
-            }
+    for (i1, 0, 16) {
+      for (i2, 0, 16) {
+        for (i3, 0, 16) {
+          for (i5, 0, 16) {
+            data_buf[((((i1*4096) + (i2*256)) + (i3*16)) + i5)] = tvm_if_then_else(((((1 <= i2) && (i2 < 15)) && (1 <= i3)) && (i3 < 15)), data[(((((i1*3136) + (i2*224)) + (i3*16)) + i5) - 240)], (int8)0)
           }
         }
       }
     }
-    produce kernel_buf {
-      for (i0, 0, 16) {
-        for (i1, 0, 16) {
-          for (i2, 0, 3) {
-            for (i3, 0, 3) {
-              for (i4, 0, 16) {
-                for (i5, 0, 16) {
-                  kernel_buf[((((((i0*36864) + (i1*2304)) + (i2*768)) + (i3*256)) + (i4*16)) + i5)] = kernel[((((((i0*36864) + (i1*2304)) + (i2*768)) + (i3*256)) + (i4*16)) + i5)]
-                }
+    for (i0, 0, 16) {
+      for (i1, 0, 16) {
+        for (i2, 0, 3) {
+          for (i3, 0, 3) {
+            for (i4, 0, 16) {
+              for (i5, 0, 16) {
+                kernel_buf[((((((i0*36864) + (i1*2304)) + (i2*768)) + (i3*256)) + (i4*16)) + i5)] = kernel[((((((i0*36864) + (i1*2304)) + (i2*768)) + (i3*256)) + (i4*16)) + i5)]
               }
             }
           }
         }
       }
     }
-    produce res {
-      for (i2.outer, 0, 2) {
-        produce res_conv {
-          for (co.init, 0, 8) {
-            for (i.init, 0, 7) {
-              for (j.init, 0, 14) {
-                for (ci.init, 0, 16) {
-                  res_conv[((((co.init*1568) + (i.init*224)) + (j.init*16)) + ci.init)] = 0
-                  res_conv[(((((co.init*1568) + (i.init*224)) + (j.init*16)) + ci.init) + 12544)] = 0
-                }
-              }
+    for (i2.outer, 0, 2) {
+      for (co.init, 0, 8) {
+        for (i.init, 0, 7) {
+          for (j.init, 0, 14) {
+            for (ci.init, 0, 16) {
+              res_conv[((((co.init*1568) + (i.init*224)) + (j.init*16)) + ci.init)] = 0
+              res_conv[(((((co.init*1568) + (i.init*224)) + (j.init*16)) + ci.init) + 12544)] = 0
             }
           }
-          for (ic.outer, 0, 16) {
-            for (co, 0, 8) {
-              for (i, 0, 7) {
-                for (dy, 0, 3) {
-                  for (dx, 0, 3) {
-                    for (j, 0, 14) {
-                      for (ci, 0, 16) {
-                        for (ic_tns, 0, 16) {
-                          res_conv[((((co*1568) + (i*224)) + (j*16)) + ci)] = (res_conv[((((co*1568) + (i*224)) + (j*16)) + ci)] + (int32(data_buf[(((((((ic.outer*4096) + (i2.outer*1792)) + (i*256)) + (dy*256)) + (j*16)) + (dx*16)) + ic_tns)])*int32(kernel_buf[((((((co*36864) + (ic.outer*2304)) + (dy*768)) + (dx*256)) + (ci*16)) + ic_tns)])))
-                          res_conv[(((((co*1568) + (i*224)) + (j*16)) + ci) + 12544)] = (res_conv[(((((co*1568) + (i*224)) + (j*16)) + ci) + 12544)] + (int32(data_buf[(((((((ic.outer*4096) + (i2.outer*1792)) + (i*256)) + (dy*256)) + (j*16)) + (dx*16)) + ic_tns)])*int32(kernel_buf[(((((((co*36864) + (ic.outer*2304)) + (dy*768)) + (dx*256)) + (ci*16)) + ic_tns) + 294912)])))
-                        }
-                      }
+        }
+      }
+      for (ic.outer, 0, 16) {
+        for (co, 0, 8) {
+          for (i, 0, 7) {
+            for (dy, 0, 3) {
+              for (dx, 0, 3) {
+                for (j, 0, 14) {
+                  for (ci, 0, 16) {
+                    for (ic_tns, 0, 16) {
+                      res_conv[((((co*1568) + (i*224)) + (j*16)) + ci)] = (res_conv[((((co*1568) + (i*224)) + (j*16)) + ci)] + (int32(data_buf[(((((((ic.outer*4096) + (i2.outer*1792)) + (i*256)) + (dy*256)) + (j*16)) + (dx*16)) + ic_tns)])*int32(kernel_buf[((((((co*36864) + (ic.outer*2304)) + (dy*768)) + (dx*256)) + (ci*16)) + ic_tns)])))
+                      res_conv[(((((co*1568) + (i*224)) + (j*16)) + ci) + 12544)] = (res_conv[(((((co*1568) + (i*224)) + (j*16)) + ci) + 12544)] + (int32(data_buf[(((((((ic.outer*4096) + (i2.outer*1792)) + (i*256)) + (dy*256)) + (j*16)) + (dx*16)) + ic_tns)])*int32(kernel_buf[(((((((co*36864) + (ic.outer*2304)) + (dy*768)) + (dx*256)) + (ci*16)) + ic_tns) + 294912)])))
                     }
                   }
                 }
@@ -520,49 +498,43 @@ below.
             }
           }
         }
-        produce res_shr {
-          for (i1, 0, 8) {
-            for (i2, 0, 7) {
-              for (i3, 0, 14) {
-                for (i5, 0, 16) {
-                  res_conv[((((i1*1568) + (i2*224)) + (i3*16)) + i5)] = shift_right(res_conv[((((i1*1568) + (i2*224)) + (i3*16)) + i5)], 8)
-                  res_conv[(((((i1*1568) + (i2*224)) + (i3*16)) + i5) + 12544)] = shift_right(res_conv[(((((i1*1568) + (i2*224)) + (i3*16)) + i5) + 12544)], 8)
-                }
-              }
+      }
+      for (i1, 0, 8) {
+        for (i2, 0, 7) {
+          for (i3, 0, 14) {
+            for (i5, 0, 16) {
+              res_conv[((((i1*1568) + (i2*224)) + (i3*16)) + i5)] = shift_right(res_conv[((((i1*1568) + (i2*224)) + (i3*16)) + i5)], 8)
+              res_conv[(((((i1*1568) + (i2*224)) + (i3*16)) + i5) + 12544)] = shift_right(res_conv[(((((i1*1568) + (i2*224)) + (i3*16)) + i5) + 12544)], 8)
             }
           }
         }
-        produce res_max {
-          for (i1, 0, 8) {
-            for (i2, 0, 7) {
-              for (i3, 0, 14) {
-                for (i5, 0, 16) {
-                  res_conv[((((i1*1568) + (i2*224)) + (i3*16)) + i5)] = max(res_conv[((((i1*1568) + (i2*224)) + (i3*16)) + i5)], 0)
-                  res_conv[(((((i1*1568) + (i2*224)) + (i3*16)) + i5) + 12544)] = max(res_conv[(((((i1*1568) + (i2*224)) + (i3*16)) + i5) + 12544)], 0)
-                }
-              }
+      }
+      for (i1, 0, 8) {
+        for (i2, 0, 7) {
+          for (i3, 0, 14) {
+            for (i5, 0, 16) {
+              res_conv[((((i1*1568) + (i2*224)) + (i3*16)) + i5)] = max(res_conv[((((i1*1568) + (i2*224)) + (i3*16)) + i5)], 0)
+              res_conv[(((((i1*1568) + (i2*224)) + (i3*16)) + i5) + 12544)] = max(res_conv[(((((i1*1568) + (i2*224)) + (i3*16)) + i5) + 12544)], 0)
             }
           }
         }
-        produce res_min {
-          for (i1, 0, 8) {
-            for (i2, 0, 7) {
-              for (i3, 0, 14) {
-                for (i5, 0, 16) {
-                  res_conv[((((i1*1568) + (i2*224)) + (i3*16)) + i5)] = min(res_conv[((((i1*1568) + (i2*224)) + (i3*16)) + i5)], 127)
-                  res_conv[(((((i1*1568) + (i2*224)) + (i3*16)) + i5) + 12544)] = min(res_conv[(((((i1*1568) + (i2*224)) + (i3*16)) + i5) + 12544)], 127)
-                }
-              }
+      }
+      for (i1, 0, 8) {
+        for (i2, 0, 7) {
+          for (i3, 0, 14) {
+            for (i5, 0, 16) {
+              res_conv[((((i1*1568) + (i2*224)) + (i3*16)) + i5)] = min(res_conv[((((i1*1568) + (i2*224)) + (i3*16)) + i5)], 127)
+              res_conv[(((((i1*1568) + (i2*224)) + (i3*16)) + i5) + 12544)] = min(res_conv[(((((i1*1568) + (i2*224)) + (i3*16)) + i5) + 12544)], 127)
             }
           }
         }
-        for (i1.inner, 0, 8) {
-          for (i2.inner, 0, 7) {
-            for (i3.inner, 0, 14) {
-              for (i5, 0, 16) {
-                res[(((((i1.inner*3136) + (i2.outer*1568)) + (i2.inner*224)) + (i3.inner*16)) + i5)] = int8(res_conv[((((i1.inner*1568) + (i2.inner*224)) + (i3.inner*16)) + i5)])
-                res[((((((i1.inner*3136) + (i2.outer*1568)) + (i2.inner*224)) + (i3.inner*16)) + i5) + 25088)] = int8(res_conv[(((((i1.inner*1568) + (i2.inner*224)) + (i3.inner*16)) + i5) + 12544)])
-              }
+      }
+      for (i1.inner, 0, 8) {
+        for (i2.inner, 0, 7) {
+          for (i3.inner, 0, 14) {
+            for (i5, 0, 16) {
+              res[(((((i1.inner*3136) + (i2.outer*1568)) + (i2.inner*224)) + (i3.inner*16)) + i5)] = int8(res_conv[((((i1.inner*1568) + (i2.inner*224)) + (i3.inner*16)) + i5)])
+              res[((((((i1.inner*3136) + (i2.outer*1568)) + (i2.inner*224)) + (i3.inner*16)) + i5) + 25088)] = int8(res_conv[(((((i1.inner*1568) + (i2.inner*224)) + (i3.inner*16)) + i5) + 12544)])
             }
           }
         }
@@ -647,104 +619,84 @@ and mapping the shift, and clipping computation to the vector ALU.
     // attr [res_conv] storage_scope = "local.acc_buffer"
     // attr [data_buf] storage_scope = "local.inp_buffer"
     // attr [kernel_buf] storage_scope = "local.wgt_buffer"
-    produce res {
-      vta.coproc_dep_push(3, 2)
-      vta.coproc_dep_push(3, 2)
-      for (i2.outer, 0, 2) {
-        produce res_conv {
-          for (cthread.s, 0, 2) {
-            // attr [iter_var(vta, , vta)] coproc_scope = 2
-            vta.coproc_dep_pop(3, 2)
-            // attr [iter_var(vta, , vta)] coproc_uop_scope = "VTAPushGEMMOp"
-            VTAUopLoopBegin(8, 98, 0, 0)
-            VTAUopLoopBegin(7, 14, 0, 0)
-            for (j.init, 0, 14) {
-              VTAUopPush(0, 1, ((cthread.s*784) + j.init), 0, 0, 0, 0, 0)
-            }
-            VTAUopLoopEnd()
-            VTAUopLoopEnd()
-            vta.coproc_dep_push(2, 1)
-          }
-          for (ic.outer, 0, 16) {
-            // attr [iter_var(vta, , vta)] coproc_scope = 1
-            vta.coproc_dep_pop(2, 1)
-            produce data_buf {
-              VTALoadBuffer2D(tvm_thread_context(VTATLSCommandHandle()), data, ((((ic.outer*196) + (i2.outer*98)) + (max((1 - (i2.outer*7)), 0)*14)) - 14), 14, ((9 - max((1 - (i2.outer*7)), 0)) - max(((i2.outer*7) - 6), 0)), 14, 1, max((1 - (i2.outer*7)), 0), 1, max(((i2.outer*7) - 6), 0), 0, 2)
-            }
-            // attr [iter_var(vta, , vta)] coproc_scope = 1
-            vta.coproc_dep_pop(2, 1)
-            produce data_buf {
-              VTALoadBuffer2D(tvm_thread_context(VTATLSCommandHandle()), data, ((((ic.outer*196) + (i2.outer*98)) + (max((1 - (i2.outer*7)), 0)*14)) - 14), 14, ((9 - max((1 - (i2.outer*7)), 0)) - max(((i2.outer*7) - 6), 0)), 14, 1, max((1 - (i2.outer*7)), 0), 1, max(((i2.outer*7) - 6), 0), 144, 2)
-            }
-            // attr [iter_var(vta, , vta)] coproc_scope = 1
-            produce kernel_buf {
-              VTALoadBuffer2D(tvm_thread_context(VTATLSCommandHandle()), kernel, (ic.outer*9), 9, 8, 144, 0, 0, 0, 0, 0, 1)
-            }
-            vta.coproc_dep_push(1, 2)
-            // attr [iter_var(vta, , vta)] coproc_scope = 1
-            produce kernel_buf {
-              VTALoadBuffer2D(tvm_thread_context(VTATLSCommandHandle()), kernel, ((ic.outer*9) + 1152), 9, 8, 144, 0, 0, 0, 0, 72, 1)
-            }
-            vta.coproc_dep_push(1, 2)
-            for (cthread.s, 0, 2) {
-              // attr [iter_var(vta, , vta)] coproc_scope = 2
-              vta.coproc_dep_pop(1, 2)
-              // attr [iter_var(vta, , vta)] coproc_uop_scope = "VTAPushGEMMOp"
-              VTAUopLoopBegin(8, 98, 0, 9)
-              VTAUopLoopBegin(7, 14, 16, 0)
-              for (dy, 0, 3) {
-                for (dx, 0, 3) {
-                  for (j, 0, 14) {
-                    VTAUopPush(0, 0, ((cthread.s*784) + j), ((((cthread.s*144) + (dy*16)) + j) + dx), (((cthread.s*72) + (dy*3)) + dx), 0, 0, 0)
-                  }
-                }
-              }
-              VTAUopLoopEnd()
-              VTAUopLoopEnd()
-              vta.coproc_dep_push(2, 1)
-            }
-          }
-          vta.coproc_dep_pop(2, 1)
-          vta.coproc_dep_pop(2, 1)
+    vta.coproc_dep_push(3, 2)
+    vta.coproc_dep_push(3, 2)
+    for (i2.outer, 0, 2) {
+      for (cthread.s, 0, 2) {
+        // attr [iter_var(vta, , vta)] coproc_scope = 2
+        vta.coproc_dep_pop(3, 2)
+        // attr [iter_var(vta, , vta)] coproc_uop_scope = "VTAPushGEMMOp"
+        VTAUopLoopBegin(8, 98, 0, 0)
+        VTAUopLoopBegin(7, 14, 0, 0)
+        for (j.init, 0, 14) {
+          VTAUopPush(0, 1, ((cthread.s*784) + j.init), 0, 0, 0, 0, 0)
         }
+        VTAUopLoopEnd()
+        VTAUopLoopEnd()
+        vta.coproc_dep_push(2, 1)
+      }
+      for (ic.outer, 0, 16) {
+        // attr [iter_var(vta, , vta)] coproc_scope = 1
+        vta.coproc_dep_pop(2, 1)
+        VTALoadBuffer2D(tvm_thread_context(VTATLSCommandHandle()), data, ((((ic.outer*196) + (i2.outer*98)) + (max((1 - (i2.outer*7)), 0)*14)) - 14), 14, ((9 - max((1 - (i2.outer*7)), 0)) - max(((i2.outer*7) - 6), 0)), 14, 1, max((1 - (i2.outer*7)), 0), 1, max(((i2.outer*7) - 6), 0), 0, 2)
+        VTALoadBuffer2D(tvm_thread_context(VTATLSCommandHandle()), kernel, (ic.outer*9), 9, 8, 144, 0, 0, 0, 0, 0, 1)
+        vta.coproc_dep_push(1, 2)
+        // attr [iter_var(vta, , vta)] coproc_scope = 1
+        vta.coproc_dep_pop(2, 1)
+        VTALoadBuffer2D(tvm_thread_context(VTATLSCommandHandle()), data, ((((ic.outer*196) + (i2.outer*98)) + (max((1 - (i2.outer*7)), 0)*14)) - 14), 14, ((9 - max((1 - (i2.outer*7)), 0)) - max(((i2.outer*7) - 6), 0)), 14, 1, max((1 - (i2.outer*7)), 0), 1, max(((i2.outer*7) - 6), 0), 144, 2)
+        VTALoadBuffer2D(tvm_thread_context(VTATLSCommandHandle()), kernel, ((ic.outer*9) + 1152), 9, 8, 144, 0, 0, 0, 0, 72, 1)
+        vta.coproc_dep_push(1, 2)
         for (cthread.s, 0, 2) {
           // attr [iter_var(vta, , vta)] coproc_scope = 2
-          // attr [iter_var(vta, , vta)] coproc_uop_scope = "VTAPushALUOp"
-          produce res_shr {
-            VTAUopLoopBegin(784, 1, 1, 0)
-            VTAUopPush(1, 0, (cthread.s*784), (cthread.s*784), 0, 3, 1, 8)
-            VTAUopLoopEnd()
-          }
-          // attr [iter_var(vta, , vta)] coproc_uop_scope = "VTAPushALUOp"
-          produce res_max {
-            VTAUopLoopBegin(784, 1, 1, 0)
-            VTAUopPush(1, 0, (cthread.s*784), (cthread.s*784), 0, 1, 1, 0)
-            VTAUopLoopEnd()
-          }
-          // attr [iter_var(vta, , vta)] coproc_uop_scope = "VTAPushALUOp"
-          produce res_min {
-            VTAUopLoopBegin(784, 1, 1, 0)
-            VTAUopPush(1, 0, (cthread.s*784), (cthread.s*784), 0, 0, 1, 127)
-            VTAUopLoopEnd()
+          vta.coproc_dep_pop(1, 2)
+          // attr [iter_var(vta, , vta)] coproc_uop_scope = "VTAPushGEMMOp"
+          VTAUopLoopBegin(8, 98, 0, 9)
+          VTAUopLoopBegin(7, 14, 16, 0)
+          for (dy, 0, 3) {
+            for (dx, 0, 3) {
+              for (j, 0, 14) {
+                VTAUopPush(0, 0, ((cthread.s*784) + j), ((((cthread.s*144) + (dy*16)) + j) + dx), (((cthread.s*72) + (dy*3)) + dx), 0, 0, 0)
+              }
+            }
           }
-          vta.coproc_dep_push(2, 3)
+          VTAUopLoopEnd()
+          VTAUopLoopEnd()
+          vta.coproc_dep_push(2, 1)
         }
-        for (cthread.s, 0, 2) {
-          // attr [iter_var(vta, , vta)] coproc_scope = 3
-          vta.coproc_dep_pop(2, 3)
-          for (i1.inner, 0, 8) {
-            for (i2.inner, 0, 7) {
-              for (i3.inner, 0, 14) {
-                VTAStoreBuffer2D(tvm_thread_context(VTATLSCommandHandle()), ((((cthread.s*784) + (i1.inner*98)) + (i2.inner*14)) + i3.inner), 4, res, (((((cthread.s*1568) + (i1.inner*196)) + (i2.outer*98)) + (i2.inner*14)) + i3.inner), 1, 1, 1)
-              }
+      }
+      vta.coproc_dep_pop(2, 1)
+      vta.coproc_dep_pop(2, 1)
+      for (cthread.s, 0, 2) {
+        // attr [iter_var(vta, , vta)] coproc_scope = 2
+        // attr [iter_var(vta, , vta)] coproc_uop_scope = "VTAPushALUOp"
+        VTAUopLoopBegin(784, 1, 1, 0)
+        VTAUopPush(1, 0, (cthread.s*784), (cthread.s*784), 0, 3, 1, 8)
+        VTAUopLoopEnd()
+        // attr [iter_var(vta, , vta)] coproc_uop_scope = "VTAPushALUOp"
+        VTAUopLoopBegin(784, 1, 1, 0)
+        VTAUopPush(1, 0, (cthread.s*784), (cthread.s*784), 0, 1, 1, 0)
+        VTAUopLoopEnd()
+        // attr [iter_var(vta, , vta)] coproc_uop_scope = "VTAPushALUOp"
+        VTAUopLoopBegin(784, 1, 1, 0)
+        VTAUopPush(1, 0, (cthread.s*784), (cthread.s*784), 0, 0, 1, 127)
+        VTAUopLoopEnd()
+        vta.coproc_dep_push(2, 3)
+      }
+      for (cthread.s, 0, 2) {
+        // attr [iter_var(vta, , vta)] coproc_scope = 3
+        vta.coproc_dep_pop(2, 3)
+        for (i1.inner, 0, 8) {
+          for (i2.inner, 0, 7) {
+            for (i3.inner, 0, 14) {
+              VTAStoreBuffer2D(tvm_thread_context(VTATLSCommandHandle()), ((((cthread.s*784) + (i1.inner*98)) + (i2.inner*14)) + i3.inner), 4, res, (((((cthread.s*1568) + (i1.inner*196)) + (i2.outer*98)) + (i2.inner*14)) + i3.inner), 1, 1, 1)
             }
           }
-          vta.coproc_dep_push(3, 2)
         }
+        vta.coproc_dep_push(3, 2)
       }
-      vta.coproc_dep_pop(3, 2)
-      vta.coproc_dep_pop(3, 2)
     }
+    vta.coproc_dep_pop(3, 2)
+    vta.coproc_dep_pop(3, 2)
     vta.coproc_sync()
 
 
diff --git a/docs/_sources/vta/tutorials/optimize/matrix_multiply_opt.rst.txt b/docs/_sources/vta/tutorials/optimize/matrix_multiply_opt.rst.txt
index 207f5a4..dfd2f74 100644
--- a/docs/_sources/vta/tutorials/optimize/matrix_multiply_opt.rst.txt
+++ b/docs/_sources/vta/tutorials/optimize/matrix_multiply_opt.rst.txt
@@ -206,62 +206,48 @@ Those include:
     allocate weight_buf[int8 * 1048576]
     // attr [res_gem] storage_scope = "global"
     allocate res_gem[int32 * 1024]
-    produce data_buf {
-      for (i1, 0, 64) {
-        for (i3, 0, 16) {
-          data_buf[((i1*16) + i3)] = data[((i1*16) + i3)]
-        }
+    for (i1, 0, 64) {
+      for (i3, 0, 16) {
+        data_buf[((i1*16) + i3)] = data[((i1*16) + i3)]
       }
     }
-    produce weight_buf {
-      for (i0, 0, 64) {
-        for (i1, 0, 64) {
-          for (i2, 0, 16) {
-            for (i3, 0, 16) {
-              weight_buf[((((i0*16384) + (i1*256)) + (i2*16)) + i3)] = weight[((((i0*16384) + (i1*256)) + (i2*16)) + i3)]
-            }
+    for (i0, 0, 64) {
+      for (i1, 0, 64) {
+        for (i2, 0, 16) {
+          for (i3, 0, 16) {
+            weight_buf[((((i0*16384) + (i1*256)) + (i2*16)) + i3)] = weight[((((i0*16384) + (i1*256)) + (i2*16)) + i3)]
           }
         }
       }
     }
-    produce res_gem {
-      for (co, 0, 64) {
-        for (ci, 0, 16) {
-          res_gem[((co*16) + ci)] = 0
-          for (ic, 0, 64) {
-            for (ic_tns, 0, 16) {
-              res_gem[((co*16) + ci)] = (res_gem[((co*16) + ci)] + (int32(data_buf[((ic*16) + ic_tns)])*int32(weight_buf[((((co*16384) + (ic*256)) + (ci*16)) + ic_tns)])))
-            }
+    for (co, 0, 64) {
+      for (ci, 0, 16) {
+        res_gem[((co*16) + ci)] = 0
+        for (ic, 0, 64) {
+          for (ic_tns, 0, 16) {
+            res_gem[((co*16) + ci)] = (res_gem[((co*16) + ci)] + (int32(data_buf[((ic*16) + ic_tns)])*int32(weight_buf[((((co*16384) + (ic*256)) + (ci*16)) + ic_tns)])))
           }
         }
       }
     }
-    produce res_shr {
-      for (i1, 0, 64) {
-        for (i3, 0, 16) {
-          res_gem[((i1*16) + i3)] = shift_right(res_gem[((i1*16) + i3)], 8)
-        }
+    for (i1, 0, 64) {
+      for (i3, 0, 16) {
+        res_gem[((i1*16) + i3)] = shift_right(res_gem[((i1*16) + i3)], 8)
       }
     }
-    produce res_max {
-      for (i1, 0, 64) {
-        for (i3, 0, 16) {
-          res_gem[((i1*16) + i3)] = max(res_gem[((i1*16) + i3)], 0)
-        }
+    for (i1, 0, 64) {
+      for (i3, 0, 16) {
+        res_gem[((i1*16) + i3)] = max(res_gem[((i1*16) + i3)], 0)
       }
     }
-    produce res_min {
-      for (i1, 0, 64) {
-        for (i3, 0, 16) {
-          res_gem[((i1*16) + i3)] = min(res_gem[((i1*16) + i3)], 127)
-        }
+    for (i1, 0, 64) {
+      for (i3, 0, 16) {
+        res_gem[((i1*16) + i3)] = min(res_gem[((i1*16) + i3)], 127)
       }
     }
-    produce res {
-      for (i1, 0, 64) {
-        for (i3, 0, 16) {
-          res[((i1*16) + i3)] = int8(res_gem[((i1*16) + i3)])
-        }
+    for (i1, 0, 64) {
+      for (i3, 0, 16) {
+        res[((i1*16) + i3)] = int8(res_gem[((i1*16) + i3)])
       }
     }
 
@@ -373,69 +359,55 @@ below:
     allocate weight_buf[int8 * 1048576]
     // attr [res_gem] storage_scope = "global"
     allocate res_gem[int32 * 256]
-    produce data_buf {
-      for (i1, 0, 64) {
-        for (i3, 0, 16) {
-          data_buf[((i1*16) + i3)] = data[((i1*16) + i3)]
-        }
+    for (i1, 0, 64) {
+      for (i3, 0, 16) {
+        data_buf[((i1*16) + i3)] = data[((i1*16) + i3)]
       }
     }
-    produce weight_buf {
-      for (i0, 0, 64) {
-        for (i1, 0, 64) {
-          for (i2, 0, 16) {
-            for (i3, 0, 16) {
-              weight_buf[((((i0*16384) + (i1*256)) + (i2*16)) + i3)] = weight[((((i0*16384) + (i1*256)) + (i2*16)) + i3)]
-            }
+    for (i0, 0, 64) {
+      for (i1, 0, 64) {
+        for (i2, 0, 16) {
+          for (i3, 0, 16) {
+            weight_buf[((((i0*16384) + (i1*256)) + (i2*16)) + i3)] = weight[((((i0*16384) + (i1*256)) + (i2*16)) + i3)]
           }
         }
       }
     }
-    produce res {
-      for (i1.outer, 0, 4) {
-        produce res_gem {
-          for (co.init, 0, 16) {
-            for (ci.init, 0, 16) {
-              res_gem[((co.init*16) + ci.init)] = 0
-            }
-          }
-          for (ic.outer, 0, 4) {
-            for (co, 0, 16) {
-              for (ic.inner, 0, 16) {
-                for (ci, 0, 16) {
-                  for (ic_tns, 0, 16) {
-                    res_gem[((co*16) + ci)] = (res_gem[((co*16) + ci)] + (int32(data_buf[(((ic.outer*256) + (ic.inner*16)) + ic_tns)])*int32(weight_buf[((((((i1.outer*262144) + (co*16384)) + (ic.outer*4096)) + (ic.inner*256)) + (ci*16)) + ic_tns)])))
-                  }
-                }
+    for (i1.outer, 0, 4) {
+      for (co.init, 0, 16) {
+        for (ci.init, 0, 16) {
+          res_gem[((co.init*16) + ci.init)] = 0
+        }
+      }
+      for (ic.outer, 0, 4) {
+        for (co, 0, 16) {
+          for (ic.inner, 0, 16) {
+            for (ci, 0, 16) {
+              for (ic_tns, 0, 16) {
+                res_gem[((co*16) + ci)] = (res_gem[((co*16) + ci)] + (int32(data_buf[(((ic.outer*256) + (ic.inner*16)) + ic_tns)])*int32(weight_buf[((((((i1.outer*262144) + (co*16384)) + (ic.outer*4096)) + (ic.inner*256)) + (ci*16)) + ic_tns)])))
               }
             }
           }
         }
-        produce res_shr {
-          for (i1, 0, 16) {
-            for (i3, 0, 16) {
-              res_gem[((i1*16) + i3)] = shift_right(res_gem[((i1*16) + i3)], 8)
-            }
-          }
+      }
+      for (i1, 0, 16) {
+        for (i3, 0, 16) {
+          res_gem[((i1*16) + i3)] = shift_right(res_gem[((i1*16) + i3)], 8)
         }
-        produce res_max {
-          for (i1, 0, 16) {
-            for (i3, 0, 16) {
-              res_gem[((i1*16) + i3)] = max(res_gem[((i1*16) + i3)], 0)
-            }
-          }
+      }
+      for (i1, 0, 16) {
+        for (i3, 0, 16) {
+          res_gem[((i1*16) + i3)] = max(res_gem[((i1*16) + i3)], 0)
         }
-        produce res_min {
-          for (i1, 0, 16) {
-            for (i3, 0, 16) {
-              res_gem[((i1*16) + i3)] = min(res_gem[((i1*16) + i3)], 127)
-            }
-          }
+      }
+      for (i1, 0, 16) {
+        for (i3, 0, 16) {
+          res_gem[((i1*16) + i3)] = min(res_gem[((i1*16) + i3)], 127)
         }
-        for (i1.inner, 0, 16) {
-          for (i3, 0, 16) {
-            res[(((i1.outer*256) + (i1.inner*16)) + i3)] = int8(res_gem[((i1.inner*16) + i3)])
-          }
+      }
+      for (i1.inner, 0, 16) {
+        for (i3, 0, 16) {
+          res[(((i1.outer*256) + (i1.inner*16)) + i3)] = int8(res_gem[((i1.inner*16) + i3)])
         }
       }
     }
@@ -518,70 +490,55 @@ and mapping the shift, and clipping computation to the vector ALU.
     // attr [res_gem] storage_scope = "local.acc_buffer"
     // attr [data_buf] storage_scope = "local.inp_buffer"
     // attr [weight_buf] storage_scope = "local.wgt_buffer"
-    produce res {
-      vta.coproc_dep_push(3, 2)
-      for (i1.outer, 0, 4) {
-        produce res_gem {
-          // attr [iter_var(vta, , vta)] coproc_scope = 2
-          vta.coproc_dep_pop(3, 2)
-          // attr [iter_var(vta, , vta)] coproc_uop_scope = "VTAPushGEMMOp"
-          VTAUopLoopBegin(16, 1, 0, 0)
-          VTAUopPush(0, 1, 0, 0, 0, 0, 0, 0)
-          VTAUopLoopEnd()
-          vta.coproc_dep_push(2, 1)
-          for (ic.outer, 0, 4) {
-            // attr [iter_var(vta, , vta)] coproc_scope = 1
-            vta.coproc_dep_pop(2, 1)
-            produce data_buf {
-              VTALoadBuffer2D(tvm_thread_context(VTATLSCommandHandle()), data, (ic.outer*16), 16, 1, 16, 0, 0, 0, 0, 0, 2)
-            }
-            // attr [iter_var(vta, , vta)] coproc_scope = 1
-            produce weight_buf {
-              VTALoadBuffer2D(tvm_thread_context(VTATLSCommandHandle()), weight, ((i1.outer*1024) + (ic.outer*16)), 16, 16, 64, 0, 0, 0, 0, 0, 1)
-            }
-            vta.coproc_dep_push(1, 2)
-            // attr [iter_var(vta, , vta)] coproc_scope = 2
-            vta.coproc_dep_pop(1, 2)
-            // attr [iter_var(vta, , vta)] coproc_uop_scope = "VTAPushGEMMOp"
-            VTAUopLoopBegin(16, 1, 0, 16)
-            VTAUopLoopBegin(16, 0, 1, 1)
-            VTAUopPush(0, 0, 0, 0, 0, 0, 0, 0)
-            VTAUopLoopEnd()
-            VTAUopLoopEnd()
-            vta.coproc_dep_push(2, 1)
-          }
-          vta.coproc_dep_pop(2, 1)
-        }
+    vta.coproc_dep_push(3, 2)
+    for (i1.outer, 0, 4) {
+      // attr [iter_var(vta, , vta)] coproc_scope = 2
+      vta.coproc_dep_pop(3, 2)
+      // attr [iter_var(vta, , vta)] coproc_uop_scope = "VTAPushGEMMOp"
+      VTAUopLoopBegin(16, 1, 0, 0)
+      VTAUopPush(0, 1, 0, 0, 0, 0, 0, 0)
+      VTAUopLoopEnd()
+      vta.coproc_dep_push(2, 1)
+      for (ic.outer, 0, 4) {
+        // attr [iter_var(vta, , vta)] coproc_scope = 1
+        vta.coproc_dep_pop(2, 1)
+        VTALoadBuffer2D(tvm_thread_context(VTATLSCommandHandle()), data, (ic.outer*16), 16, 1, 16, 0, 0, 0, 0, 0, 2)
+        VTALoadBuffer2D(tvm_thread_context(VTATLSCommandHandle()), weight, ((i1.outer*1024) + (ic.outer*16)), 16, 16, 64, 0, 0, 0, 0, 0, 1)
+        vta.coproc_dep_push(1, 2)
         // attr [iter_var(vta, , vta)] coproc_scope = 2
-        // attr [iter_var(vta, , vta)] coproc_uop_scope = "VTAPushALUOp"
-        produce res_shr {
-          VTAUopLoopBegin(16, 1, 1, 0)
-          VTAUopPush(1, 0, 0, 0, 0, 3, 1, 8)
-          VTAUopLoopEnd()
-        }
-        // attr [iter_var(vta, , vta)] coproc_uop_scope = "VTAPushALUOp"
-        produce res_max {
-          VTAUopLoopBegin(16, 1, 1, 0)
-          VTAUopPush(1, 0, 0, 0, 0, 1, 1, 0)
-          VTAUopLoopEnd()
-        }
-        // attr [iter_var(vta, , vta)] coproc_uop_scope = "VTAPushALUOp"
-        produce res_min {
-          VTAUopLoopBegin(16, 1, 1, 0)
-          VTAUopPush(1, 0, 0, 0, 0, 0, 1, 127)
-          VTAUopLoopEnd()
-        }
-        vta.coproc_dep_push(2, 3)
-        // attr [iter_var(vta, , vta)] coproc_scope = 3
-        vta.coproc_dep_pop(2, 3)
-        for (i1.inner, 0, 16) {
-          VTAStoreBuffer2D(tvm_thread_context(VTATLSCommandHandle()), i1.inner, 4, res, ((i1.outer*16) + i1.inner), 1, 1, 1)
-        }
-        vta.coproc_dep_push(3, 2)
+        vta.coproc_dep_pop(1, 2)
+        // attr [iter_var(vta, , vta)] coproc_uop_scope = "VTAPushGEMMOp"
+        VTAUopLoopBegin(16, 1, 0, 16)
+        VTAUopLoopBegin(16, 0, 1, 1)
+        VTAUopPush(0, 0, 0, 0, 0, 0, 0, 0)
+        VTAUopLoopEnd()
+        VTAUopLoopEnd()
+        vta.coproc_dep_push(2, 1)
       }
-      vta.coproc_dep_pop(3, 2)
+      vta.coproc_dep_pop(2, 1)
+      // attr [iter_var(vta, , vta)] coproc_scope = 2
+      // attr [iter_var(vta, , vta)] coproc_uop_scope = "VTAPushALUOp"
+      VTAUopLoopBegin(16, 1, 1, 0)
+      VTAUopPush(1, 0, 0, 0, 0, 3, 1, 8)
+      VTAUopLoopEnd()
+      // attr [iter_var(vta, , vta)] coproc_uop_scope = "VTAPushALUOp"
+      VTAUopLoopBegin(16, 1, 1, 0)
+      VTAUopPush(1, 0, 0, 0, 0, 1, 1, 0)
+      VTAUopLoopEnd()
+      // attr [iter_var(vta, , vta)] coproc_uop_scope = "VTAPushALUOp"
+      VTAUopLoopBegin(16, 1, 1, 0)
+      VTAUopPush(1, 0, 0, 0, 0, 0, 1, 127)
+      VTAUopLoopEnd()
+      vta.coproc_dep_push(2, 3)
+      // attr [iter_var(vta, , vta)] coproc_scope = 3
+      vta.coproc_dep_pop(2, 3)
+      for (i1.inner, 0, 16) {
+        VTAStoreBuffer2D(tvm_thread_context(VTATLSCommandHandle()), i1.inner, 4, res, ((i1.outer*16) + i1.inner), 1, 1, 1)
+      }
+      vta.coproc_dep_push(3, 2)
     }
     vta.coproc_sync()
+    vta.coproc_dep_pop(3, 2)
 
 
 
diff --git a/docs/_sources/vta/tutorials/optimize/sg_execution_times.rst.txt b/docs/_sources/vta/tutorials/optimize/sg_execution_times.rst.txt
index 62fcfb3..5538231 100644
--- a/docs/_sources/vta/tutorials/optimize/sg_execution_times.rst.txt
+++ b/docs/_sources/vta/tutorials/optimize/sg_execution_times.rst.txt
@@ -5,7 +5,7 @@
 
 Computation times
 =================
-**00:02.839** total execution time for **vta_tutorials_optimize** files:
+**00:02.898** total execution time for **vta_tutorials_optimize** files:
 
-- **00:02.496**: :ref:`sphx_glr_vta_tutorials_optimize_convolution_opt.py` (``convolution_opt.py``)
-- **00:00.343**: :ref:`sphx_glr_vta_tutorials_optimize_matrix_multiply_opt.py` (``matrix_multiply_opt.py``)
+- **00:02.520**: :ref:`sphx_glr_vta_tutorials_optimize_convolution_opt.py` (``convolution_opt.py``)
+- **00:00.378**: :ref:`sphx_glr_vta_tutorials_optimize_matrix_multiply_opt.py` (``matrix_multiply_opt.py``)
diff --git a/docs/_sources/vta/tutorials/sg_execution_times.rst.txt b/docs/_sources/vta/tutorials/sg_execution_times.rst.txt
index 00ca9f6..27e07b9 100644
--- a/docs/_sources/vta/tutorials/sg_execution_times.rst.txt
+++ b/docs/_sources/vta/tutorials/sg_execution_times.rst.txt
@@ -5,7 +5,7 @@
 
 Computation times
 =================
-**00:00.650** total execution time for **vta_tutorials** files:
+**00:00.704** total execution time for **vta_tutorials** files:
 
-- **00:00.327**: :ref:`sphx_glr_vta_tutorials_matrix_multiply.py` (``matrix_multiply.py``)
-- **00:00.323**: :ref:`sphx_glr_vta_tutorials_vta_get_started.py` (``vta_get_started.py``)
+- **00:00.354**: :ref:`sphx_glr_vta_tutorials_matrix_multiply.py` (``matrix_multiply.py``)
+- **00:00.350**: :ref:`sphx_glr_vta_tutorials_vta_get_started.py` (``vta_get_started.py``)
diff --git a/docs/_sources/vta/tutorials/vta_get_started.rst.txt b/docs/_sources/vta/tutorials/vta_get_started.rst.txt
index f140b72..ba20b7e 100644
--- a/docs/_sources/vta/tutorials/vta_get_started.rst.txt
+++ b/docs/_sources/vta/tutorials/vta_get_started.rst.txt
@@ -302,32 +302,24 @@ After we construct the schedule, by default the schedule computes
     allocate A_buf[int32 * 1024]
     // attr [B_buf] storage_scope = "global"
     allocate B_buf[int32 * 1024]
-    produce A_buf {
-      for (i1, 0, 64) {
-        for (i3, 0, 16) {
-          A_buf[((i1*16) + i3)] = A[((i1*16) + i3)]
-        }
+    for (i1, 0, 64) {
+      for (i3, 0, 16) {
+        A_buf[((i1*16) + i3)] = A[((i1*16) + i3)]
       }
     }
-    produce B_buf {
-      for (i1, 0, 64) {
-        for (i3, 0, 16) {
-          B_buf[((i1*16) + i3)] = B[((i1*16) + i3)]
-        }
+    for (i1, 0, 64) {
+      for (i3, 0, 16) {
+        B_buf[((i1*16) + i3)] = B[((i1*16) + i3)]
       }
     }
-    produce C_buf {
-      for (i1, 0, 64) {
-        for (i3, 0, 16) {
-          A_buf[((i1*16) + i3)] = (A_buf[((i1*16) + i3)] + B_buf[((i1*16) + i3)])
-        }
+    for (i1, 0, 64) {
+      for (i3, 0, 16) {
+        A_buf[((i1*16) + i3)] = (A_buf[((i1*16) + i3)] + B_buf[((i1*16) + i3)])
       }
     }
-    produce C {
-      for (i1, 0, 64) {
-        for (i3, 0, 16) {
-          C[((i1*16) + i3)] = int8(A_buf[((i1*16) + i3)])
-        }
+    for (i1, 0, 64) {
+      for (i3, 0, 16) {
+        C[((i1*16) + i3)] = int8(A_buf[((i1*16) + i3)])
       }
     }
 
@@ -422,26 +414,16 @@ with an :code:`env.alu` pragma.
 
     // attr [A_buf] storage_scope = "local.acc_buffer"
     // attr [iter_var(vta, , vta)] coproc_scope = 2
-    produce A_buf {
-      VTALoadBuffer2D(tvm_thread_context(VTATLSCommandHandle()), A, 0, 64, 1, 64, 0, 0, 0, 0, 0, 3)
-    }
-    // attr [iter_var(vta, , vta)] coproc_scope = 2
-    produce B_buf {
-      VTALoadBuffer2D(tvm_thread_context(VTATLSCommandHandle()), B, 0, 64, 1, 64, 0, 0, 0, 0, 64, 3)
-    }
-    // attr [iter_var(vta, , vta)] coproc_scope = 2
+    VTALoadBuffer2D(tvm_thread_context(VTATLSCommandHandle()), A, 0, 64, 1, 64, 0, 0, 0, 0, 0, 3)
+    VTALoadBuffer2D(tvm_thread_context(VTATLSCommandHandle()), B, 0, 64, 1, 64, 0, 0, 0, 0, 64, 3)
     // attr [iter_var(vta, , vta)] coproc_uop_scope = "VTAPushALUOp"
-    produce C_buf {
-      VTAUopLoopBegin(64, 1, 1, 0)
-      VTAUopPush(1, 0, 0, 64, 0, 2, 0, 0)
-      VTAUopLoopEnd()
-    }
+    VTAUopLoopBegin(64, 1, 1, 0)
+    VTAUopPush(1, 0, 0, 64, 0, 2, 0, 0)
+    VTAUopLoopEnd()
     vta.coproc_dep_push(2, 3)
     // attr [iter_var(vta, , vta)] coproc_scope = 3
     vta.coproc_dep_pop(2, 3)
-    produce C {
-      VTAStoreBuffer2D(tvm_thread_context(VTATLSCommandHandle()), 0, 4, C, 0, 64, 1, 64)
-    }
+    VTAStoreBuffer2D(tvm_thread_context(VTATLSCommandHandle()), 0, 4, C, 0, 64, 1, 64)
     vta.coproc_sync()
 
 
diff --git a/docs/api/python/autotvm.html b/docs/api/python/autotvm.html
index e5f1f5f..c5c7ed3 100644
--- a/docs/api/python/autotvm.html
+++ b/docs/api/python/autotvm.html
@@ -41,7 +41,7 @@
     <link rel="index" title="Index" href="../../genindex.html" />
     <link rel="search" title="Search" href="../../search.html" />
     <link rel="next" title="tvm.rpc" href="rpc.html" />
-    <link rel="prev" title="tvm.driver" href="driver.html" /> 
+    <link rel="prev" title="tvm.relay.testing" href="relay/testing.html" /> 
 </head>
 
 <body class="wy-body-for-nav">
@@ -115,6 +115,15 @@
 <li class="toctree-l2"><a class="reference internal" href="te.html">tvm.te</a></li>
 <li class="toctree-l2"><a class="reference internal" href="te.html#module-tvm.te.hybrid">tvm.te.hybrid</a></li>
 <li class="toctree-l2"><a class="reference internal" href="driver.html">tvm.driver</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/index.html">tvm.relay</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/frontend.html">tvm.relay.frontend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/nn.html">tvm.relay.nn</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/vision.html">tvm.relay.vision</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/image.html">tvm.relay.image</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/transform.html">tvm.relay.transform</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/analysis.html">tvm.relay.analysis</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/backend.html">tvm.relay.backend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/testing.html">tvm.relay.testing</a></li>
 <li class="toctree-l2 current"><a class="current reference internal" href="#">tvm.autotvm</a><ul>
 <li class="toctree-l3"><a class="reference internal" href="#module-tvm.autotvm.measure.measure">tvm.autotvm.measure</a></li>
 <li class="toctree-l3"><a class="reference internal" href="#module-tvm.autotvm.tuner">tvm.autotvm.tuner</a></li>
@@ -125,7 +134,6 @@
 <li class="toctree-l2"><a class="reference internal" href="rpc.html">tvm.rpc</a></li>
 <li class="toctree-l2"><a class="reference internal" href="contrib.html">tvm.contrib</a></li>
 <li class="toctree-l2"><a class="reference internal" href="graph_runtime.html">tvm.contrib.graph_runtime</a></li>
-<li class="toctree-l2"><a class="reference internal" href="relay/index.html">tvm.relay</a></li>
 <li class="toctree-l2"><a class="reference internal" href="vta/index.html">vta</a></li>
 <li class="toctree-l2"><a class="reference internal" href="topi.html">topi</a></li>
 </ul>
@@ -2390,7 +2398,7 @@ in_file and out_file will be saved.</p>
         <a href="rpc.html" class="btn btn-neutral float-right" title="tvm.rpc" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
       
       
-        <a href="driver.html" class="btn btn-neutral float-left" title="tvm.driver" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
+        <a href="relay/testing.html" class="btn btn-neutral float-left" title="tvm.relay.testing" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
       
     </div>
   
diff --git a/docs/api/python/contrib.html b/docs/api/python/contrib.html
index 2376ea8..d926a3c 100644
--- a/docs/api/python/contrib.html
+++ b/docs/api/python/contrib.html
@@ -115,6 +115,15 @@
 <li class="toctree-l2"><a class="reference internal" href="te.html">tvm.te</a></li>
 <li class="toctree-l2"><a class="reference internal" href="te.html#module-tvm.te.hybrid">tvm.te.hybrid</a></li>
 <li class="toctree-l2"><a class="reference internal" href="driver.html">tvm.driver</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/index.html">tvm.relay</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/frontend.html">tvm.relay.frontend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/nn.html">tvm.relay.nn</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/vision.html">tvm.relay.vision</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/image.html">tvm.relay.image</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/transform.html">tvm.relay.transform</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/analysis.html">tvm.relay.analysis</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/backend.html">tvm.relay.backend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/testing.html">tvm.relay.testing</a></li>
 <li class="toctree-l2"><a class="reference internal" href="autotvm.html">tvm.autotvm</a></li>
 <li class="toctree-l2"><a class="reference internal" href="rpc.html">tvm.rpc</a></li>
 <li class="toctree-l2 current"><a class="current reference internal" href="#">tvm.contrib</a><ul>
@@ -141,7 +150,6 @@
 </ul>
 </li>
 <li class="toctree-l2"><a class="reference internal" href="graph_runtime.html">tvm.contrib.graph_runtime</a></li>
-<li class="toctree-l2"><a class="reference internal" href="relay/index.html">tvm.relay</a></li>
 <li class="toctree-l2"><a class="reference internal" href="vta/index.html">vta</a></li>
 <li class="toctree-l2"><a class="reference internal" href="topi.html">topi</a></li>
 </ul>
diff --git a/docs/api/python/driver.html b/docs/api/python/driver.html
index e8c223c..0dce6c4 100644
--- a/docs/api/python/driver.html
+++ b/docs/api/python/driver.html
@@ -40,7 +40,7 @@
   <link rel="stylesheet" href="../../_static/css/tvm_theme.css" type="text/css" />
     <link rel="index" title="Index" href="../../genindex.html" />
     <link rel="search" title="Search" href="../../search.html" />
-    <link rel="next" title="tvm.autotvm" href="autotvm.html" />
+    <link rel="next" title="tvm.relay" href="relay/index.html" />
     <link rel="prev" title="tvm.te" href="te.html" /> 
 </head>
 
@@ -115,11 +115,19 @@
 <li class="toctree-l2"><a class="reference internal" href="te.html">tvm.te</a></li>
 <li class="toctree-l2"><a class="reference internal" href="te.html#module-tvm.te.hybrid">tvm.te.hybrid</a></li>
 <li class="toctree-l2 current"><a class="current reference internal" href="#">tvm.driver</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/index.html">tvm.relay</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/frontend.html">tvm.relay.frontend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/nn.html">tvm.relay.nn</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/vision.html">tvm.relay.vision</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/image.html">tvm.relay.image</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/transform.html">tvm.relay.transform</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/analysis.html">tvm.relay.analysis</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/backend.html">tvm.relay.backend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/testing.html">tvm.relay.testing</a></li>
 <li class="toctree-l2"><a class="reference internal" href="autotvm.html">tvm.autotvm</a></li>
 <li class="toctree-l2"><a class="reference internal" href="rpc.html">tvm.rpc</a></li>
 <li class="toctree-l2"><a class="reference internal" href="contrib.html">tvm.contrib</a></li>
 <li class="toctree-l2"><a class="reference internal" href="graph_runtime.html">tvm.contrib.graph_runtime</a></li>
-<li class="toctree-l2"><a class="reference internal" href="relay/index.html">tvm.relay</a></li>
 <li class="toctree-l2"><a class="reference internal" href="vta/index.html">vta</a></li>
 <li class="toctree-l2"><a class="reference internal" href="topi.html">topi</a></li>
 </ul>
@@ -304,7 +312,7 @@ of the argument <cite>inputs</cite>:
   
     <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
       
-        <a href="autotvm.html" class="btn btn-neutral float-right" title="tvm.autotvm" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
+        <a href="relay/index.html" class="btn btn-neutral float-right" title="tvm.relay" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
       
       
         <a href="te.html" class="btn btn-neutral float-left" title="tvm.te" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
diff --git a/docs/api/python/error.html b/docs/api/python/error.html
index 967ecac..9370821 100644
--- a/docs/api/python/error.html
+++ b/docs/api/python/error.html
@@ -115,11 +115,19 @@
 <li class="toctree-l2"><a class="reference internal" href="te.html">tvm.te</a></li>
 <li class="toctree-l2"><a class="reference internal" href="te.html#module-tvm.te.hybrid">tvm.te.hybrid</a></li>
 <li class="toctree-l2"><a class="reference internal" href="driver.html">tvm.driver</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/index.html">tvm.relay</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/frontend.html">tvm.relay.frontend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/nn.html">tvm.relay.nn</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/vision.html">tvm.relay.vision</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/image.html">tvm.relay.image</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/transform.html">tvm.relay.transform</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/analysis.html">tvm.relay.analysis</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/backend.html">tvm.relay.backend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/testing.html">tvm.relay.testing</a></li>
 <li class="toctree-l2"><a class="reference internal" href="autotvm.html">tvm.autotvm</a></li>
 <li class="toctree-l2"><a class="reference internal" href="rpc.html">tvm.rpc</a></li>
 <li class="toctree-l2"><a class="reference internal" href="contrib.html">tvm.contrib</a></li>
 <li class="toctree-l2"><a class="reference internal" href="graph_runtime.html">tvm.contrib.graph_runtime</a></li>
-<li class="toctree-l2"><a class="reference internal" href="relay/index.html">tvm.relay</a></li>
 <li class="toctree-l2"><a class="reference internal" href="vta/index.html">vta</a></li>
 <li class="toctree-l2"><a class="reference internal" href="topi.html">topi</a></li>
 </ul>
diff --git a/docs/api/python/graph_runtime.html b/docs/api/python/graph_runtime.html
index 3f7d2f6..d0875de 100644
--- a/docs/api/python/graph_runtime.html
+++ b/docs/api/python/graph_runtime.html
@@ -40,7 +40,7 @@
   <link rel="stylesheet" href="../../_static/css/tvm_theme.css" type="text/css" />
     <link rel="index" title="Index" href="../../genindex.html" />
     <link rel="search" title="Search" href="../../search.html" />
-    <link rel="next" title="tvm.relay" href="relay/index.html" />
+    <link rel="next" title="vta" href="vta/index.html" />
     <link rel="prev" title="tvm.contrib" href="contrib.html" /> 
 </head>
 
@@ -115,11 +115,19 @@
 <li class="toctree-l2"><a class="reference internal" href="te.html">tvm.te</a></li>
 <li class="toctree-l2"><a class="reference internal" href="te.html#module-tvm.te.hybrid">tvm.te.hybrid</a></li>
 <li class="toctree-l2"><a class="reference internal" href="driver.html">tvm.driver</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/index.html">tvm.relay</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/frontend.html">tvm.relay.frontend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/nn.html">tvm.relay.nn</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/vision.html">tvm.relay.vision</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/image.html">tvm.relay.image</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/transform.html">tvm.relay.transform</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/analysis.html">tvm.relay.analysis</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/backend.html">tvm.relay.backend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/testing.html">tvm.relay.testing</a></li>
 <li class="toctree-l2"><a class="reference internal" href="autotvm.html">tvm.autotvm</a></li>
 <li class="toctree-l2"><a class="reference internal" href="rpc.html">tvm.rpc</a></li>
 <li class="toctree-l2"><a class="reference internal" href="contrib.html">tvm.contrib</a></li>
 <li class="toctree-l2 current"><a class="current reference internal" href="#">tvm.contrib.graph_runtime</a></li>
-<li class="toctree-l2"><a class="reference internal" href="relay/index.html">tvm.relay</a></li>
 <li class="toctree-l2"><a class="reference internal" href="vta/index.html">vta</a></li>
 <li class="toctree-l2"><a class="reference internal" href="topi.html">topi</a></li>
 </ul>
@@ -394,7 +402,7 @@ it’s parameters.</p></li>
   
     <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
       
-        <a href="relay/index.html" class="btn btn-neutral float-right" title="tvm.relay" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
+        <a href="vta/index.html" class="btn btn-neutral float-right" title="vta" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
       
       
         <a href="contrib.html" class="btn btn-neutral float-left" title="tvm.contrib" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
diff --git a/docs/api/python/index.html b/docs/api/python/index.html
index ed6b416..e0566c4 100644
--- a/docs/api/python/index.html
+++ b/docs/api/python/index.html
@@ -115,11 +115,19 @@
 <li class="toctree-l2"><a class="reference internal" href="te.html">tvm.te</a></li>
 <li class="toctree-l2"><a class="reference internal" href="te.html#module-tvm.te.hybrid">tvm.te.hybrid</a></li>
 <li class="toctree-l2"><a class="reference internal" href="driver.html">tvm.driver</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/index.html">tvm.relay</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/frontend.html">tvm.relay.frontend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/nn.html">tvm.relay.nn</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/vision.html">tvm.relay.vision</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/image.html">tvm.relay.image</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/transform.html">tvm.relay.transform</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/analysis.html">tvm.relay.analysis</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/backend.html">tvm.relay.backend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/testing.html">tvm.relay.testing</a></li>
 <li class="toctree-l2"><a class="reference internal" href="autotvm.html">tvm.autotvm</a></li>
 <li class="toctree-l2"><a class="reference internal" href="rpc.html">tvm.rpc</a></li>
 <li class="toctree-l2"><a class="reference internal" href="contrib.html">tvm.contrib</a></li>
 <li class="toctree-l2"><a class="reference internal" href="graph_runtime.html">tvm.contrib.graph_runtime</a></li>
-<li class="toctree-l2"><a class="reference internal" href="relay/index.html">tvm.relay</a></li>
 <li class="toctree-l2"><a class="reference internal" href="vta/index.html">vta</a></li>
 <li class="toctree-l2"><a class="reference internal" href="topi.html">topi</a></li>
 </ul>
@@ -214,6 +222,15 @@
 <li class="toctree-l1"><a class="reference internal" href="te.html">tvm.te</a></li>
 <li class="toctree-l1"><a class="reference internal" href="te.html#module-tvm.te.hybrid">tvm.te.hybrid</a></li>
 <li class="toctree-l1"><a class="reference internal" href="driver.html">tvm.driver</a></li>
+<li class="toctree-l1"><a class="reference internal" href="relay/index.html">tvm.relay</a></li>
+<li class="toctree-l1"><a class="reference internal" href="relay/frontend.html">tvm.relay.frontend</a></li>
+<li class="toctree-l1"><a class="reference internal" href="relay/nn.html">tvm.relay.nn</a></li>
+<li class="toctree-l1"><a class="reference internal" href="relay/vision.html">tvm.relay.vision</a></li>
+<li class="toctree-l1"><a class="reference internal" href="relay/image.html">tvm.relay.image</a></li>
+<li class="toctree-l1"><a class="reference internal" href="relay/transform.html">tvm.relay.transform</a></li>
+<li class="toctree-l1"><a class="reference internal" href="relay/analysis.html">tvm.relay.analysis</a></li>
+<li class="toctree-l1"><a class="reference internal" href="relay/backend.html">tvm.relay.backend</a></li>
+<li class="toctree-l1"><a class="reference internal" href="relay/testing.html">tvm.relay.testing</a></li>
 <li class="toctree-l1"><a class="reference internal" href="autotvm.html">tvm.autotvm</a><ul>
 <li class="toctree-l2"><a class="reference internal" href="autotvm.html#module-tvm.autotvm.measure.measure">tvm.autotvm.measure</a></li>
 <li class="toctree-l2"><a class="reference internal" href="autotvm.html#module-tvm.autotvm.tuner">tvm.autotvm.tuner</a></li>
@@ -246,18 +263,6 @@
 </ul>
 </li>
 <li class="toctree-l1"><a class="reference internal" href="graph_runtime.html">tvm.contrib.graph_runtime</a></li>
-<li class="toctree-l1"><a class="reference internal" href="relay/index.html">tvm.relay</a><ul>
-<li class="toctree-l2"><a class="reference internal" href="relay/analysis.html">tvm.relay.analysis</a></li>
-<li class="toctree-l2"><a class="reference internal" href="relay/backend.html">tvm.relay.backend</a></li>
-<li class="toctree-l2"><a class="reference internal" href="relay/frontend.html">tvm.relay.frontend</a></li>
-<li class="toctree-l2"><a class="reference internal" href="relay/image.html">tvm.relay.image</a></li>
-<li class="toctree-l2"><a class="reference internal" href="relay/transform.html">tvm.relay.transform</a></li>
-<li class="toctree-l2"><a class="reference internal" href="relay/nn.html">tvm.relay.nn</a></li>
-<li class="toctree-l2"><a class="reference internal" href="relay/op.html">tvm.relay.op</a></li>
-<li class="toctree-l2"><a class="reference internal" href="relay/vision.html">tvm.relay.vision</a></li>
-<li class="toctree-l2"><a class="reference internal" href="relay/testing.html">tvm.relay.testing</a></li>
-</ul>
-</li>
 <li class="toctree-l1"><a class="reference internal" href="vta/index.html">vta</a><ul>
 <li class="toctree-l2"><a class="reference internal" href="vta/index.html#hardware-information">Hardware Information</a></li>
 <li class="toctree-l2"><a class="reference internal" href="vta/index.html#rpc-utilities">RPC Utilities</a></li>
diff --git a/docs/api/python/ir.html b/docs/api/python/ir.html
index 62ad13e..2a25fae 100644
--- a/docs/api/python/ir.html
+++ b/docs/api/python/ir.html
@@ -115,11 +115,19 @@
 <li class="toctree-l2"><a class="reference internal" href="te.html">tvm.te</a></li>
 <li class="toctree-l2"><a class="reference internal" href="te.html#module-tvm.te.hybrid">tvm.te.hybrid</a></li>
 <li class="toctree-l2"><a class="reference internal" href="driver.html">tvm.driver</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/index.html">tvm.relay</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/frontend.html">tvm.relay.frontend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/nn.html">tvm.relay.nn</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/vision.html">tvm.relay.vision</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/image.html">tvm.relay.image</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/transform.html">tvm.relay.transform</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/analysis.html">tvm.relay.analysis</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/backend.html">tvm.relay.backend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/testing.html">tvm.relay.testing</a></li>
 <li class="toctree-l2"><a class="reference internal" href="autotvm.html">tvm.autotvm</a></li>
 <li class="toctree-l2"><a class="reference internal" href="rpc.html">tvm.rpc</a></li>
 <li class="toctree-l2"><a class="reference internal" href="contrib.html">tvm.contrib</a></li>
 <li class="toctree-l2"><a class="reference internal" href="graph_runtime.html">tvm.contrib.graph_runtime</a></li>
-<li class="toctree-l2"><a class="reference internal" href="relay/index.html">tvm.relay</a></li>
 <li class="toctree-l2"><a class="reference internal" href="vta/index.html">vta</a></li>
 <li class="toctree-l2"><a class="reference internal" href="topi.html">topi</a></li>
 </ul>
@@ -948,12 +956,44 @@ if the end argument is not None. Otherwise, it creates <cite>[0, begin)</cite>.<
 </tr>
 </tbody>
 </table>
+<p><strong>Methods</strong></p>
+<table class="longtable docutils align-default">
+<colgroup>
+<col style="width: 10%" />
+<col style="width: 90%" />
+</colgroup>
+<tbody>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.ir.BaseFunc.with_attr" title="tvm.ir.BaseFunc.with_attr"><code class="xref py py-obj docutils literal notranslate"><span class="pre">with_attr</span></code></a>(attr_key_or_dict[, attr_value])</p></td>
+<td><p>Create a new copy of the function and update the attribute.</p></td>
+</tr>
+</tbody>
+</table>
 <dl class="method">
 <dt id="tvm.ir.BaseFunc.attrs">
 <em class="property">property </em><code class="sig-name descname">attrs</code><a class="headerlink" href="#tvm.ir.BaseFunc.attrs" title="Permalink to this definition">¶</a></dt>
 <dd><p>Return the attrs member of the function.</p>
 </dd></dl>
 
+<dl class="method">
+<dt id="tvm.ir.BaseFunc.with_attr">
+<code class="sig-name descname">with_attr</code><span class="sig-paren">(</span><em class="sig-param">attr_key_or_dict</em>, <em class="sig-param">attr_value=None</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.ir.BaseFunc.with_attr" title="Permalink to this definition">¶</a></dt>
+<dd><p>Create a new copy of the function and update the attribute.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters</dt>
+<dd class="field-odd"><ul class="simple">
+<li><p><strong>attr_key_or_dict</strong> (<em>Union</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#dict" title="(in Python v3.8)"><em>dict</em></a><em>]</em>) – The attribute key to use or a dict containing multiple key value pairs.</p></li>
+<li><p><strong>attr_value</strong> (<a class="reference internal" href="runtime.html#tvm.runtime.Object" title="tvm.runtime.Object"><em>Object</em></a>) – The new attribute value.</p></li>
+</ul>
+</dd>
+<dt class="field-even">Returns</dt>
+<dd class="field-even"><p><strong>func</strong> – A new copy of the function</p>
+</dd>
+<dt class="field-odd">Return type</dt>
+<dd class="field-odd"><p><a class="reference internal" href="relay/index.html#tvm.relay.Function" title="tvm.relay.Function">Function</a></p>
+</dd>
+</dl>
+</dd></dl>
+
 </dd></dl>
 
 <dl class="class">
diff --git a/docs/api/python/ndarray.html b/docs/api/python/ndarray.html
index a25fa66..849b902 100644
--- a/docs/api/python/ndarray.html
+++ b/docs/api/python/ndarray.html
@@ -115,11 +115,19 @@
 <li class="toctree-l2"><a class="reference internal" href="te.html">tvm.te</a></li>
 <li class="toctree-l2"><a class="reference internal" href="te.html#module-tvm.te.hybrid">tvm.te.hybrid</a></li>
 <li class="toctree-l2"><a class="reference internal" href="driver.html">tvm.driver</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/index.html">tvm.relay</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/frontend.html">tvm.relay.frontend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/nn.html">tvm.relay.nn</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/vision.html">tvm.relay.vision</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/image.html">tvm.relay.image</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/transform.html">tvm.relay.transform</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/analysis.html">tvm.relay.analysis</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/backend.html">tvm.relay.backend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="relay/testing.html">tvm.relay.testing</a></li>
 <li class="toctree-l2"><a class="reference internal" href="autotvm.html">tvm.autotvm</a></li>
 <li class="toctree-l2"><a class="reference internal" href="rpc.html">tvm.rpc</a></li>
 <li class="toctree-l2"><a class="reference internal" href="contrib.html">tvm.contrib</a></li>
 <li class="toctree-l2"><a class="reference internal" href="graph_runtime.html">tvm.contrib.graph_runtime</a></li>
-<li class="toctree-l2"><a class="reference internal" href="relay/index.html">tvm.relay</a></li>
 <li class="toctree-l2"><a class="reference internal" href="vta/index.html">vta</a></li>
 <li class="toctree-l2"><a class="reference internal" href="topi.html">topi</a></li>
 </ul>
diff --git a/docs/api/python/relay/analysis.html b/docs/api/python/relay/analysis.html
index cb82f4e..81acc3d 100644
--- a/docs/api/python/relay/analysis.html
+++ b/docs/api/python/relay/analysis.html
@@ -41,7 +41,7 @@
     <link rel="index" title="Index" href="../../../genindex.html" />
     <link rel="search" title="Search" href="../../../search.html" />
     <link rel="next" title="tvm.relay.backend" href="backend.html" />
-    <link rel="prev" title="tvm.relay" href="index.html" /> 
+    <link rel="prev" title="tvm.relay.transform" href="transform.html" /> 
 </head>
 
 <body class="wy-body-for-nav">
@@ -115,22 +115,19 @@
 <li class="toctree-l2"><a class="reference internal" href="../te.html">tvm.te</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../te.html#module-tvm.te.hybrid">tvm.te.hybrid</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../driver.html">tvm.driver</a></li>
+<li class="toctree-l2"><a class="reference internal" href="index.html">tvm.relay</a></li>
+<li class="toctree-l2"><a class="reference internal" href="frontend.html">tvm.relay.frontend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="nn.html">tvm.relay.nn</a></li>
+<li class="toctree-l2"><a class="reference internal" href="vision.html">tvm.relay.vision</a></li>
+<li class="toctree-l2"><a class="reference internal" href="image.html">tvm.relay.image</a></li>
+<li class="toctree-l2"><a class="reference internal" href="transform.html">tvm.relay.transform</a></li>
+<li class="toctree-l2 current"><a class="current reference internal" href="#">tvm.relay.analysis</a></li>
+<li class="toctree-l2"><a class="reference internal" href="backend.html">tvm.relay.backend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="testing.html">tvm.relay.testing</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../autotvm.html">tvm.autotvm</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../rpc.html">tvm.rpc</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../contrib.html">tvm.contrib</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../graph_runtime.html">tvm.contrib.graph_runtime</a></li>
-<li class="toctree-l2 current"><a class="reference internal" href="index.html">tvm.relay</a><ul class="current">
-<li class="toctree-l3 current"><a class="current reference internal" href="#">tvm.relay.analysis</a></li>
-<li class="toctree-l3"><a class="reference internal" href="backend.html">tvm.relay.backend</a></li>
-<li class="toctree-l3"><a class="reference internal" href="frontend.html">tvm.relay.frontend</a></li>
-<li class="toctree-l3"><a class="reference internal" href="image.html">tvm.relay.image</a></li>
-<li class="toctree-l3"><a class="reference internal" href="transform.html">tvm.relay.transform</a></li>
-<li class="toctree-l3"><a class="reference internal" href="nn.html">tvm.relay.nn</a></li>
-<li class="toctree-l3"><a class="reference internal" href="op.html">tvm.relay.op</a></li>
-<li class="toctree-l3"><a class="reference internal" href="vision.html">tvm.relay.vision</a></li>
-<li class="toctree-l3"><a class="reference internal" href="testing.html">tvm.relay.testing</a></li>
-</ul>
-</li>
 <li class="toctree-l2"><a class="reference internal" href="../vta/index.html">vta</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../topi.html">topi</a></li>
 </ul>
@@ -192,8 +189,6 @@
         
           <li><a href="../index.html">Python API</a> &raquo;</li>
         
-          <li><a href="index.html">tvm.relay</a> &raquo;</li>
-        
       <li>tvm.relay.analysis</li>
     
     
@@ -805,7 +800,7 @@ only once.</p>
         <a href="backend.html" class="btn btn-neutral float-right" title="tvm.relay.backend" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
       
       
-        <a href="index.html" class="btn btn-neutral float-left" title="tvm.relay" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
+        <a href="transform.html" class="btn btn-neutral float-left" title="tvm.relay.transform" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
       
     </div>
   
diff --git a/docs/api/python/relay/backend.html b/docs/api/python/relay/backend.html
index 51bdcb8..829b6bf 100644
--- a/docs/api/python/relay/backend.html
+++ b/docs/api/python/relay/backend.html
@@ -40,7 +40,7 @@
   <link rel="stylesheet" href="../../../_static/css/tvm_theme.css" type="text/css" />
     <link rel="index" title="Index" href="../../../genindex.html" />
     <link rel="search" title="Search" href="../../../search.html" />
-    <link rel="next" title="tvm.relay.frontend" href="frontend.html" />
+    <link rel="next" title="tvm.relay.testing" href="testing.html" />
     <link rel="prev" title="tvm.relay.analysis" href="analysis.html" /> 
 </head>
 
@@ -115,22 +115,19 @@
 <li class="toctree-l2"><a class="reference internal" href="../te.html">tvm.te</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../te.html#module-tvm.te.hybrid">tvm.te.hybrid</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../driver.html">tvm.driver</a></li>
+<li class="toctree-l2"><a class="reference internal" href="index.html">tvm.relay</a></li>
+<li class="toctree-l2"><a class="reference internal" href="frontend.html">tvm.relay.frontend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="nn.html">tvm.relay.nn</a></li>
+<li class="toctree-l2"><a class="reference internal" href="vision.html">tvm.relay.vision</a></li>
+<li class="toctree-l2"><a class="reference internal" href="image.html">tvm.relay.image</a></li>
+<li class="toctree-l2"><a class="reference internal" href="transform.html">tvm.relay.transform</a></li>
+<li class="toctree-l2"><a class="reference internal" href="analysis.html">tvm.relay.analysis</a></li>
+<li class="toctree-l2 current"><a class="current reference internal" href="#">tvm.relay.backend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="testing.html">tvm.relay.testing</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../autotvm.html">tvm.autotvm</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../rpc.html">tvm.rpc</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../contrib.html">tvm.contrib</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../graph_runtime.html">tvm.contrib.graph_runtime</a></li>
-<li class="toctree-l2 current"><a class="reference internal" href="index.html">tvm.relay</a><ul class="current">
-<li class="toctree-l3"><a class="reference internal" href="analysis.html">tvm.relay.analysis</a></li>
-<li class="toctree-l3 current"><a class="current reference internal" href="#">tvm.relay.backend</a></li>
-<li class="toctree-l3"><a class="reference internal" href="frontend.html">tvm.relay.frontend</a></li>
-<li class="toctree-l3"><a class="reference internal" href="image.html">tvm.relay.image</a></li>
-<li class="toctree-l3"><a class="reference internal" href="transform.html">tvm.relay.transform</a></li>
-<li class="toctree-l3"><a class="reference internal" href="nn.html">tvm.relay.nn</a></li>
-<li class="toctree-l3"><a class="reference internal" href="op.html">tvm.relay.op</a></li>
-<li class="toctree-l3"><a class="reference internal" href="vision.html">tvm.relay.vision</a></li>
-<li class="toctree-l3"><a class="reference internal" href="testing.html">tvm.relay.testing</a></li>
-</ul>
-</li>
 <li class="toctree-l2"><a class="reference internal" href="../vta/index.html">vta</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../topi.html">topi</a></li>
 </ul>
@@ -192,8 +189,6 @@
         
           <li><a href="../index.html">Python API</a> &raquo;</li>
         
-          <li><a href="index.html">tvm.relay</a> &raquo;</li>
-        
       <li>tvm.relay.backend</li>
     
     
@@ -323,7 +318,7 @@
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
-<li><p><strong>op</strong> (<a class="reference internal" href="op.html#tvm.relay.op.Op" title="tvm.relay.op.Op"><em>relay.op.Op</em></a>) – Relay operator.</p></li>
+<li><p><strong>op</strong> (<em>relay.op.Op</em>) – Relay operator.</p></li>
 <li><p><strong>attrs</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.8)"><em>object</em></a>) – The op attribute.</p></li>
 <li><p><strong>inputs</strong> (<em>List</em><em>[</em><a class="reference internal" href="../te.html#tvm.te.Tensor" title="tvm.te.Tensor"><em>tvm.te.Tensor</em></a><em>]</em>) – Input tensors to the op.</p></li>
 <li><p><strong>out_type</strong> (<em>relay.Type</em>) – The output type.</p></li>
@@ -352,7 +347,7 @@ highest plevel.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
-<li><p><strong>op</strong> (<a class="reference internal" href="op.html#tvm.relay.op.Op" title="tvm.relay.op.Op"><em>relay.op.Op</em></a>) – Relay operator.</p></li>
+<li><p><strong>op</strong> (<em>relay.op.Op</em>) – Relay operator.</p></li>
 <li><p><strong>attrs</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.8)"><em>object</em></a>) – The op attribute.</p></li>
 <li><p><strong>inputs</strong> (<em>List</em><em>[</em><a class="reference internal" href="../te.html#tvm.te.Tensor" title="tvm.te.Tensor"><em>tvm.te.Tensor</em></a><em>]</em>) – Input tensors to the op.</p></li>
 <li><p><strong>out_type</strong> (<em>relay.Type</em>) – The output type.</p></li>
@@ -653,7 +648,7 @@ supported by <cite>tvm.runtime.vm</cite>.</p>
   
     <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
       
-        <a href="frontend.html" class="btn btn-neutral float-right" title="tvm.relay.frontend" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
+        <a href="testing.html" class="btn btn-neutral float-right" title="tvm.relay.testing" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
       
       
         <a href="analysis.html" class="btn btn-neutral float-left" title="tvm.relay.analysis" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
diff --git a/docs/api/python/relay/frontend.html b/docs/api/python/relay/frontend.html
index 3bf8dd4..077caa1 100644
--- a/docs/api/python/relay/frontend.html
+++ b/docs/api/python/relay/frontend.html
@@ -40,8 +40,8 @@
   <link rel="stylesheet" href="../../../_static/css/tvm_theme.css" type="text/css" />
     <link rel="index" title="Index" href="../../../genindex.html" />
     <link rel="search" title="Search" href="../../../search.html" />
-    <link rel="next" title="tvm.relay.image" href="image.html" />
-    <link rel="prev" title="tvm.relay.backend" href="backend.html" /> 
+    <link rel="next" title="tvm.relay.nn" href="nn.html" />
+    <link rel="prev" title="tvm.relay" href="index.html" /> 
 </head>
 
 <body class="wy-body-for-nav">
@@ -115,22 +115,19 @@
 <li class="toctree-l2"><a class="reference internal" href="../te.html">tvm.te</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../te.html#module-tvm.te.hybrid">tvm.te.hybrid</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../driver.html">tvm.driver</a></li>
+<li class="toctree-l2"><a class="reference internal" href="index.html">tvm.relay</a></li>
+<li class="toctree-l2 current"><a class="current reference internal" href="#">tvm.relay.frontend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="nn.html">tvm.relay.nn</a></li>
+<li class="toctree-l2"><a class="reference internal" href="vision.html">tvm.relay.vision</a></li>
+<li class="toctree-l2"><a class="reference internal" href="image.html">tvm.relay.image</a></li>
+<li class="toctree-l2"><a class="reference internal" href="transform.html">tvm.relay.transform</a></li>
+<li class="toctree-l2"><a class="reference internal" href="analysis.html">tvm.relay.analysis</a></li>
+<li class="toctree-l2"><a class="reference internal" href="backend.html">tvm.relay.backend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="testing.html">tvm.relay.testing</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../autotvm.html">tvm.autotvm</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../rpc.html">tvm.rpc</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../contrib.html">tvm.contrib</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../graph_runtime.html">tvm.contrib.graph_runtime</a></li>
-<li class="toctree-l2 current"><a class="reference internal" href="index.html">tvm.relay</a><ul class="current">
-<li class="toctree-l3"><a class="reference internal" href="analysis.html">tvm.relay.analysis</a></li>
-<li class="toctree-l3"><a class="reference internal" href="backend.html">tvm.relay.backend</a></li>
-<li class="toctree-l3 current"><a class="current reference internal" href="#">tvm.relay.frontend</a></li>
-<li class="toctree-l3"><a class="reference internal" href="image.html">tvm.relay.image</a></li>
-<li class="toctree-l3"><a class="reference internal" href="transform.html">tvm.relay.transform</a></li>
-<li class="toctree-l3"><a class="reference internal" href="nn.html">tvm.relay.nn</a></li>
-<li class="toctree-l3"><a class="reference internal" href="op.html">tvm.relay.op</a></li>
-<li class="toctree-l3"><a class="reference internal" href="vision.html">tvm.relay.vision</a></li>
-<li class="toctree-l3"><a class="reference internal" href="testing.html">tvm.relay.testing</a></li>
-</ul>
-</li>
 <li class="toctree-l2"><a class="reference internal" href="../vta/index.html">vta</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../topi.html">topi</a></li>
 </ul>
@@ -192,8 +189,6 @@
         
           <li><a href="../index.html">Python API</a> &raquo;</li>
         
-          <li><a href="index.html">tvm.relay</a> &raquo;</li>
-        
       <li>tvm.relay.frontend</li>
     
     
@@ -218,6 +213,54 @@
 <p>Frontends for constructing Relay programs.</p>
 <p>Contains the model importers currently defined
 for Relay.</p>
+<p><strong>Functions</strong></p>
+<table class="longtable docutils align-default">
+<colgroup>
+<col style="width: 10%" />
+<col style="width: 90%" />
+</colgroup>
+<tbody>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.frontend.dequantize_mxnet_min_max" title="tvm.relay.frontend.dequantize_mxnet_min_max"><code class="xref py py-obj docutils literal notranslate"><span class="pre">dequantize_mxnet_min_max</span></code></a>(data, min_range, …)</p></td>
+<td><p>Dequantizes the given <cite>data</cite> in {int8 or uint8} and the given min and max ranges.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.frontend.from_caffe2" title="tvm.relay.frontend.from_caffe2"><code class="xref py py-obj docutils literal notranslate"><span class="pre">from_caffe2</span></code></a>(init_net, predict_net[, shape, …])</p></td>
+<td><p>Load caffe2 graph which contains init_net and predict_net into Relay Function.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.frontend.from_coreml" title="tvm.relay.frontend.from_coreml"><code class="xref py py-obj docutils literal notranslate"><span class="pre">from_coreml</span></code></a>(model[, shape])</p></td>
+<td><p>Convert from coreml model into Relay Function.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.frontend.from_darknet" title="tvm.relay.frontend.from_darknet"><code class="xref py py-obj docutils literal notranslate"><span class="pre">from_darknet</span></code></a>(net[, shape, dtype])</p></td>
+<td><p>Convert from Darknet’s model into compatible relay Function.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.frontend.from_keras" title="tvm.relay.frontend.from_keras"><code class="xref py py-obj docutils literal notranslate"><span class="pre">from_keras</span></code></a>(model[, shape, layout])</p></td>
+<td><p>Convert keras model to relay Function.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.frontend.from_mxnet" title="tvm.relay.frontend.from_mxnet"><code class="xref py py-obj docutils literal notranslate"><span class="pre">from_mxnet</span></code></a>(symbol[, shape, dtype, …])</p></td>
+<td><p>Convert from MXNet”s model into compatible relay Function.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.frontend.from_onnx" title="tvm.relay.frontend.from_onnx"><code class="xref py py-obj docutils literal notranslate"><span class="pre">from_onnx</span></code></a>(model[, shape, dtype, opset])</p></td>
+<td><p>Convert a ONNX model into an equivalent Relay Function.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.frontend.from_pytorch" title="tvm.relay.frontend.from_pytorch"><code class="xref py py-obj docutils literal notranslate"><span class="pre">from_pytorch</span></code></a>(script_module, input_shapes[, …])</p></td>
+<td><p>Load PyTorch model in the form of a scripted PyTorch model and convert into relay.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.frontend.from_tensorflow" title="tvm.relay.frontend.from_tensorflow"><code class="xref py py-obj docutils literal notranslate"><span class="pre">from_tensorflow</span></code></a>(graph[, layout, shape, outputs])</p></td>
+<td><p>Load tensorflow graph which is a python tensorflow graph object into relay.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.frontend.from_tflite" title="tvm.relay.frontend.from_tflite"><code class="xref py py-obj docutils literal notranslate"><span class="pre">from_tflite</span></code></a>(model, shape_dict, dtype_dict)</p></td>
+<td><p>Convert from tflite model into compatible relay Function.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.frontend.get_mkldnn_int8_scale" title="tvm.relay.frontend.get_mkldnn_int8_scale"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_mkldnn_int8_scale</span></code></a>(range_min, range_max)</p></td>
+<td><p>Computes the quantization scale using MKLDNN specifications with the given range.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.frontend.get_mkldnn_uint8_scale" title="tvm.relay.frontend.get_mkldnn_uint8_scale"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_mkldnn_uint8_scale</span></code></a>(range_min, range_max)</p></td>
+<td><p>Computes the quantization scale using MKLDNN specifications with the given range.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.frontend.quantize_mxnet_min_max" title="tvm.relay.frontend.quantize_mxnet_min_max"><code class="xref py py-obj docutils literal notranslate"><span class="pre">quantize_mxnet_min_max</span></code></a>(data, min_range, …)</p></td>
+<td><p>Quantizes the given <cite>data</cite> in float32 and the given min and max ranges and the output data type.</p></td>
+</tr>
+</tbody>
+</table>
 <dl class="function">
 <dt id="tvm.relay.frontend.from_mxnet">
 <code class="sig-prename descclassname">tvm.relay.frontend.</code><code class="sig-name descname">from_mxnet</code><span class="sig-paren">(</span><em class="sig-param">symbol</em>, <em class="sig-param">shape=None</em>, <em class="sig-param">dtype='float32'</em>, <em class="sig-param">arg_params=None</em>, <em class="sig-param">aux_params=None</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.frontend.from_mxnet" title="Permalink to this definition">¶</a></dt>
@@ -243,6 +286,110 @@ for Relay.</p>
 </dd></dl>
 
 <dl class="function">
+<dt id="tvm.relay.frontend.dequantize_mxnet_min_max">
+<code class="sig-prename descclassname">tvm.relay.frontend.</code><code class="sig-name descname">dequantize_mxnet_min_max</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">min_range</em>, <em class="sig-param">max_range</em>, <em class="sig-param">in_dtype='int8'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.frontend.dequantize_mxnet_min_max" title="Permalink to this definition">¶</a></dt>
+<dd><p>Dequantizes the given <cite>data</cite> in {int8 or uint8} and the given
+min and max ranges. The output data type is float32.
+Only <cite>float32</cite> is supported as output data types.
+The input data type is expected to be {int8 or uint8}.
+Mxnet has two different flavors for dequantization 1) Default 2)MKLDNN.
+To get the second one Mxnet must be built with MKLDNN during compile time.
+Users can choose either of the implementation for TVM runtime.
+The main difference between the two implementation is that MKLDNN is centered
+around 0 and the default implementation for uint8 is not.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters</dt>
+<dd class="field-odd"><ul class="simple">
+<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input tensor to be quantized. Can be of type float32.</p></li>
+<li><p><strong>min_range</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.8)"><em>float</em></a>) – The minimum to use data elements for the output.</p></li>
+<li><p><strong>max_range</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.8)"><em>float</em></a>) – The maximum to use for data elements for the output.</p></li>
+<li><p><strong>in_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – The input data type, can be ‘int8’ or ‘uint8’</p></li>
+</ul>
+</dd>
+<dt class="field-even">Returns</dt>
+<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
+</dd>
+<dt class="field-odd">Return type</dt>
+<dd class="field-odd"><p>tvm.relay.Expr</p>
+</dd>
+</dl>
+</dd></dl>
+
+<dl class="function">
+<dt id="tvm.relay.frontend.quantize_mxnet_min_max">
+<code class="sig-prename descclassname">tvm.relay.frontend.</code><code class="sig-name descname">quantize_mxnet_min_max</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">min_range</em>, <em class="sig-param">max_range</em>, <em class="sig-param">out_dtype='int8'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.frontend.quantize_mxnet_min_max" title="Permalink to this definition">¶</a></dt>
+<dd><p>Quantizes the given <cite>data</cite> in float32 and the given
+min and max ranges and the output data type.
+Only <cite>int8</cite> and <cite>uint8</cite> is supported as output data types.
+The input data type is expected to be <cite>float32</cite>.
+Mxnet has two different flavors for quantization 1) Default 2)MKLDNN.
+To get the second one Mxnet must be built with MKLDNN during compile time.
+Users can choose either of the implementation for TVM runtime.
+The main difference between the two implementation is that MKLDNN is centered
+around 0 and the default implementation for uint8 is not.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters</dt>
+<dd class="field-odd"><ul class="simple">
+<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input tensor to be quantized. Can be of type float32.</p></li>
+<li><p><strong>min_range</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.8)"><em>float</em></a>) – The minimum to use data elements.</p></li>
+<li><p><strong>max_range</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.8)"><em>float</em></a>) – The maximum to use for data elements.</p></li>
+<li><p><strong>out_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – The output data type, can be ‘int8’ or ‘uint8’</p></li>
+</ul>
+</dd>
+<dt class="field-even">Returns</dt>
+<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
+</dd>
+<dt class="field-odd">Return type</dt>
+<dd class="field-odd"><p>tvm.relay.Expr</p>
+</dd>
+</dl>
+</dd></dl>
+
+<dl class="function">
+<dt id="tvm.relay.frontend.get_mkldnn_int8_scale">
+<code class="sig-prename descclassname">tvm.relay.frontend.</code><code class="sig-name descname">get_mkldnn_int8_scale</code><span class="sig-paren">(</span><em class="sig-param">range_min</em>, <em class="sig-param">range_max</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.frontend.get_mkldnn_int8_scale" title="Permalink to this definition">¶</a></dt>
+<dd><p>Computes the quantization scale using MKLDNN specifications
+with the given range. The output datatype of tensor to be quantized should be
+int8.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters</dt>
+<dd class="field-odd"><ul class="simple">
+<li><p><strong>range_min</strong> (<em>float32</em>) – A number representing the lower end of the tensor to be quantized.</p></li>
+<li><p><strong>range_max</strong> (<em>float32</em>) – A number representing the upper end of the tensor to be quantized.</p></li>
+</ul>
+</dd>
+<dt class="field-even">Returns</dt>
+<dd class="field-even"><p><strong>scale</strong></p>
+</dd>
+<dt class="field-odd">Return type</dt>
+<dd class="field-odd"><p>A float32 number which acts as the scale for quantization.</p>
+</dd>
+</dl>
+</dd></dl>
+
+<dl class="function">
+<dt id="tvm.relay.frontend.get_mkldnn_uint8_scale">
+<code class="sig-prename descclassname">tvm.relay.frontend.</code><code class="sig-name descname">get_mkldnn_uint8_scale</code><span class="sig-paren">(</span><em class="sig-param">range_min</em>, <em class="sig-param">range_max</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.frontend.get_mkldnn_uint8_scale" title="Permalink to this definition">¶</a></dt>
+<dd><p>Computes the quantization scale using MKLDNN specifications
+with the given range. The output datatype of tensor to be quantized should be
+uint8.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters</dt>
+<dd class="field-odd"><ul class="simple">
+<li><p><strong>range_min</strong> (<em>float32</em>) – A number representing the lower end of the tensor to be quantized.</p></li>
+<li><p><strong>range_max</strong> (<em>float32</em>) – A number representing the upper end of the tensor to be quantized.</p></li>
+</ul>
+</dd>
+<dt class="field-even">Returns</dt>
+<dd class="field-even"><p><strong>scale</strong></p>
+</dd>
+<dt class="field-odd">Return type</dt>
+<dd class="field-odd"><p>A float32 number which acts as the scale for quantization.</p>
+</dd>
+</dl>
+</dd></dl>
+
+<dl class="function">
 <dt id="tvm.relay.frontend.from_keras">
 <code class="sig-prename descclassname">tvm.relay.frontend.</code><code class="sig-name descname">from_keras</code><span class="sig-paren">(</span><em class="sig-param">model</em>, <em class="sig-param">shape=None</em>, <em class="sig-param">layout='NCHW'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.frontend.from_keras" title="Permalink to this definition">¶</a></dt>
 <dd><p>Convert keras model to relay Function.</p>
@@ -387,6 +534,28 @@ The companion parameters will be handled automatically.</p>
 </dd></dl>
 
 <dl class="function">
+<dt id="tvm.relay.frontend.from_darknet">
+<code class="sig-prename descclassname">tvm.relay.frontend.</code><code class="sig-name descname">from_darknet</code><span class="sig-paren">(</span><em class="sig-param">net</em>, <em class="sig-param">shape=None</em>, <em class="sig-param">dtype='float32'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.frontend.from_darknet" title="Permalink to this definition">¶</a></dt>
+<dd><p>Convert from Darknet’s model into compatible relay Function.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters</dt>
+<dd class="field-odd"><ul class="simple">
+<li><p><strong>net</strong> (<em>Darknet net parameter</em>) – Darknet net structure.</p></li>
+<li><p><strong>shape</strong> (<em>dict of str to tuple</em><em>, </em><em>optional</em>) – The input shape to the graph</p></li>
+<li><p><strong>dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em> or </em><em>dict of str to str</em>) – The input types to the graph</p></li>
+</ul>
+</dd>
+<dt class="field-even">Returns</dt>
+<dd class="field-even"><p><ul class="simple">
+<li><p><strong>mod</strong> (<em>tvm.IRModule</em>) – The relay module for compilation.</p></li>
+<li><p><strong>params</strong> (<em>dict of str to tvm.nd.NDArray</em>) – The parameter dict to be used by relay</p></li>
+</ul>
+</p>
+</dd>
+</dl>
+</dd></dl>
+
+<dl class="function">
 <dt id="tvm.relay.frontend.from_pytorch">
 <code class="sig-prename descclassname">tvm.relay.frontend.</code><code class="sig-name descname">from_pytorch</code><span class="sig-paren">(</span><em class="sig-param">script_module</em>, <em class="sig-param">input_shapes</em>, <em class="sig-param">custom_convert_map=None</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.frontend.from_pytorch" title="Permalink to this definition">¶</a></dt>
 <dd><p>Load PyTorch model in the form of a scripted PyTorch model and convert into relay.
@@ -422,10 +591,10 @@ remember names (such as: input0, input1)</p></li>
   
     <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
       
-        <a href="image.html" class="btn btn-neutral float-right" title="tvm.relay.image" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
+        <a href="nn.html" class="btn btn-neutral float-right" title="tvm.relay.nn" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
       
       
-        <a href="backend.html" class="btn btn-neutral float-left" title="tvm.relay.backend" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
+        <a href="index.html" class="btn btn-neutral float-left" title="tvm.relay" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
       
     </div>
   
diff --git a/docs/api/python/relay/image.html b/docs/api/python/relay/image.html
index e63db9f..6b50e69 100644
--- a/docs/api/python/relay/image.html
+++ b/docs/api/python/relay/image.html
@@ -41,7 +41,7 @@
     <link rel="index" title="Index" href="../../../genindex.html" />
     <link rel="search" title="Search" href="../../../search.html" />
     <link rel="next" title="tvm.relay.transform" href="transform.html" />
-    <link rel="prev" title="tvm.relay.frontend" href="frontend.html" /> 
+    <link rel="prev" title="tvm.relay.vision" href="vision.html" /> 
 </head>
 
 <body class="wy-body-for-nav">
@@ -115,22 +115,19 @@
 <li class="toctree-l2"><a class="reference internal" href="../te.html">tvm.te</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../te.html#module-tvm.te.hybrid">tvm.te.hybrid</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../driver.html">tvm.driver</a></li>
+<li class="toctree-l2"><a class="reference internal" href="index.html">tvm.relay</a></li>
+<li class="toctree-l2"><a class="reference internal" href="frontend.html">tvm.relay.frontend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="nn.html">tvm.relay.nn</a></li>
+<li class="toctree-l2"><a class="reference internal" href="vision.html">tvm.relay.vision</a></li>
+<li class="toctree-l2 current"><a class="current reference internal" href="#">tvm.relay.image</a></li>
+<li class="toctree-l2"><a class="reference internal" href="transform.html">tvm.relay.transform</a></li>
+<li class="toctree-l2"><a class="reference internal" href="analysis.html">tvm.relay.analysis</a></li>
+<li class="toctree-l2"><a class="reference internal" href="backend.html">tvm.relay.backend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="testing.html">tvm.relay.testing</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../autotvm.html">tvm.autotvm</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../rpc.html">tvm.rpc</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../contrib.html">tvm.contrib</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../graph_runtime.html">tvm.contrib.graph_runtime</a></li>
-<li class="toctree-l2 current"><a class="reference internal" href="index.html">tvm.relay</a><ul class="current">
-<li class="toctree-l3"><a class="reference internal" href="analysis.html">tvm.relay.analysis</a></li>
-<li class="toctree-l3"><a class="reference internal" href="backend.html">tvm.relay.backend</a></li>
-<li class="toctree-l3"><a class="reference internal" href="frontend.html">tvm.relay.frontend</a></li>
-<li class="toctree-l3 current"><a class="current reference internal" href="#">tvm.relay.image</a></li>
-<li class="toctree-l3"><a class="reference internal" href="transform.html">tvm.relay.transform</a></li>
-<li class="toctree-l3"><a class="reference internal" href="nn.html">tvm.relay.nn</a></li>
-<li class="toctree-l3"><a class="reference internal" href="op.html">tvm.relay.op</a></li>
-<li class="toctree-l3"><a class="reference internal" href="vision.html">tvm.relay.vision</a></li>
-<li class="toctree-l3"><a class="reference internal" href="testing.html">tvm.relay.testing</a></li>
-</ul>
-</li>
 <li class="toctree-l2"><a class="reference internal" href="../vta/index.html">vta</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../topi.html">topi</a></li>
 </ul>
@@ -192,8 +189,6 @@
         
           <li><a href="../index.html">Python API</a> &raquo;</li>
         
-          <li><a href="index.html">tvm.relay</a> &raquo;</li>
-        
       <li>tvm.relay.image</li>
     
     
@@ -213,25 +208,30 @@
           <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
            <div itemprop="articleBody">
             
-  <div class="section" id="module-tvm.relay.op.image">
-<span id="tvm-relay-image"></span><h1>tvm.relay.image<a class="headerlink" href="#module-tvm.relay.op.image" title="Permalink to this headline">¶</a></h1>
+  <div class="section" id="module-tvm.relay.image">
+<span id="tvm-relay-image"></span><h1>tvm.relay.image<a class="headerlink" href="#module-tvm.relay.image" title="Permalink to this headline">¶</a></h1>
 <p>Image network related operators.</p>
-<dl class="class">
-<dt id="tvm.relay.op.image.OpPattern">
-<em class="property">class </em><code class="sig-prename descclassname">tvm.relay.op.image.</code><code class="sig-name descname">OpPattern</code><a class="headerlink" href="#tvm.relay.op.image.OpPattern" title="Permalink to this definition">¶</a></dt>
-<dd><p>Operator generic patterns</p>
-<div class="admonition seealso">
-<p class="admonition-title">See also</p>
-<dl class="simple">
-<dt><code class="xref py py-class docutils literal notranslate"><span class="pre">top.tag</span></code></dt><dd><p>Contains explanation of the tag type.</p>
-</dd>
-</dl>
-</div>
-</dd></dl>
-
+<p><strong>Functions</strong></p>
+<table class="longtable docutils align-default">
+<colgroup>
+<col style="width: 10%" />
+<col style="width: 90%" />
+</colgroup>
+<tbody>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.image.crop_and_resize" title="tvm.relay.image.crop_and_resize"><code class="xref py py-obj docutils literal notranslate"><span class="pre">crop_and_resize</span></code></a>(data, boxes, box_indices, …)</p></td>
+<td><p>Crop input images and resize them.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.image.dilation2d" title="tvm.relay.image.dilation2d"><code class="xref py py-obj docutils literal notranslate"><span class="pre">dilation2d</span></code></a>(data, weight[, strides, padding, …])</p></td>
+<td><p>Morphological Dilation 2D.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.image.resize" title="tvm.relay.image.resize"><code class="xref py py-obj docutils literal notranslate"><span class="pre">resize</span></code></a>(data, size[, layout, method, …])</p></td>
+<td><p>Image resize operator.</p></td>
+</tr>
+</tbody>
+</table>
 <dl class="function">
-<dt id="tvm.relay.op.image.crop_and_resize">
-<code class="sig-prename descclassname">tvm.relay.op.image.</code><code class="sig-name descname">crop_and_resize</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">boxes</em>, <em class="sig-param">box_indices</em>, <em class="sig-param">crop_size</em>, <em class="sig-param">layout</em>, <em class="sig-param">method='bilinear'</em>, <em class="sig-param">extrapolation_value=0</em>, <em class="sig-param">out_dtype=None</em><span class="sig-paren" [...]
+<dt id="tvm.relay.image.crop_and_resize">
+<code class="sig-prename descclassname">tvm.relay.image.</code><code class="sig-name descname">crop_and_resize</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">boxes</em>, <em class="sig-param">box_indices</em>, <em class="sig-param">crop_size</em>, <em class="sig-param">layout</em>, <em class="sig-param">method='bilinear'</em>, <em class="sig-param">extrapolation_value=0</em>, <em class="sig-param">out_dtype=None</em><span class="sig-paren">)< [...]
 <dd><p>Crop input images and resize them.</p>
 <p>method indicates the algorithm to be used while calculating the out value
 and method can be either “bilinear” or “nearest_neighbor”.</p>
@@ -260,8 +260,8 @@ the i-th box refers to.</p></li>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.image.dilation2d">
-<code class="sig-prename descclassname">tvm.relay.op.image.</code><code class="sig-name descname">dilation2d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">weight</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0)</em>, <em class="sig-param">dilations=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">data_layout='NCHW'</em>, <em class="sig-par [...]
+<dt id="tvm.relay.image.dilation2d">
+<code class="sig-prename descclassname">tvm.relay.image.</code><code class="sig-name descname">dilation2d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">weight</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0)</em>, <em class="sig-param">dilations=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">data_layout='NCHW'</em>, <em class="sig-param" [...]
 <dd><p>Morphological Dilation 2D.
 This operator takes the weight as the dilation kernel and dilates it with
 data to produce an output. In the default case, where the data_layout is <cite>NCHW</cite>
@@ -304,8 +304,8 @@ will convert the layout to the canonical layout
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.image.resize">
-<code class="sig-prename descclassname">tvm.relay.op.image.</code><code class="sig-name descname">resize</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">size</em>, <em class="sig-param">layout='NCHW'</em>, <em class="sig-param">method='bilinear'</em>, <em class="sig-param">coordinate_transformation_mode='half_pixel'</em>, <em class="sig-param">out_dtype=None</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.image.re [...]
+<dt id="tvm.relay.image.resize">
+<code class="sig-prename descclassname">tvm.relay.image.</code><code class="sig-name descname">resize</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">size</em>, <em class="sig-param">layout='NCHW'</em>, <em class="sig-param">method='bilinear'</em>, <em class="sig-param">coordinate_transformation_mode='half_pixel'</em>, <em class="sig-param">out_dtype=None</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.image.resize"  [...]
 <dd><p>Image resize operator.</p>
 <p>This operator takes data as input and does 2D scaling to the given scale factor.
 In the default case, where the data_layout is <cite>NCHW</cite>
@@ -349,7 +349,7 @@ Refer to the ONNX Resize operator specification for details.
         <a href="transform.html" class="btn btn-neutral float-right" title="tvm.relay.transform" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
       
       
-        <a href="frontend.html" class="btn btn-neutral float-left" title="tvm.relay.frontend" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
+        <a href="vision.html" class="btn btn-neutral float-left" title="tvm.relay.vision" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
       
     </div>
   
diff --git a/docs/api/python/relay/index.html b/docs/api/python/relay/index.html
index fc548c7..7bb30b1 100644
--- a/docs/api/python/relay/index.html
+++ b/docs/api/python/relay/index.html
@@ -40,8 +40,8 @@
   <link rel="stylesheet" href="../../../_static/css/tvm_theme.css" type="text/css" />
     <link rel="index" title="Index" href="../../../genindex.html" />
     <link rel="search" title="Search" href="../../../search.html" />
-    <link rel="next" title="tvm.relay.analysis" href="analysis.html" />
-    <link rel="prev" title="tvm.contrib.graph_runtime" href="../graph_runtime.html" /> 
+    <link rel="next" title="tvm.relay.frontend" href="frontend.html" />
+    <link rel="prev" title="tvm.driver" href="../driver.html" /> 
 </head>
 
 <body class="wy-body-for-nav">
@@ -115,22 +115,19 @@
 <li class="toctree-l2"><a class="reference internal" href="../te.html">tvm.te</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../te.html#module-tvm.te.hybrid">tvm.te.hybrid</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../driver.html">tvm.driver</a></li>
+<li class="toctree-l2 current"><a class="current reference internal" href="#">tvm.relay</a></li>
+<li class="toctree-l2"><a class="reference internal" href="frontend.html">tvm.relay.frontend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="nn.html">tvm.relay.nn</a></li>
+<li class="toctree-l2"><a class="reference internal" href="vision.html">tvm.relay.vision</a></li>
+<li class="toctree-l2"><a class="reference internal" href="image.html">tvm.relay.image</a></li>
+<li class="toctree-l2"><a class="reference internal" href="transform.html">tvm.relay.transform</a></li>
+<li class="toctree-l2"><a class="reference internal" href="analysis.html">tvm.relay.analysis</a></li>
+<li class="toctree-l2"><a class="reference internal" href="backend.html">tvm.relay.backend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="testing.html">tvm.relay.testing</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../autotvm.html">tvm.autotvm</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../rpc.html">tvm.rpc</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../contrib.html">tvm.contrib</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../graph_runtime.html">tvm.contrib.graph_runtime</a></li>
-<li class="toctree-l2 current"><a class="current reference internal" href="#">tvm.relay</a><ul>
-<li class="toctree-l3"><a class="reference internal" href="analysis.html">tvm.relay.analysis</a></li>
-<li class="toctree-l3"><a class="reference internal" href="backend.html">tvm.relay.backend</a></li>
-<li class="toctree-l3"><a class="reference internal" href="frontend.html">tvm.relay.frontend</a></li>
-<li class="toctree-l3"><a class="reference internal" href="image.html">tvm.relay.image</a></li>
-<li class="toctree-l3"><a class="reference internal" href="transform.html">tvm.relay.transform</a></li>
-<li class="toctree-l3"><a class="reference internal" href="nn.html">tvm.relay.nn</a></li>
-<li class="toctree-l3"><a class="reference internal" href="op.html">tvm.relay.op</a></li>
-<li class="toctree-l3"><a class="reference internal" href="vision.html">tvm.relay.vision</a></li>
-<li class="toctree-l3"><a class="reference internal" href="testing.html">tvm.relay.testing</a></li>
-</ul>
-</li>
 <li class="toctree-l2"><a class="reference internal" href="../vta/index.html">vta</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../topi.html">topi</a></li>
 </ul>
@@ -211,26 +208,9 @@
           <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
            <div itemprop="articleBody">
             
-  <div class="section" id="tvm-relay">
-<h1>tvm.relay<a class="headerlink" href="#tvm-relay" title="Permalink to this headline">¶</a></h1>
-<p>This document contains the Python API for the Relay frontend, optimizer, and
-compiler toolchain.</p>
-<p>Relay is the second-generation, high-level intermediate representation (IR) for the TVM
-compiler stack.</p>
-<div class="toctree-wrapper compound">
-<ul>
-<li class="toctree-l1"><a class="reference internal" href="analysis.html">tvm.relay.analysis</a></li>
-<li class="toctree-l1"><a class="reference internal" href="backend.html">tvm.relay.backend</a></li>
-<li class="toctree-l1"><a class="reference internal" href="frontend.html">tvm.relay.frontend</a></li>
-<li class="toctree-l1"><a class="reference internal" href="image.html">tvm.relay.image</a></li>
-<li class="toctree-l1"><a class="reference internal" href="transform.html">tvm.relay.transform</a></li>
-<li class="toctree-l1"><a class="reference internal" href="nn.html">tvm.relay.nn</a></li>
-<li class="toctree-l1"><a class="reference internal" href="op.html">tvm.relay.op</a></li>
-<li class="toctree-l1"><a class="reference internal" href="vision.html">tvm.relay.vision</a></li>
-<li class="toctree-l1"><a class="reference internal" href="testing.html">tvm.relay.testing</a></li>
-</ul>
-</div>
-<span class="target" id="module-tvm.relay"></span><p>The Relay IR namespace containing the IR definition and compiler.</p>
+  <div class="section" id="module-tvm.relay">
+<span id="tvm-relay"></span><h1>tvm.relay<a class="headerlink" href="#module-tvm.relay" title="Permalink to this headline">¶</a></h1>
+<p>The Relay IR namespace containing the IR definition and compiler.</p>
 <p><strong>Classes</strong></p>
 <table class="longtable docutils align-default">
 <colgroup>
@@ -934,38 +914,6 @@ used in advanced usecase of template functions.</p></li>
 </ul>
 </dd>
 </dl>
-<p><strong>Methods</strong></p>
-<table class="longtable docutils align-default">
-<colgroup>
-<col style="width: 10%" />
-<col style="width: 90%" />
-</colgroup>
-<tbody>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.Function.with_attr" title="tvm.relay.Function.with_attr"><code class="xref py py-obj docutils literal notranslate"><span class="pre">with_attr</span></code></a>(attr_key, attr_value)</p></td>
-<td><p>Create a new copy of the function and update the attribute</p></td>
-</tr>
-</tbody>
-</table>
-<dl class="method">
-<dt id="tvm.relay.Function.with_attr">
-<code class="sig-name descname">with_attr</code><span class="sig-paren">(</span><em class="sig-param">attr_key</em>, <em class="sig-param">attr_value</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.Function.with_attr" title="Permalink to this definition">¶</a></dt>
-<dd><p>Create a new copy of the function and update the attribute</p>
-<dl class="field-list simple">
-<dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><ul class="simple">
-<li><p><strong>attr_key</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a>) – The attribute key to use.</p></li>
-<li><p><strong>attr_value</strong> (<a class="reference internal" href="../runtime.html#tvm.runtime.Object" title="tvm.runtime.Object"><em>Object</em></a>) – The new attribute value.</p></li>
-</ul>
-</dd>
-<dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>func</strong> – A new copy of the function</p>
-</dd>
-<dt class="field-odd">Return type</dt>
-<dd class="field-odd"><p><a class="reference internal" href="#tvm.relay.Function" title="tvm.relay.Function">Function</a></p>
-</dd>
-</dl>
-</dd></dl>
-
 </dd></dl>
 
 <dl class="class">
@@ -3902,10 +3850,10 @@ GraphModule with API “load_params”.</p>
   
     <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
       
-        <a href="analysis.html" class="btn btn-neutral float-right" title="tvm.relay.analysis" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
+        <a href="frontend.html" class="btn btn-neutral float-right" title="tvm.relay.frontend" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
       
       
-        <a href="../graph_runtime.html" class="btn btn-neutral float-left" title="tvm.contrib.graph_runtime" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
+        <a href="../driver.html" class="btn btn-neutral float-left" title="tvm.driver" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
       
     </div>
   
diff --git a/docs/api/python/relay/nn.html b/docs/api/python/relay/nn.html
index 0e53ab0..84c0cfb 100644
--- a/docs/api/python/relay/nn.html
+++ b/docs/api/python/relay/nn.html
@@ -40,8 +40,8 @@
   <link rel="stylesheet" href="../../../_static/css/tvm_theme.css" type="text/css" />
     <link rel="index" title="Index" href="../../../genindex.html" />
     <link rel="search" title="Search" href="../../../search.html" />
-    <link rel="next" title="tvm.relay.op" href="op.html" />
-    <link rel="prev" title="tvm.relay.transform" href="transform.html" /> 
+    <link rel="next" title="tvm.relay.vision" href="vision.html" />
+    <link rel="prev" title="tvm.relay.frontend" href="frontend.html" /> 
 </head>
 
 <body class="wy-body-for-nav">
@@ -115,22 +115,19 @@
 <li class="toctree-l2"><a class="reference internal" href="../te.html">tvm.te</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../te.html#module-tvm.te.hybrid">tvm.te.hybrid</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../driver.html">tvm.driver</a></li>
+<li class="toctree-l2"><a class="reference internal" href="index.html">tvm.relay</a></li>
+<li class="toctree-l2"><a class="reference internal" href="frontend.html">tvm.relay.frontend</a></li>
+<li class="toctree-l2 current"><a class="current reference internal" href="#">tvm.relay.nn</a></li>
+<li class="toctree-l2"><a class="reference internal" href="vision.html">tvm.relay.vision</a></li>
+<li class="toctree-l2"><a class="reference internal" href="image.html">tvm.relay.image</a></li>
+<li class="toctree-l2"><a class="reference internal" href="transform.html">tvm.relay.transform</a></li>
+<li class="toctree-l2"><a class="reference internal" href="analysis.html">tvm.relay.analysis</a></li>
+<li class="toctree-l2"><a class="reference internal" href="backend.html">tvm.relay.backend</a></li>
+<li class="toctree-l2"><a class="reference internal" href="testing.html">tvm.relay.testing</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../autotvm.html">tvm.autotvm</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../rpc.html">tvm.rpc</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../contrib.html">tvm.contrib</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../graph_runtime.html">tvm.contrib.graph_runtime</a></li>
-<li class="toctree-l2 current"><a class="reference internal" href="index.html">tvm.relay</a><ul class="current">
-<li class="toctree-l3"><a class="reference internal" href="analysis.html">tvm.relay.analysis</a></li>
-<li class="toctree-l3"><a class="reference internal" href="backend.html">tvm.relay.backend</a></li>
-<li class="toctree-l3"><a class="reference internal" href="frontend.html">tvm.relay.frontend</a></li>
-<li class="toctree-l3"><a class="reference internal" href="image.html">tvm.relay.image</a></li>
-<li class="toctree-l3"><a class="reference internal" href="transform.html">tvm.relay.transform</a></li>
-<li class="toctree-l3 current"><a class="current reference internal" href="#">tvm.relay.nn</a></li>
-<li class="toctree-l3"><a class="reference internal" href="op.html">tvm.relay.op</a></li>
-<li class="toctree-l3"><a class="reference internal" href="vision.html">tvm.relay.vision</a></li>
-<li class="toctree-l3"><a class="reference internal" href="testing.html">tvm.relay.testing</a></li>
-</ul>
-</li>
 <li class="toctree-l2"><a class="reference internal" href="../vta/index.html">vta</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../topi.html">topi</a></li>
 </ul>
@@ -192,8 +189,6 @@
         
           <li><a href="../index.html">Python API</a> &raquo;</li>
         
-          <li><a href="index.html">tvm.relay</a> &raquo;</li>
-        
       <li>tvm.relay.nn</li>
     
     
@@ -213,122 +208,260 @@
           <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
            <div itemprop="articleBody">
             
-  <div class="section" id="module-tvm.relay.op.nn.nn">
-<span id="tvm-relay-nn"></span><h1>tvm.relay.nn<a class="headerlink" href="#module-tvm.relay.op.nn.nn" title="Permalink to this headline">¶</a></h1>
-<p>Neural network operations.</p>
-<dl class="class">
-<dt id="tvm.relay.op.nn.nn.TupleWrapper">
-<em class="property">class </em><code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">TupleWrapper</code><span class="sig-paren">(</span><em class="sig-param">tuple_value</em>, <em class="sig-param">size</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.TupleWrapper" title="Permalink to this definition">¶</a></dt>
-<dd><p>TupleWrapper.</p>
-<p>This class is a Python wrapper for a Relay tuple of known size.
-It allows for accessing the fields of the Relay tuple as though
-it were a Python tuple.</p>
+  <div class="section" id="module-tvm.relay.nn">
+<span id="tvm-relay-nn"></span><h1>tvm.relay.nn<a class="headerlink" href="#module-tvm.relay.nn" title="Permalink to this headline">¶</a></h1>
+<p>Neural network related operators.</p>
+<p><strong>Functions</strong></p>
+<table class="longtable docutils align-default">
+<colgroup>
+<col style="width: 10%" />
+<col style="width: 90%" />
+</colgroup>
+<tbody>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.adaptive_avg_pool2d" title="tvm.relay.nn.adaptive_avg_pool2d"><code class="xref py py-obj docutils literal notranslate"><span class="pre">adaptive_avg_pool2d</span></code></a>(data[, output_size, layout])</p></td>
+<td><p>2D adaptive average pooling operator. This operator is experimental.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.adaptive_avg_pool3d" title="tvm.relay.nn.adaptive_avg_pool3d"><code class="xref py py-obj docutils literal notranslate"><span class="pre">adaptive_avg_pool3d</span></code></a>(data[, output_size, layout])</p></td>
+<td><p>3D adaptive avg pooling operator. This operator is experimental.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.adaptive_max_pool2d" title="tvm.relay.nn.adaptive_max_pool2d"><code class="xref py py-obj docutils literal notranslate"><span class="pre">adaptive_max_pool2d</span></code></a>(data[, output_size, layout])</p></td>
+<td><p>2D adaptive max pooling operator. This operator is experimental.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.adaptive_max_pool3d" title="tvm.relay.nn.adaptive_max_pool3d"><code class="xref py py-obj docutils literal notranslate"><span class="pre">adaptive_max_pool3d</span></code></a>(data[, output_size, layout])</p></td>
+<td><p>3D adaptive max pooling operator. This operator is experimental.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.avg_pool1d" title="tvm.relay.nn.avg_pool1d"><code class="xref py py-obj docutils literal notranslate"><span class="pre">avg_pool1d</span></code></a>(data[, pool_size, strides, …])</p></td>
+<td><p>1D average pooling operator.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.avg_pool2d" title="tvm.relay.nn.avg_pool2d"><code class="xref py py-obj docutils literal notranslate"><span class="pre">avg_pool2d</span></code></a>(data[, pool_size, strides, …])</p></td>
+<td><p>2D average pooling operator.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.avg_pool2d_grad" title="tvm.relay.nn.avg_pool2d_grad"><code class="xref py py-obj docutils literal notranslate"><span class="pre">avg_pool2d_grad</span></code></a>(out_grad, data[, pool_size, …])</p></td>
+<td><p>Gradient of 2D average pooling operator.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.avg_pool3d" title="tvm.relay.nn.avg_pool3d"><code class="xref py py-obj docutils literal notranslate"><span class="pre">avg_pool3d</span></code></a>(data[, pool_size, strides, …])</p></td>
+<td><p>3D average pooling operator.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.batch_flatten" title="tvm.relay.nn.batch_flatten"><code class="xref py py-obj docutils literal notranslate"><span class="pre">batch_flatten</span></code></a>(data)</p></td>
+<td><p>BatchFlatten.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.batch_matmul" title="tvm.relay.nn.batch_matmul"><code class="xref py py-obj docutils literal notranslate"><span class="pre">batch_matmul</span></code></a>(x, y)</p></td>
+<td><p>Computes batch matrix multiplication of <cite>x</cite> and <cite>y</cite> when <cite>x</cite> and <cite>y</cite> are data in batch.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.batch_norm" title="tvm.relay.nn.batch_norm"><code class="xref py py-obj docutils literal notranslate"><span class="pre">batch_norm</span></code></a>(data, gamma, beta, moving_mean, …)</p></td>
+<td><p>Batch normalization layer (Ioffe and Szegedy, 2014).</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.bias_add" title="tvm.relay.nn.bias_add"><code class="xref py py-obj docutils literal notranslate"><span class="pre">bias_add</span></code></a>(data, bias[, axis])</p></td>
+<td><p>add_bias operator.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.bitpack" title="tvm.relay.nn.bitpack"><code class="xref py py-obj docutils literal notranslate"><span class="pre">bitpack</span></code></a>(data[, bits, pack_axis, bit_axis, …])</p></td>
+<td><p>Tensor packing for bitserial operations.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.bitserial_conv2d" title="tvm.relay.nn.bitserial_conv2d"><code class="xref py py-obj docutils literal notranslate"><span class="pre">bitserial_conv2d</span></code></a>(data, weight[, strides, …])</p></td>
+<td><p>2D convolution using bitserial computation.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.bitserial_dense" title="tvm.relay.nn.bitserial_dense"><code class="xref py py-obj docutils literal notranslate"><span class="pre">bitserial_dense</span></code></a>(data, weight[, units, …])</p></td>
+<td><p>Bitserial Dense operator.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.contrib_conv2d_nchwc" title="tvm.relay.nn.contrib_conv2d_nchwc"><code class="xref py py-obj docutils literal notranslate"><span class="pre">contrib_conv2d_nchwc</span></code></a>(data, kernel[, …])</p></td>
+<td><p>Variant of 2D convolution.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.contrib_conv2d_winograd_nnpack_weight_transform" title="tvm.relay.nn.contrib_conv2d_winograd_nnpack_weight_transform"><code class="xref py py-obj docutils literal notranslate"><span class="pre">contrib_conv2d_winograd_nnpack_weight_transform</span></code></a>(…)</p></td>
+<td><p>Weight Transformation part for 2D convolution with winograd algorithm.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.contrib_conv2d_winograd_weight_transform" title="tvm.relay.nn.contrib_conv2d_winograd_weight_transform"><code class="xref py py-obj docutils literal notranslate"><span class="pre">contrib_conv2d_winograd_weight_transform</span></code></a>(…)</p></td>
+<td><p>Weight Transformation part for 2D convolution with winograd algorithm.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.contrib_conv2d_winograd_without_weight_transform" title="tvm.relay.nn.contrib_conv2d_winograd_without_weight_transform"><code class="xref py py-obj docutils literal notranslate"><span class="pre">contrib_conv2d_winograd_without_weight_transform</span></code></a>(…)</p></td>
+<td><p>2D convolution with winograd algorithm.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.contrib_conv3d_winograd_weight_transform" title="tvm.relay.nn.contrib_conv3d_winograd_weight_transform"><code class="xref py py-obj docutils literal notranslate"><span class="pre">contrib_conv3d_winograd_weight_transform</span></code></a>(…)</p></td>
+<td><p>Weight Transformation part for 3D convolution with winograd algorithm.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.contrib_conv3d_winograd_without_weight_transform" title="tvm.relay.nn.contrib_conv3d_winograd_without_weight_transform"><code class="xref py py-obj docutils literal notranslate"><span class="pre">contrib_conv3d_winograd_without_weight_transform</span></code></a>(…)</p></td>
+<td><p>3D convolution with winograd algorithm.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.contrib_depthwise_conv2d_nchwc" title="tvm.relay.nn.contrib_depthwise_conv2d_nchwc"><code class="xref py py-obj docutils literal notranslate"><span class="pre">contrib_depthwise_conv2d_nchwc</span></code></a>(data, kernel)</p></td>
+<td><p>Variant of 2D depthwise convolution.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.conv1d" title="tvm.relay.nn.conv1d"><code class="xref py py-obj docutils literal notranslate"><span class="pre">conv1d</span></code></a>(data, weight[, strides, padding, …])</p></td>
+<td><p>1D convolution.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.conv1d_transpose" title="tvm.relay.nn.conv1d_transpose"><code class="xref py py-obj docutils literal notranslate"><span class="pre">conv1d_transpose</span></code></a>(data, weight[, strides, …])</p></td>
+<td><p>One dimensional transposed convolution operator.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.conv2d" title="tvm.relay.nn.conv2d"><code class="xref py py-obj docutils literal notranslate"><span class="pre">conv2d</span></code></a>(data, weight[, strides, padding, …])</p></td>
+<td><p>2D convolution.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.conv2d_transpose" title="tvm.relay.nn.conv2d_transpose"><code class="xref py py-obj docutils literal notranslate"><span class="pre">conv2d_transpose</span></code></a>(data, weight[, strides, …])</p></td>
+<td><p>Two dimensional transposed convolution operator.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.conv3d" title="tvm.relay.nn.conv3d"><code class="xref py py-obj docutils literal notranslate"><span class="pre">conv3d</span></code></a>(data, weight[, strides, padding, …])</p></td>
+<td><p>3D convolution.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.cross_entropy" title="tvm.relay.nn.cross_entropy"><code class="xref py py-obj docutils literal notranslate"><span class="pre">cross_entropy</span></code></a>(predictions, targets)</p></td>
+<td><p>CrossEntropy without logits.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.cross_entropy_with_logits" title="tvm.relay.nn.cross_entropy_with_logits"><code class="xref py py-obj docutils literal notranslate"><span class="pre">cross_entropy_with_logits</span></code></a>(predictions, targets)</p></td>
+<td><p>CrossEntropy with logits.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.deformable_conv2d" title="tvm.relay.nn.deformable_conv2d"><code class="xref py py-obj docutils literal notranslate"><span class="pre">deformable_conv2d</span></code></a>(data, offset, weight[, …])</p></td>
+<td><p>Deformable 2d convolution.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.dense" title="tvm.relay.nn.dense"><code class="xref py py-obj docutils literal notranslate"><span class="pre">dense</span></code></a>(data, weight[, units, out_dtype])</p></td>
+<td><p>Dense operator.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.depth_to_space" title="tvm.relay.nn.depth_to_space"><code class="xref py py-obj docutils literal notranslate"><span class="pre">depth_to_space</span></code></a>(data, block_size[, layout, mode])</p></td>
+<td><p>Convert channels into spatial blocks.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.dropout" title="tvm.relay.nn.dropout"><code class="xref py py-obj docutils literal notranslate"><span class="pre">dropout</span></code></a>(data[, rate])</p></td>
+<td><p>Applies the dropout operation to the input array.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.dropout_raw" title="tvm.relay.nn.dropout_raw"><code class="xref py py-obj docutils literal notranslate"><span class="pre">dropout_raw</span></code></a>(data[, rate])</p></td>
+<td><p>Applies the dropout operation to the input array.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.fifo_buffer" title="tvm.relay.nn.fifo_buffer"><code class="xref py py-obj docutils literal notranslate"><span class="pre">fifo_buffer</span></code></a>(data, buffer, axis)</p></td>
+<td><p>FIFO buffer to enable computation reuse in CNNs with sliding indow input</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.get_pad_tuple2d" title="tvm.relay.nn.get_pad_tuple2d"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_pad_tuple2d</span></code></a>(padding)</p></td>
+<td><p>Common code to get the pad option</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.get_pad_tuple3d" title="tvm.relay.nn.get_pad_tuple3d"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_pad_tuple3d</span></code></a>(padding)</p></td>
+<td><p>Common code to get the pad option</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.global_avg_pool2d" title="tvm.relay.nn.global_avg_pool2d"><code class="xref py py-obj docutils literal notranslate"><span class="pre">global_avg_pool2d</span></code></a>(data[, layout])</p></td>
+<td><p>2D global average pooling operator.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.global_max_pool2d" title="tvm.relay.nn.global_max_pool2d"><code class="xref py py-obj docutils literal notranslate"><span class="pre">global_max_pool2d</span></code></a>(data[, layout])</p></td>
+<td><p>2D global maximum pooling operator.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.instance_norm" title="tvm.relay.nn.instance_norm"><code class="xref py py-obj docutils literal notranslate"><span class="pre">instance_norm</span></code></a>(data, gamma, beta[, axis, …])</p></td>
+<td><p>Instance Normalization (Ulyanov and et al., 2016) Applies instance normalization to the n-dimensional input array.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.l2_normalize" title="tvm.relay.nn.l2_normalize"><code class="xref py py-obj docutils literal notranslate"><span class="pre">l2_normalize</span></code></a>(data, eps[, axis])</p></td>
+<td><p>Perform L2 normalization on the input data</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.layer_norm" title="tvm.relay.nn.layer_norm"><code class="xref py py-obj docutils literal notranslate"><span class="pre">layer_norm</span></code></a>(data, gamma, beta[, axis, …])</p></td>
+<td><p>Layer normalization (Lei Ba and et al., 2016).</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.leaky_relu" title="tvm.relay.nn.leaky_relu"><code class="xref py py-obj docutils literal notranslate"><span class="pre">leaky_relu</span></code></a>(data, alpha)</p></td>
+<td><p>This operator takes data as input and does Leaky version of a Rectified Linear Unit.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.log_softmax" title="tvm.relay.nn.log_softmax"><code class="xref py py-obj docutils literal notranslate"><span class="pre">log_softmax</span></code></a>(data[, axis])</p></td>
+<td><p>Computes log softmax.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.lrn" title="tvm.relay.nn.lrn"><code class="xref py py-obj docutils literal notranslate"><span class="pre">lrn</span></code></a>(data[, size, axis, bias, alpha, beta])</p></td>
+<td><p>This operator takes data as input and does local response normalization.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.max_pool1d" title="tvm.relay.nn.max_pool1d"><code class="xref py py-obj docutils literal notranslate"><span class="pre">max_pool1d</span></code></a>(data[, pool_size, strides, …])</p></td>
+<td><p>1D maximum pooling operator.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.max_pool2d" title="tvm.relay.nn.max_pool2d"><code class="xref py py-obj docutils literal notranslate"><span class="pre">max_pool2d</span></code></a>(data[, pool_size, strides, …])</p></td>
+<td><p>2D maximum pooling operator.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.max_pool2d_grad" title="tvm.relay.nn.max_pool2d_grad"><code class="xref py py-obj docutils literal notranslate"><span class="pre">max_pool2d_grad</span></code></a>(out_grad, data[, pool_size, …])</p></td>
+<td><p>Gradient of 2D maximum pooling operator.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.max_pool3d" title="tvm.relay.nn.max_pool3d"><code class="xref py py-obj docutils literal notranslate"><span class="pre">max_pool3d</span></code></a>(data[, pool_size, strides, …])</p></td>
+<td><p>3D maximum pooling operator.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.mirror_pad" title="tvm.relay.nn.mirror_pad"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mirror_pad</span></code></a>(data, pad_width[, mode])</p></td>
+<td><p>MirrorPadding</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.pad" title="tvm.relay.nn.pad"><code class="xref py py-obj docutils literal notranslate"><span class="pre">pad</span></code></a>(data, pad_width[, pad_value, pad_mode])</p></td>
+<td><p>Padding</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.prelu" title="tvm.relay.nn.prelu"><code class="xref py py-obj docutils literal notranslate"><span class="pre">prelu</span></code></a>(data, alpha[, axis])</p></td>
+<td><p>This operator takes data as input and does Leaky version of a Rectified Linear Unit.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.relu" title="tvm.relay.nn.relu"><code class="xref py py-obj docutils literal notranslate"><span class="pre">relu</span></code></a>(data)</p></td>
+<td><p>Rectified linear unit.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.softmax" title="tvm.relay.nn.softmax"><code class="xref py py-obj docutils literal notranslate"><span class="pre">softmax</span></code></a>(data[, axis])</p></td>
+<td><p>Computes softmax.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.space_to_depth" title="tvm.relay.nn.space_to_depth"><code class="xref py py-obj docutils literal notranslate"><span class="pre">space_to_depth</span></code></a>(data, block_size[, layout])</p></td>
+<td><p>Convert spatial blocks into channels.</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.sparse_dense" title="tvm.relay.nn.sparse_dense"><code class="xref py py-obj docutils literal notranslate"><span class="pre">sparse_dense</span></code></a>(data, weight)</p></td>
+<td><p>Computes the matrix multiplication of <cite>data</cite> and <cite>weight</cite>, where <cite>data</cite> is a dense matrix and <cite>weight</cite> is a sparse (either BSR or CSR) namedtuple with fields <cite>data</cite>, <cite>indices</cite>, and <cite>indptr</cite>.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.sparse_transpose" title="tvm.relay.nn.sparse_transpose"><code class="xref py py-obj docutils literal notranslate"><span class="pre">sparse_transpose</span></code></a>(x)</p></td>
+<td><p>Computes the fast matrix transpose of x, where x is a sparse tensor in CSR format (represented as a namedtuple with fields <cite>data</cite>, <cite>indices</cite>, and <cite>indptr</cite>).</p></td>
+</tr>
+<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.nn.upsampling" title="tvm.relay.nn.upsampling"><code class="xref py py-obj docutils literal notranslate"><span class="pre">upsampling</span></code></a>(data[, scale_h, scale_w, layout, …])</p></td>
+<td><p>Upsampling.</p></td>
+</tr>
+<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.nn.upsampling3d" title="tvm.relay.nn.upsampling3d"><code class="xref py py-obj docutils literal notranslate"><span class="pre">upsampling3d</span></code></a>(data[, scale_d, scale_h, …])</p></td>
+<td><p>3D Upsampling.</p></td>
+</tr>
+</tbody>
+</table>
+<dl class="function">
+<dt id="tvm.relay.nn.adaptive_avg_pool2d">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">adaptive_avg_pool2d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">output_size=None</em>, <em class="sig-param">layout='NCHW'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.adaptive_avg_pool2d" title="Permalink to this definition">¶</a></dt>
+<dd><p>2D adaptive average pooling operator. This operator is experimental.</p>
+<p>This operator takes data as input and does 2D average value calculation
+across each window represented by WxH.</p>
+<p>In the default case, where the data_layout is <cite>NCHW</cite>
+a data Tensor with shape <cite>(batch_size, in_channels, height, width)</cite>,
+to produce an output Tensor with shape
+(batch_size, in_channels, output_height, output_width).</p>
+<p>The pooling kernel and stride sizes are automatically chosen for
+desired output sizes.</p>
+<dl>
+<dt>For output_size:</dt><dd><p>If this argument is not provided, input height and width will be used
+as output height and width.</p>
+<p>If a single integer is provided for output_size, the output size is
+(N x C x output_size x output_size) for any input (NCHW).</p>
+<p>If a tuple of integers (height, width) are provided for output_size,
+the output size is (N x C x height x width) for any input (NCHW).</p>
+</dd>
+</dl>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
-<li><p><strong>tuple_value</strong> (<em>tvm.relay.Expr</em>) – The input tuple</p></li>
-<li><p><strong>size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – The size of the tuple.</p></li>
+<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
+<li><p><strong>output_size</strong> (<em>tuple of int. optional</em>) – Output height and width.</p></li>
+<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
 </ul>
 </dd>
-</dl>
-<dl class="method">
-<dt id="tvm.relay.op.nn.nn.TupleWrapper.astuple">
-<code class="sig-name descname">astuple</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.TupleWrapper.astuple" title="Permalink to this definition">¶</a></dt>
-<dd><p>Returns the underlying Relay tuple if this wrapper is passed
-as an argument to an FFI function.</p>
-</dd></dl>
-
-<dl class="method">
-<dt id="tvm.relay.op.nn.nn.TupleWrapper.astext">
-<code class="sig-name descname">astext</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.TupleWrapper.astext" title="Permalink to this definition">¶</a></dt>
-<dd><p>Get the text format of the tuple expression.</p>
-<dl class="field-list simple">
-<dt class="field-odd">Returns</dt>
-<dd class="field-odd"><p><strong>text</strong> – The text format of the tuple expression.</p>
-</dd>
-<dt class="field-even">Return type</dt>
-<dd class="field-even"><p><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)">str</a></p>
+<dt class="field-even">Returns</dt>
+<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
 </dd>
-</dl>
-</dd></dl>
-
-</dd></dl>
-
-<dl class="function">
-<dt id="tvm.relay.op.nn.nn.get_pad_tuple2d">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">get_pad_tuple2d</code><span class="sig-paren">(</span><em class="sig-param">padding</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.get_pad_tuple2d" title="Permalink to this definition">¶</a></dt>
-<dd><p>Common code to get the pad option
-:param padding: Padding size
-:type padding: Union[int, Tuple[int, …]]</p>
-<dl class="field-list simple">
-<dt class="field-odd">Returns</dt>
-<dd class="field-odd"><p><ul class="simple">
-<li><p><strong>pad_top</strong> (<em>int</em>) – Padding size on top</p></li>
-<li><p><strong>pad_left</strong> (<em>int</em>) – Padding size on left</p></li>
-<li><p><strong>pad_down</strong> (<em>int</em>) – Padding size on down.</p></li>
-<li><p><strong>pad_right</strong> (<em>int</em>) – Padding size on right.</p></li>
-</ul>
-</p>
+<dt class="field-odd">Return type</dt>
+<dd class="field-odd"><p>tvm.relay.Expr</p>
 </dd>
 </dl>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.get_pad_tuple3d">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">get_pad_tuple3d</code><span class="sig-paren">(</span><em class="sig-param">padding</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.get_pad_tuple3d" title="Permalink to this definition">¶</a></dt>
-<dd><p>Common code to get the pad option
-:param padding: Padding size
-:type padding: Union[int, Tuple[int, …]]</p>
-<dl class="field-list simple">
-<dt class="field-odd">Returns</dt>
-<dd class="field-odd"><p><ul class="simple">
-<li><p><strong>pad_front</strong> (<em>int</em>) – Padding size on front</p></li>
-<li><p><strong>pad_top</strong> (<em>int</em>) – Padding size on top</p></li>
-<li><p><strong>pad_left</strong> (<em>int</em>) – Padding size on left</p></li>
-<li><p><strong>pad_back</strong> (<em>int</em>) – Padding size on back</p></li>
-<li><p><strong>pad_down</strong> (<em>int</em>) – Padding size on down.</p></li>
-<li><p><strong>pad_right</strong> (<em>int</em>) – Padding size on right.</p></li>
-</ul>
-</p>
+<dt id="tvm.relay.nn.adaptive_avg_pool3d">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">adaptive_avg_pool3d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">output_size=None</em>, <em class="sig-param">layout='NCDHW'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.adaptive_avg_pool3d" title="Permalink to this definition">¶</a></dt>
+<dd><p>3D adaptive avg pooling operator. This operator is experimental.</p>
+<p>This operator takes data as input and does 3D avg value calculation
+across each window represented by DxWxH.</p>
+<p>In the default case, where the data_layout is <cite>NCDHW</cite>
+a data Tensor with shape <cite>(batch_size, in_channels, depth, height, width)</cite>,
+to produce an output Tensor with shape
+(batch_size, in_channels, output_depth, output_height, output_width).</p>
+<p>The pooling kernel and stride sizes are automatically chosen for
+desired output sizes.</p>
+<dl>
+<dt>For output_size:</dt><dd><p>If this argument is not provided, input depth, height and width will be used
+as output depth, height and width.</p>
+<p>If a single integer is provided for output_size, the output size is
+(N x C x output_size x output_size x output_size) for any input (NCDHW).</p>
+<p>If a tuple of integers (depth, height, width) are provided for output_size,
+the output size is (N x C x depth x height x width) for any input (NCDHW).</p>
 </dd>
 </dl>
-</dd></dl>
-
-<dl class="function">
-<dt id="tvm.relay.op.nn.nn.conv1d">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">conv1d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">weight</em>, <em class="sig-param">strides=1</em>, <em class="sig-param">padding=0</em>, <em class="sig-param">dilation=1</em>, <em class="sig-param">groups=1</em>, <em class="sig-param">channels=None</em>, <em class="sig-param">kernel_size=None</em>, <em class="sig-param">data_layout='NCW'</e [...]
-<dd><p>1D convolution.</p>
-<p>This operator takes the weight as the convolution kernel
-and convolves it with data to produce an output.</p>
-<p>In the default case, where the data_layout is <cite>NCW</cite>
-and kernel_layout is <cite>OIW</cite>, conv1d takes in
-a data Tensor with shape <cite>(batch_size, in_channels, width)</cite>,
-and a weight Tensor with shape <cite>(channels, in_channels, kernel_size)</cite>
-to produce an output Tensor with the following rule:</p>
-<div class="math notranslate nohighlight">
-\[\mbox{out}[b, c, w] = \sum_{dw, k}
-   \mbox{data}[b, k, \mbox{strides}[0] * w + dw] *
-   \mbox{weight}[c, k, dw]\]</div>
-<p>Padding and dilation are applied to data and weight respectively before the computation.
-This operator accepts data layout specification.
-Semantically, the operator will convert the layout to the canonical layout
-(<cite>NCW</cite> for data and <cite>OIW</cite> for weight), perform the computation,
-then convert to the out_layout.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
-<li><p><strong>strides</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>]</em>) – The strides of conv [...]
-<li><p><strong>padding</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>]</em>) – The padding of conv [...]
-<li><p><strong>dilation</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>]</em>) – Specifies the dila [...]
-<li><p><strong>groups</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em>) – Currently unused for 1D convolution.</p></li>
-<li><p><strong>channels</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em>) – Number of output channels of this convolution.</p></li>
-<li><p><strong>kernel_size</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>]</em>) – The spatial dim [...]
-<li><p><strong>data_layout</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Layout of the input.</p></li>
-<li><p><strong>kernel_layout</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Layout of the weight.</p></li>
-<li><p><strong>out_layout</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Layout of the output, by default, out_layout is the same as data_layout</p></li>
-<li><p><strong>out_dtype</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Specifies the output data type for mixed precision conv2d.</p></li>
+<li><p><strong>output_size</strong> (<em>tuple of int. optional</em>) – Output height and width.</p></li>
+<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -341,40 +474,32 @@ then convert to the out_layout.</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.conv2d">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">conv2d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">weight</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0)</em>, <em class="sig-param">dilation=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">groups=1</em>, <em class="sig-param">channels=No [...]
-<dd><p>2D convolution.</p>
-<p>This operator takes the weight as the convolution kernel
-and convolves it with data to produce an output.</p>
+<dt id="tvm.relay.nn.adaptive_max_pool2d">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">adaptive_max_pool2d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">output_size=None</em>, <em class="sig-param">layout='NCHW'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.adaptive_max_pool2d" title="Permalink to this definition">¶</a></dt>
+<dd><p>2D adaptive max pooling operator. This operator is experimental.</p>
+<p>This operator takes data as input and does 2D max value calculation
+across each window represented by WxH.</p>
 <p>In the default case, where the data_layout is <cite>NCHW</cite>
-and kernel_layout is <cite>OIHW</cite>, conv2d takes in
 a data Tensor with shape <cite>(batch_size, in_channels, height, width)</cite>,
-and a weight Tensor with shape <cite>(channels, in_channels, kernel_size[0], kernel_size[1])</cite>
-to produce an output Tensor with the following rule:</p>
-<div class="math notranslate nohighlight">
-\[\mbox{out}[b, c, y, x] = \sum_{dy, dx, k}
-   \mbox{data}[b, k, \mbox{strides}[0] * y  + dy, \mbox{strides}[1] * x + dx] *
-   \mbox{weight}[c, k, dy, dx]\]</div>
-<p>Padding and dilation are applied to data and weight respectively before the computation.
-This operator accepts data layout specification.
-Semantically, the operator will convert the layout to the canonical layout
-(<cite>NCHW</cite> for data and <cite>OIHW</cite> for weight), perform the computation,
-then convert to the out_layout.</p>
+to produce an output Tensor with shape
+(batch_size, in_channels, output_height, output_width).</p>
+<p>The pooling kernel and stride sizes are automatically chosen for
+desired output sizes.</p>
+<dl>
+<dt>For output_size:</dt><dd><p>If this argument is not provided, input height and width will be used
+as output height and width.</p>
+<p>If a single integer is provided for output_size, the output size is
+(N x C x output_size x output_size) for any input (NCHW).</p>
+<p>If a tuple of integers (height, width) are provided for output_size,
+the output size is (N x C x height x width) for any input (NCHW).</p>
+</dd>
+</dl>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
-<li><p><strong>strides</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>]</em>) – The strides of conv [...]
-<li><p><strong>padding</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>]</em>) – The padding of conv [...]
-<li><p><strong>dilation</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>]</em>) – Specifies the dila [...]
-<li><p><strong>groups</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em>) – Number of groups for grouped convolution.</p></li>
-<li><p><strong>channels</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em>) – Number of output channels of this convolution.</p></li>
-<li><p><strong>kernel_size</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>]</em>) – The spatial of  [...]
-<li><p><strong>data_layout</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Layout of the input.</p></li>
-<li><p><strong>kernel_layout</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Layout of the weight.</p></li>
-<li><p><strong>out_layout</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Layout of the output, by default, out_layout is the same as data_layout</p></li>
-<li><p><strong>out_dtype</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Specifies the output data type for mixed precision conv2d.</p></li>
+<li><p><strong>output_size</strong> (<em>tuple of int. optional</em>) – Output height and width.</p></li>
+<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -387,40 +512,32 @@ then convert to the out_layout.</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.conv3d">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">conv3d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">weight</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0</em>, <em class="sig-param">0)</em>, <em class="sig-param">dilation=(1</em>, <em class="sig-param">1</em>, <em class=" [...]
-<dd><p>3D convolution.</p>
-<p>This operator takes the weight as the convolution kernel
-and convolves it with data to produce an output.</p>
+<dt id="tvm.relay.nn.adaptive_max_pool3d">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">adaptive_max_pool3d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">output_size=None</em>, <em class="sig-param">layout='NCDHW'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.adaptive_max_pool3d" title="Permalink to this definition">¶</a></dt>
+<dd><p>3D adaptive max pooling operator. This operator is experimental.</p>
+<p>This operator takes data as input and does 3D max value calculation
+across each window represented by DxWxH.</p>
 <p>In the default case, where the data_layout is <cite>NCDHW</cite>
-and kernel_layout is <cite>OIDHW</cite>, conv3d takes in
 a data Tensor with shape <cite>(batch_size, in_channels, depth, height, width)</cite>,
-and a weight Tensor with shape <cite>(channels, in_channels, kernel_size[0], kernel_size[1],
-kernel_size[2])</cite> to produce an output Tensor with the following rule:</p>
-<div class="math notranslate nohighlight">
-\[\mbox{out}[b, c, z, y, x] = \sum_{dz, dy, dx, k}
-   \mbox{data}[b, k, \mbox{strides}[0] * z  + dz, \mbox{strides}[1] * y  + dy,
-   \mbox{strides}[2] * x + dx] * \mbox{weight}[c, k, dz, dy, dx]\]</div>
-<p>Padding and dilation are applied to data and weight respectively before the computation.
-This operator accepts data layout specification.
-Semantically, the operator will convert the layout to the canonical layout
-(<cite>NCDHW</cite> for data and <cite>OIDHW</cite> for weight), perform the computation,
-then convert to the out_layout.</p>
+to produce an output Tensor with shape
+(batch_size, in_channels, output_depth, output_height, output_width).</p>
+<p>The pooling kernel and stride sizes are automatically chosen for
+desired output sizes.</p>
+<dl>
+<dt>For output_size:</dt><dd><p>If this argument is not provided, input depth, height and width will be used
+as output depth, height and width.</p>
+<p>If a single integer is provided for output_size, the output size is
+(N x C x output_size x output_size x output_size) for any input (NCDHW).</p>
+<p>If a tuple of integers (depth, height, width) are provided for output_size,
+the output size is (N x C x depth x height x width) for any input (NCDHW).</p>
+</dd>
+</dl>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
-<li><p><strong>strides</strong> (<em>Optional</em><em>[</em><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>]</em>) – The strides of convolution.</p></li>
-<li><p><strong>padding</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>]</em>) – The padding of conv [...]
-<li><p><strong>dilation</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>]</em>) – Specifies the dila [...]
-<li><p><strong>groups</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em>) – Number of groups for grouped convolution.</p></li>
-<li><p><strong>channels</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em>) – Number of output channels of this convolution.</p></li>
-<li><p><strong>kernel_size</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>]</em>) – The spatial of  [...]
-<li><p><strong>data_layout</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Layout of the input.</p></li>
-<li><p><strong>kernel_layout</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Layout of the weight.</p></li>
-<li><p><strong>out_layout</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Layout of the output, by default, out_layout is the same as data_layout</p></li>
-<li><p><strong>out_dtype</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Specifies the output data type for mixed precision conv2d.</p></li>
+<li><p><strong>output_size</strong> (<em>tuple of int. optional</em>) – Output height and width.</p></li>
+<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -433,27 +550,27 @@ then convert to the out_layout.</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.contrib_conv3d_winograd_without_weight_transform">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">contrib_conv3d_winograd_without_weight_transform</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">weight</em>, <em class="sig-param">tile_size</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0</em>, <em class="sig-param">0)</em>, < [...]
-<dd><p>3D convolution with winograd algorithm.</p>
-<p>The basic parameters are the same as the ones in vanilla conv3d.
-It assumes the weight is pre-transformed by nn.contrib_conv3d_winograd_weight_transform</p>
+<dt id="tvm.relay.nn.avg_pool1d">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">avg_pool1d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">pool_size=(1</em>, <em class="sig-param">)</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">)</em>, <em class="sig-param">layout='NCW'</em>, <em class="sig-param">ceil_mode=False</em>, <em class="sig-param">co [...]
+<dd><p>1D average pooling operator.</p>
+<p>This operator takes data as input and does 1D average value calculation
+with in pool_size sized window by striding defined by stride</p>
+<p>In the default case, where the data_layout is <cite>NCW</cite>
+a data Tensor with shape <cite>(batch_size, channels, width)</cite>,
+to produce an output Tensor.</p>
+<p>The ceil_mode is used to take ceil or floor while computing out shape.
+count_include_pad indicates including or excluding padded input values in computation.
+This operator accepts data layout specification.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
-<li><p><strong>tile_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – The Tile size of winograd. E.g. 2 for F(2x2x2, 3x3x3) and 4 for F(4x4x4, 3x3x3)</p></li>
-<li><p><strong>strides</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The strides of convolution.</p></li>
-<li><p><strong>padding</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The padding of convolution on both sides of inputs before convolution.</p></li>
-<li><p><strong>dilation</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – Specifies the dilation rate to be used for dilated convolution.</p></li>
-<li><p><strong>groups</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of groups for grouped convolution.</p></li>
-<li><p><strong>channels</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of output channels of this convolution.</p></li>
-<li><p><strong>kernel_size</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The spatial of the convolution kernel.</p></li>
-<li><p><strong>data_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
-<li><p><strong>kernel_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the weight.</p></li>
-<li><p><strong>out_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the output, by default, out_layout is the same as data_layout</p></li>
-<li><p><strong>out_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Specifies the output data type for mixed precision conv2d.</p></li>
+<li><p><strong>pool_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em><em>, </em><em>optional</em>) – The size of window for pooling.</p></li>
+<li><p><strong>strides</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em><em>, </em><em>optional</em>) – The strides of pooling.</p></li>
+<li><p><strong>padding</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em><em>, </em><em>optional</em>) – The padding for pooling.</p></li>
+<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
+<li><p><strong>ceil_mode</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – To enable or disable ceil while pooling.</p></li>
+<li><p><strong>count_include_pad</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – To include padding to compute the average.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -466,25 +583,32 @@ It assumes the weight is pre-transformed by nn.contrib_conv3d_winograd_weight_tr
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.conv2d_transpose">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">conv2d_transpose</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">weight</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0)</em>, <em class="sig-param">dilation=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">groups=1</em>, <em class="sig-param">c [...]
-<dd><p>Two dimensional transposed convolution operator.</p>
+<dt id="tvm.relay.nn.avg_pool2d">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">avg_pool2d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">pool_size=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0)</em>, <em class="sig-param">layout='NCHW'</em>, <em class="sig-param">ceil_mode=False</em>, <em class="sig-param [...]
+<dd><p>2D average pooling operator.</p>
+<p>This operator takes data as input and does 2D average value calculation
+with in pool_size sized window by striding defined by stride</p>
+<p>In the default case, where the data_layout is <cite>NCHW</cite>
+a data Tensor with shape <cite>(batch_size, in_channels, height, width)</cite>,
+to produce an output Tensor with the following rule:</p>
+<p>with data of shape (b, c, h, w), pool_size (kh, kw)</p>
+<div class="math notranslate nohighlight">
+\[\mbox{out}(b, c, y, x)  = \frac{1}{kh * kw} \sum_{m=0}^{kh-1} \sum_{n=0}^{kw-1}
+     \mbox{data}(b, c, \mbox{stride}[0] * y + m, \mbox{stride}[1] * x + n)\]</div>
+<p>Padding is applied to data before the computation.
+ceil_mode is used to take ceil or floor while computing out shape.
+count_include_pad indicates including or excluding padded input values in computation.
+This operator accepts data layout specification.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
-<li><p><strong>strides</strong> (<a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>, </em><em>optional</em>) – The strides of convolution.</p></li>
-<li><p><strong>padding</strong> (<a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>, </em><em>optional</em>) – The padding of convolution on both sides of inputs.</p></li>
-<li><p><strong>dilation</strong> (<a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>, </em><em>optional</em>) – Specifies the dilation rate to be used for dilated convolution.</p></li>
-<li><p><strong>channels</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of output channels of this convolution.</p></li>
-<li><p><strong>kernel_size</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The spatial of the convolution kernel.</p></li>
-<li><p><strong>groups</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of groups for grouped convolution.</p></li>
-<li><p><strong>data_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
-<li><p><strong>kernel_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the weight.</p></li>
-<li><p><strong>out_layout</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Layout of the output, by default, out_layout is the same as data_layout</p></li>
-<li><p><strong>output_padding</strong> (<a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>, </em><em>optional</em>) – Additional zero-padding to be added to one side of the output.</p></li>
-<li><p><strong>out_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Specifies the output data type for mixed precision conv2d.</p></li>
+<li><p><strong>pool_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em><em>, </em><em>optional</em>) – The size of window for pooling.</p></li>
+<li><p><strong>strides</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The strides of pooling.</p></li>
+<li><p><strong>padding</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The padding for pooling.</p></li>
+<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
+<li><p><strong>ceil_mode</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – To enable or disable ceil while pooling.</p></li>
+<li><p><strong>count_include_pad</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – To include padding to compute the average.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -497,25 +621,21 @@ It assumes the weight is pre-transformed by nn.contrib_conv3d_winograd_weight_tr
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.conv1d_transpose">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">conv1d_transpose</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">weight</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">)</em>, <em class="sig-param">dilation=(1</em>, <em class="sig-param">)</em>, <em class="sig-param">groups=1</em>, <em class="sig-param">chan [...]
-<dd><p>One dimensional transposed convolution operator.</p>
+<dt id="tvm.relay.nn.avg_pool2d_grad">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">avg_pool2d_grad</code><span class="sig-paren">(</span><em class="sig-param">out_grad</em>, <em class="sig-param">data</em>, <em class="sig-param">pool_size=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0)</em>, <em class="sig-param">layout='NCHW'</em>, <em class="sig-param"> [...]
+<dd><p>Gradient of 2D average pooling operator.</p>
+<p>This operator takes out_grad and data as input and calculates gradient of avg_pool2d.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
+<li><p><strong>out_grad</strong> (<em>tvm.relay.Expr</em>) – The output gradient</p></li>
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
-<li><p><strong>strides</strong> (<a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>, </em><em>optional</em>) – The strides of convolution.</p></li>
-<li><p><strong>padding</strong> (<a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>, </em><em>optional</em>) – The padding of convolution on both sides of inputs.</p></li>
-<li><p><strong>dilation</strong> (<a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>, </em><em>optional</em>) – Specifies the dilation rate to be used for dilated convolution.</p></li>
-<li><p><strong>channels</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of output channels of this convolution.</p></li>
-<li><p><strong>kernel_size</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The spatial of the convolution kernel.</p></li>
-<li><p><strong>groups</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of groups for grouped convolution.</p></li>
-<li><p><strong>data_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
-<li><p><strong>kernel_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the weight.</p></li>
-<li><p><strong>out_layout</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Layout of the output, by default, out_layout is the same as data_layout</p></li>
-<li><p><strong>output_padding</strong> (<a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>, </em><em>optional</em>) – Additional zero-padding to be added to one side of the output.</p></li>
-<li><p><strong>out_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Specifies the output data type for mixed precision conv2d.</p></li>
+<li><p><strong>pool_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em><em>, </em><em>optional</em>) – The size of window for pooling.</p></li>
+<li><p><strong>strides</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The strides of pooling.</p></li>
+<li><p><strong>padding</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The padding for pooling.</p></li>
+<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
+<li><p><strong>ceil_mode</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – To enable or disable ceil while pooling.</p></li>
+<li><p><strong>count_include_pad</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – To include padding to compute the average.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -528,20 +648,27 @@ It assumes the weight is pre-transformed by nn.contrib_conv3d_winograd_weight_tr
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.softmax">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">softmax</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">axis=-1</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.softmax" title="Permalink to this definition">¶</a></dt>
-<dd><p>Computes softmax.</p>
-<div class="math notranslate nohighlight">
-\[\text{softmax}(x)_i = \frac{exp(x_i)}{\sum_j exp(x_j)}\]</div>
-<div class="admonition note">
-<p class="admonition-title">Note</p>
-<p>This operator can be optimized away for inference.</p>
-</div>
+<dt id="tvm.relay.nn.avg_pool3d">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">avg_pool3d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">pool_size=(1</em>, <em class="sig-param">1</em>, <em class="sig-param">1)</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0</em>, <em class="sig-param">0)</em>, <em class="sig-p [...]
+<dd><p>3D average pooling operator.</p>
+<p>This operator takes data as input and does 3D average value calculation
+with in pool_size sized window by striding defined by stride</p>
+<p>In the default case, where the data_layout is <cite>NCDHW</cite>
+a data Tensor with shape <cite>(batch_size, channels, depth, height, width)</cite>,
+to produce an output Tensor.</p>
+<p>The ceil_mode is used to take ceil or floor while computing out shape.
+count_include_pad indicates including or excluding padded input values in computation.
+This operator accepts data layout specification.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>axis</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – The axis to sum over when computing softmax</p></li>
+<li><p><strong>pool_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em><em>, </em><em>optional</em>) – The size of window for pooling.</p></li>
+<li><p><strong>strides</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The strides of pooling.</p></li>
+<li><p><strong>padding</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The padding for pooling.</p></li>
+<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
+<li><p><strong>ceil_mode</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – To enable or disable ceil while pooling.</p></li>
+<li><p><strong>count_include_pad</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – To include padding to compute the average.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -554,11 +681,76 @@ It assumes the weight is pre-transformed by nn.contrib_conv3d_winograd_weight_tr
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.log_softmax">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">log_softmax</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">axis=-1</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.log_softmax" title="Permalink to this definition">¶</a></dt>
-<dd><p>Computes log softmax.</p>
+<dt id="tvm.relay.nn.batch_flatten">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">batch_flatten</code><span class="sig-paren">(</span><em class="sig-param">data</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.batch_flatten" title="Permalink to this definition">¶</a></dt>
+<dd><p>BatchFlatten.</p>
+<p>This operator flattens all the dimensions except for the batch dimension.
+which results a 2D output.</p>
+<p>For data with shape <code class="docutils literal notranslate"><span class="pre">(d1,</span> <span class="pre">d2,</span> <span class="pre">...,</span> <span class="pre">dk)</span></code>
+batch_flatten(data) returns reshaped output of shape <code class="docutils literal notranslate"><span class="pre">(d1,</span> <span class="pre">d2*...*dk)</span></code>.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters</dt>
+<dd class="field-odd"><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p>
+</dd>
+<dt class="field-even">Returns</dt>
+<dd class="field-even"><p><strong>result</strong> – The Flattened result.</p>
+</dd>
+<dt class="field-odd">Return type</dt>
+<dd class="field-odd"><p>tvm.relay.Expr</p>
+</dd>
+</dl>
+</dd></dl>
+
+<dl class="function">
+<dt id="tvm.relay.nn.batch_matmul">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">batch_matmul</code><span class="sig-paren">(</span><em class="sig-param">x</em>, <em class="sig-param">y</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.batch_matmul" title="Permalink to this definition">¶</a></dt>
+<dd><p>Computes batch matrix multiplication of <cite>x</cite> and <cite>y</cite> when <cite>x</cite> and <cite>y</cite> are data
+in batch.</p>
 <div class="math notranslate nohighlight">
-\[\text{log_softmax}(x)_i = \log \frac{exp(x_i)}{\sum_j exp(x_j)}\]</div>
+\[\mbox{batch_matmul}(x, y)[i, :, :] = \mbox{matmul}(x[i, :, :], y[i, :, :]^T)\]</div>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters</dt>
+<dd class="field-odd"><ul class="simple">
+<li><p><strong>x</strong> (<em>tvm.relay.Expr</em>) – The first input.</p></li>
+<li><p><strong>y</strong> (<em>tvm.relay.Expr</em>) – The second input.</p></li>
+</ul>
+</dd>
+<dt class="field-even">Returns</dt>
+<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
+</dd>
+<dt class="field-odd">Return type</dt>
+<dd class="field-odd"><p>tvm.relay.Expr</p>
+</dd>
+</dl>
+</dd></dl>
+
+<dl class="function">
+<dt id="tvm.relay.nn.batch_norm">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">batch_norm</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">gamma</em>, <em class="sig-param">beta</em>, <em class="sig-param">moving_mean</em>, <em class="sig-param">moving_var</em>, <em class="sig-param">axis=1</em>, <em class="sig-param">epsilon=1e-05</em>, <em class="sig-param">center=True</em>, <em class="sig-param">scale=True</em><span class="sig-p [...]
+<dd><p>Batch normalization layer (Ioffe and Szegedy, 2014).
+Normalizes the input at each batch, i.e. applies a transformation
+that maintains the mean activation close to 0 and the activation
+standard deviation close to 1.</p>
+<div class="math notranslate nohighlight">
+\[\begin{split}data\_mean[i] = mean(data[:,i,:,...]) \\
+data\_var[i] = var(data[:,i,:,...])\end{split}\]</div>
+<p>Then compute the normalized output, which has the same shape as input, as following:</p>
+<div class="math notranslate nohighlight">
+\[out[:,i,:,...] = \frac{data[:,i,:,...] - data\_mean[i]}{\sqrt{data\_var[i]+\epsilon}}
+    * gamma[i] + beta[i]\]</div>
+<p>Both <em>mean</em> and <em>var</em> returns a scalar by treating the input as a vector.</p>
+<p>Assume the input has size <em>k</em> on axis 1, then both <code class="docutils literal notranslate"><span class="pre">gamma</span></code> and <code class="docutils literal notranslate"><span class="pre">beta</span></code>
+have shape <em>(k,)</em>.</p>
+<p>Besides the inputs and the outputs, this operator accepts two auxiliary
+states, <code class="docutils literal notranslate"><span class="pre">moving_mean</span></code> and <code class="docutils literal notranslate"><span class="pre">moving_var</span></code>, which are <em>k</em>-length
+vectors. They are global statistics for the whole dataset, which are updated by</p>
+<div class="highlight-python notranslate"><div class="highlight"><pre><span class="n">moving_mean</span> <span class="o">=</span> <span class="n">moving_mean</span> <span class="o">*</span> <span class="n">momentum</span> <span class="o">+</span> <span class="n">data_mean</span> <span class="o">*</span> <span class="p">(</span><span class="mi">1</span> <span class="o">-</span> <span class="n">momentum</span><span class="p">)</span>
+<span class="n">moving_var</span> <span class="o">=</span> <span class="n">moving_var</span> <span class="o">*</span> <span class="n">momentum</span> <span class="o">+</span> <span class="n">data_var</span> <span class="o">*</span> <span class="p">(</span><span class="mi">1</span> <span class="o">-</span> <span class="n">momentum</span><span class="p">)</span>
+</pre></div>
+</div>
+<p>The parameter <code class="docutils literal notranslate"><span class="pre">axis</span></code> specifies which axis of the input shape denotes
+the ‘channel’ (separately normalized groups).  The default is 1.
+Specifying -1 sets the channel axis to be the last item in the input shape.</p>
 <div class="admonition note">
 <p class="admonition-title">Note</p>
 <p>This operator can be optimized away for inference.</p>
@@ -566,12 +758,48 @@ It assumes the weight is pre-transformed by nn.contrib_conv3d_winograd_weight_tr
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
+<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – Input to which batch_norm will be applied.</p></li>
+<li><p><strong>gamma</strong> (<em>tvm.relay.Expr</em>) – The gamma scale factor.</p></li>
+<li><p><strong>beta</strong> (<em>tvm.relay.Expr</em>) – The beta offset factor.</p></li>
+<li><p><strong>moving_mean</strong> (<em>tvm.relay.Expr</em>) – Running mean of input,</p></li>
+<li><p><strong>moving_var</strong> (<em>tvm.relay.Expr</em>) – Running variance of input.</p></li>
+<li><p><strong>axis</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em><em>, </em><em>default=1</em>) – Specify along which shape axis the channel is specified.</p></li>
+<li><p><strong>epsilon</strong> (<em>double</em><em>, </em><em>optional</em><em>, </em><em>default=1e-5</em>) – Small float added to variance to avoid dividing by zero.</p></li>
+<li><p><strong>center</strong> (<em>boolean</em><em>, </em><em>optional</em><em>, </em><em>default=True</em>) – If True, add offset of beta to normalized tensor, If False,
+beta is ignored.</p></li>
+<li><p><strong>scale</strong> (<em>boolean</em><em>, </em><em>optional</em><em>, </em><em>default=True</em>) – If true, multiply by gamma. If False, gamma is not used.
+When the next layer is piecewise linear (also e.g. nn.relu),
+this can be disabled since the scaling will be done by the next layer.</p></li>
+</ul>
+</dd>
+<dt class="field-even">Returns</dt>
+<dd class="field-even"><p><strong>result</strong> – Tuple of normed data (same shape as input),
+new running mean (k-length vector),
+and new running variance (k-length vector)</p>
+</dd>
+<dt class="field-odd">Return type</dt>
+<dd class="field-odd"><p><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple">relay.Tuple</a>([tvm.relay.Expr, tvm.relay.Expr, tvm.relay.Expr])</p>
+</dd>
+</dl>
+</dd></dl>
+
+<dl class="function">
+<dt id="tvm.relay.nn.bias_add">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">bias_add</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">bias</em>, <em class="sig-param">axis=1</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.bias_add" title="Permalink to this definition">¶</a></dt>
+<dd><p>add_bias operator.</p>
+<p>Add 1D bias to the axis of data.
+This function is a special case of add which allows
+inference of shape of the bias from data.</p>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters</dt>
+<dd class="field-odd"><ul class="simple">
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>axis</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – The axis to sum over when computing log softmax</p></li>
+<li><p><strong>bias</strong> (<em>tvm.relay.Expr</em>) – The bias to be added.</p></li>
+<li><p><strong>axis</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – The axis to add the bias.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
+<dd class="field-even"><p><strong>result</strong> – The final result.</p>
 </dd>
 <dt class="field-odd">Return type</dt>
 <dd class="field-odd"><p>tvm.relay.Expr</p>
@@ -580,30 +808,31 @@ It assumes the weight is pre-transformed by nn.contrib_conv3d_winograd_weight_tr
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.max_pool1d">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">max_pool1d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">pool_size=(1</em>, <em class="sig-param">)</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">)</em>, <em class="sig-param">layout='NCW'</em>, <em class="sig-param">ceil_mode=False</em><span class="sig-par [...]
-<dd><p>1D maximum pooling operator.</p>
-<p>This operator takes data as input and does 1D max value calculation
-with in pool_size sized window by striding defined by stride.</p>
-<p>In the default case, where the data_layout is <cite>NCW</cite>
-a data Tensor with shape <cite>(batch_size, channels, width)</cite>,
-to produce an output Tensor.</p>
-<p>The ceil_mode is used to take ceil or floor while computing out shape.
-count_include_pad indicates including or excluding padded input values in computation.
-This operator accepts data layout specification.</p>
+<dt id="tvm.relay.nn.bitpack">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">bitpack</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">bits=1</em>, <em class="sig-param">pack_axis=1</em>, <em class="sig-param">bit_axis=2</em>, <em class="sig-param">pack_type='uint32'</em>, <em class="sig-param">name='BitPack'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.bitpack" title="Permalink to this definition" [...]
+<dd><p>Tensor packing for bitserial operations.
+The values along the input tensor’s pack_axis are quantized
+and packed together into the specified pack_type in a new
+bit axis.</p>
+<p>For example, consider bitpacking with data to be a tensor with shape [1, 64, 128, 128],
+pack_axis=1, bit_axis=4, pack_type=uint8, and bits=2. The output in this case will
+be of shape [1, 8, 128, 128, 2]. The dimension of axis 1 has been reduced by a factor
+of 8 since each value is packed into an 8-bit uint8. Axis 4 is now two bitplanes
+representing the quantized value of the incoming data. The output tensor is now
+ready to be used in a bitserial operation.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
-<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>pool_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em><em>, </em><em>optional</em>) – The size of window for pooling.</p></li>
-<li><p><strong>strides</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em><em>, </em><em>optional</em>) – The strides of pooling.</p></li>
-<li><p><strong>padding</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em><em>, </em><em>optional</em>) – The padding for pooling.</p></li>
-<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
-<li><p><strong>ceil_mode</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – To enable or disable ceil while pooling.</p></li>
+<li><p><strong>data</strong> (<em>tvm.relay.expr</em>) – The incoming tensor to be packed.</p></li>
+<li><p><strong>bits</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – Number of bits that should be packed.</p></li>
+<li><p><strong>pack_axis</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – Axis that should be decomposed and packed.</p></li>
+<li><p><strong>bit_axis</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – New axis containing bitplane.</p></li>
+<li><p><strong>pack_type</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a>) – Datatype to pack bits into.</p></li>
+<li><p><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Name of the operation.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
+<dd class="field-even"><p><strong>result</strong> – The packed tensor.</p>
 </dd>
 <dt class="field-odd">Return type</dt>
 <dd class="field-odd"><p>tvm.relay.Expr</p>
@@ -612,30 +841,24 @@ This operator accepts data layout specification.</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.max_pool2d">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">max_pool2d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">pool_size=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0)</em>, <em class="sig-param">layout='NCHW'</em>, <em class="sig-param">ceil_mode=False</em><span class="sig [...]
-<dd><p>2D maximum pooling operator.</p>
-<p>This operator takes data as input and does 2D max value calculation
-with in pool_size sized window by striding defined by stride</p>
-<p>In the default case, where the data_layout is <cite>NCHW</cite>
-a data Tensor with shape <cite>(batch_size, in_channels, height, width)</cite>,
-to produce an output Tensor with the following rule:</p>
-<p>with data of shape (b, c, h, w) and pool_size (kh, kw)</p>
-<div class="math notranslate nohighlight">
-\[\mbox{out}(b, c, y, x)  = \max_{m=0, \ldots, kh-1} \max_{n=0, \ldots, kw-1}
-     \mbox{data}(b, c, \mbox{stride}[0] * y + m, \mbox{stride}[1] * x + n)\]</div>
-<p>Padding is applied to data before the computation.
-ceil_mode is used to take ceil or floor while computing out shape.
-This operator accepts data layout specification.</p>
+<dt id="tvm.relay.nn.bitserial_conv2d">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">bitserial_conv2d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">weight</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0)</em>, <em class="sig-param">channels=None</em>, <em class="sig-param">kernel_size=(3</em>, <em class="sig-param">3)</em>, <em class="sig-param" [...]
+<dd><p>2D convolution using bitserial computation.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>pool_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em><em>, </em><em>optional</em>) – The size of window for pooling.</p></li>
-<li><p><strong>strides</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The strides of pooling.</p></li>
-<li><p><strong>padding</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The padding for pooling.</p></li>
-<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
-<li><p><strong>ceil_mode</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – To enable or disable ceil while pooling.</p></li>
+<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
+<li><p><strong>strides</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The strides of convolution.</p></li>
+<li><p><strong>padding</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The padding of convolution on both sides of inputs before convolution.</p></li>
+<li><p><strong>channels</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of output channels of this convolution.</p></li>
+<li><p><strong>kernel_size</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The spatial of the convolution kernel.</p></li>
+<li><p><strong>activation_bits</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – Number of bits to pack for activations.</p></li>
+<li><p><strong>weight_bits</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – Number of bits to pack for weights.</p></li>
+<li><p><strong>data_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
+<li><p><strong>kernel_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the kernel</p></li>
+<li><p><strong>pack_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Datatype to pack bits into.</p></li>
+<li><p><strong>out_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Specifies the output data type for mixed precision conv2d.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -648,26 +871,25 @@ This operator accepts data layout specification.</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.max_pool3d">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">max_pool3d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">pool_size=(1</em>, <em class="sig-param">1</em>, <em class="sig-param">1)</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0</em>, <em class="sig-param">0)</em>, <em class= [...]
-<dd><p>3D maximum pooling operator.</p>
-<p>This operator takes data as input and does 3D max value calculation
-with in pool_size sized window by striding defined by stride.</p>
-<p>In the default case, where the data_layout is <cite>NCDHW</cite>
-a data Tensor with shape <cite>(batch_size, channels, depth, height, width)</cite>,
-to produce an output Tensor.</p>
-<p>The ceil_mode is used to take ceil or floor while computing out shape.
-count_include_pad indicates including or excluding padded input values in computation.
-This operator accepts data layout specification.</p>
+<dt id="tvm.relay.nn.bitserial_dense">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">bitserial_dense</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">weight</em>, <em class="sig-param">units=None</em>, <em class="sig-param">data_bits=1</em>, <em class="sig-param">weight_bits=1</em>, <em class="sig-param">pack_dtype='uint32'</em>, <em class="sig-param">out_dtype='int16'</em>, <em class="sig-param">unipolar=True</em><span class="sig-paren" [...]
+<dd><p>Bitserial Dense operator.
+Applies matrix multiplication of two quantized matrices
+using a fast bitserial algorithm.</p>
+<div class="math notranslate nohighlight">
+\[\]</div>
+<p><cite>Y = X * W</cite></p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>pool_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em><em>, </em><em>optional</em>) – The size of window for pooling.</p></li>
-<li><p><strong>strides</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The strides of pooling.</p></li>
-<li><p><strong>padding</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The padding for pooling.</p></li>
-<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
-<li><p><strong>ceil_mode</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – To enable or disable ceil while pooling.</p></li>
+<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
+<li><p><strong>units</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of hidden units of the dense transformation.</p></li>
+<li><p><strong>data_bits</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – Number of bits incoming tensor should be packed with.</p></li>
+<li><p><strong>weight_bits</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – Number of bits weight tensor should be packed with.</p></li>
+<li><p><strong>pack_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Datatype to pack individual bits into before computation.</p></li>
+<li><p><strong>out_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Specifies the output data type for mixed precision dense.</p></li>
+<li><p><strong>unipolar</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – Whether to use unipolar or bipolar quantization for inputs.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -680,27 +902,27 @@ This operator accepts data layout specification.</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.avg_pool1d">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">avg_pool1d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">pool_size=(1</em>, <em class="sig-param">)</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">)</em>, <em class="sig-param">layout='NCW'</em>, <em class="sig-param">ceil_mode=False</em>, <em class="sig-par [...]
-<dd><p>1D average pooling operator.</p>
-<p>This operator takes data as input and does 1D average value calculation
-with in pool_size sized window by striding defined by stride</p>
-<p>In the default case, where the data_layout is <cite>NCW</cite>
-a data Tensor with shape <cite>(batch_size, channels, width)</cite>,
-to produce an output Tensor.</p>
-<p>The ceil_mode is used to take ceil or floor while computing out shape.
-count_include_pad indicates including or excluding padded input values in computation.
-This operator accepts data layout specification.</p>
+<dt id="tvm.relay.nn.contrib_conv2d_nchwc">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">contrib_conv2d_nchwc</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">kernel</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0)</em>, <em class="sig-param">dilation=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">groups=1</em>, <em class="sig-param">cha [...]
+<dd><p>Variant of 2D convolution.</p>
+<p>This operator takes the weight as the convolution kernel
+and convolves it with data to produce an output, following a specialized
+NCHWc data layout.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>pool_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em><em>, </em><em>optional</em>) – The size of window for pooling.</p></li>
-<li><p><strong>strides</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em><em>, </em><em>optional</em>) – The strides of pooling.</p></li>
-<li><p><strong>padding</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em><em>, </em><em>optional</em>) – The padding for pooling.</p></li>
-<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
-<li><p><strong>ceil_mode</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – To enable or disable ceil while pooling.</p></li>
-<li><p><strong>count_include_pad</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – To include padding to compute the average.</p></li>
+<li><p><strong>kernel</strong> (<em>tvm.relay.Expr</em>) – The kernel expressions.</p></li>
+<li><p><strong>strides</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The strides of convolution.</p></li>
+<li><p><strong>padding</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The padding of convolution on both sides of inputs before convolution.</p></li>
+<li><p><strong>dilation</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – Specifies the dilation rate to be used for dilated convolution.</p></li>
+<li><p><strong>groups</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of groups for grouped convolution.</p></li>
+<li><p><strong>channels</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of output channels of this convolution.</p></li>
+<li><p><strong>kernel_size</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The spatial of the convolution kernel.</p></li>
+<li><p><strong>data_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
+<li><p><strong>kernel_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the weight.</p></li>
+<li><p><strong>out_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the output, by default, out_layout is the same as data_layout</p></li>
+<li><p><strong>out_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Specifies the output data type for mixed precision conv2d.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -713,32 +935,16 @@ This operator accepts data layout specification.</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.avg_pool2d">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">avg_pool2d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">pool_size=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0)</em>, <em class="sig-param">layout='NCHW'</em>, <em class="sig-param">ceil_mode=False</em>, <em class="sig [...]
-<dd><p>2D average pooling operator.</p>
-<p>This operator takes data as input and does 2D average value calculation
-with in pool_size sized window by striding defined by stride</p>
-<p>In the default case, where the data_layout is <cite>NCHW</cite>
-a data Tensor with shape <cite>(batch_size, in_channels, height, width)</cite>,
-to produce an output Tensor with the following rule:</p>
-<p>with data of shape (b, c, h, w), pool_size (kh, kw)</p>
-<div class="math notranslate nohighlight">
-\[\mbox{out}(b, c, y, x)  = \frac{1}{kh * kw} \sum_{m=0}^{kh-1} \sum_{n=0}^{kw-1}
-     \mbox{data}(b, c, \mbox{stride}[0] * y + m, \mbox{stride}[1] * x + n)\]</div>
-<p>Padding is applied to data before the computation.
-ceil_mode is used to take ceil or floor while computing out shape.
-count_include_pad indicates including or excluding padded input values in computation.
-This operator accepts data layout specification.</p>
+<dt id="tvm.relay.nn.contrib_conv2d_winograd_nnpack_weight_transform">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">contrib_conv2d_winograd_nnpack_weight_transform</code><span class="sig-paren">(</span><em class="sig-param">weight</em>, <em class="sig-param">convolution_algorithm</em>, <em class="sig-param">out_dtype=''</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.contrib_conv2d_winograd_nnpack_weight_transform" title="Permalink to this definition">¶</a></dt>
+<dd><p>Weight Transformation part for 2D convolution with winograd algorithm.</p>
+<p>We separate this as a single op to enable pre-compute for inference.
+Use this together with nn.contrib_conv2d_winograd_without_weight_transform</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
-<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>pool_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em><em>, </em><em>optional</em>) – The size of window for pooling.</p></li>
-<li><p><strong>strides</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The strides of pooling.</p></li>
-<li><p><strong>padding</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The padding for pooling.</p></li>
-<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
-<li><p><strong>ceil_mode</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – To enable or disable ceil while pooling.</p></li>
-<li><p><strong>count_include_pad</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – To include padding to compute the average.</p></li>
+<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
+<li><p><strong>convolution_algorithm</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – The Tile size of winograd. E.g. 2 for F(2x2, 3x3) and 4 for F(4x4, 3x3)</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -751,27 +957,16 @@ This operator accepts data layout specification.</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.avg_pool3d">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">avg_pool3d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">pool_size=(1</em>, <em class="sig-param">1</em>, <em class="sig-param">1)</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0</em>, <em class="sig-param">0)</em>, <em class= [...]
-<dd><p>3D average pooling operator.</p>
-<p>This operator takes data as input and does 3D average value calculation
-with in pool_size sized window by striding defined by stride</p>
-<p>In the default case, where the data_layout is <cite>NCDHW</cite>
-a data Tensor with shape <cite>(batch_size, channels, depth, height, width)</cite>,
-to produce an output Tensor.</p>
-<p>The ceil_mode is used to take ceil or floor while computing out shape.
-count_include_pad indicates including or excluding padded input values in computation.
-This operator accepts data layout specification.</p>
+<dt id="tvm.relay.nn.contrib_conv2d_winograd_weight_transform">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">contrib_conv2d_winograd_weight_transform</code><span class="sig-paren">(</span><em class="sig-param">weight</em>, <em class="sig-param">tile_size</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.contrib_conv2d_winograd_weight_transform" title="Permalink to this definition">¶</a></dt>
+<dd><p>Weight Transformation part for 2D convolution with winograd algorithm.</p>
+<p>We separate this as a single op to enable pre-compute for inference.
+Use this together with nn.contrib_conv2d_winograd_without_weight_transform</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
-<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>pool_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em><em>, </em><em>optional</em>) – The size of window for pooling.</p></li>
-<li><p><strong>strides</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The strides of pooling.</p></li>
-<li><p><strong>padding</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The padding for pooling.</p></li>
-<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
-<li><p><strong>ceil_mode</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – To enable or disable ceil while pooling.</p></li>
-<li><p><strong>count_include_pad</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – To include padding to compute the average.</p></li>
+<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
+<li><p><strong>tile_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – The Tile size of winograd. E.g. 2 for F(2x2, 3x3) and 4 for F(4x4, 3x3)</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -784,20 +979,27 @@ This operator accepts data layout specification.</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.max_pool2d_grad">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">max_pool2d_grad</code><span class="sig-paren">(</span><em class="sig-param">out_grad</em>, <em class="sig-param">data</em>, <em class="sig-param">pool_size=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0)</em>, <em class="sig-param">layout='NCHW'</em>, <em class="sig-p [...]
-<dd><p>Gradient of 2D maximum pooling operator.</p>
-<p>This operator takes out_grad and data as input and calculates gradient of max_pool2d.</p>
+<dt id="tvm.relay.nn.contrib_conv2d_winograd_without_weight_transform">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">contrib_conv2d_winograd_without_weight_transform</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">weight</em>, <em class="sig-param">tile_size</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0)</em>, <em class="sig-param">dilation=(1</em>, <em class="sig-param">1)</e [...]
+<dd><p>2D convolution with winograd algorithm.</p>
+<p>The basic parameters are the same as the ones in vanilla conv2d.
+It assumes the weight is pre-transformed by nn.contrib_conv2d_winograd_weight_transform</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
-<li><p><strong>out_grad</strong> (<em>tvm.relay.Expr</em>) – The output gradient</p></li>
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>pool_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em><em>, </em><em>optional</em>) – The size of window for pooling.</p></li>
-<li><p><strong>strides</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The strides of pooling.</p></li>
-<li><p><strong>padding</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The padding for pooling.</p></li>
-<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
-<li><p><strong>ceil_mode</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – To enable or disable ceil while pooling.</p></li>
+<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
+<li><p><strong>tile_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – The Tile size of winograd. E.g. 2 for F(2x2, 3x3) and 4 for F(4x4, 3x3)</p></li>
+<li><p><strong>strides</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The strides of convolution.</p></li>
+<li><p><strong>padding</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The padding of convolution on both sides of inputs before convolution.</p></li>
+<li><p><strong>dilation</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – Specifies the dilation rate to be used for dilated convolution.</p></li>
+<li><p><strong>groups</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of groups for grouped convolution.</p></li>
+<li><p><strong>channels</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of output channels of this convolution.</p></li>
+<li><p><strong>kernel_size</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The spatial of the convolution kernel.</p></li>
+<li><p><strong>data_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
+<li><p><strong>kernel_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the weight.</p></li>
+<li><p><strong>out_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the output, by default, out_layout is the same as data_layout</p></li>
+<li><p><strong>out_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Specifies the output data type for mixed precision conv2d.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -810,21 +1012,16 @@ This operator accepts data layout specification.</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.avg_pool2d_grad">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">avg_pool2d_grad</code><span class="sig-paren">(</span><em class="sig-param">out_grad</em>, <em class="sig-param">data</em>, <em class="sig-param">pool_size=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0)</em>, <em class="sig-param">layout='NCHW'</em>, <em class="sig-p [...]
-<dd><p>Gradient of 2D average pooling operator.</p>
-<p>This operator takes out_grad and data as input and calculates gradient of avg_pool2d.</p>
+<dt id="tvm.relay.nn.contrib_conv3d_winograd_weight_transform">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">contrib_conv3d_winograd_weight_transform</code><span class="sig-paren">(</span><em class="sig-param">weight</em>, <em class="sig-param">tile_size</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.contrib_conv3d_winograd_weight_transform" title="Permalink to this definition">¶</a></dt>
+<dd><p>Weight Transformation part for 3D convolution with winograd algorithm.</p>
+<p>We separate this as a single op to enable pre-compute for inference.
+Use this together with nn.contrib_conv3d_winograd_without_weight_transform</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
-<li><p><strong>out_grad</strong> (<em>tvm.relay.Expr</em>) – The output gradient</p></li>
-<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>pool_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em><em>, </em><em>optional</em>) – The size of window for pooling.</p></li>
-<li><p><strong>strides</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The strides of pooling.</p></li>
-<li><p><strong>padding</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The padding for pooling.</p></li>
-<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
-<li><p><strong>ceil_mode</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – To enable or disable ceil while pooling.</p></li>
-<li><p><strong>count_include_pad</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – To include padding to compute the average.</p></li>
+<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
+<li><p><strong>tile_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – The Tile size of winograd. E.g. 2 for F(2x2x2, 3x3x3) and 4 for F(4x4x4, 3x3x3)</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -837,23 +1034,27 @@ This operator accepts data layout specification.</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.global_max_pool2d">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">global_max_pool2d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">layout='NCHW'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.global_max_pool2d" title="Permalink to this definition">¶</a></dt>
-<dd><p>2D global maximum pooling operator.</p>
-<p>This operator takes data as input and does 2D max value calculation
-across each window represented by WxH.</p>
-<p>In the default case, where the data_layout is <cite>NCHW</cite>
-a data Tensor with shape <cite>(batch_size, in_channels, height, width)</cite>,
-to produce an output Tensor with the following rule:</p>
-<p>with data of shape (b, c, h, w)</p>
-<div class="math notranslate nohighlight">
-\[\mbox{out}(b, c, 1, 1)  = \max_{m=0, \ldots, h} \max_{n=0, \ldots, w}
-     \mbox{data}(b, c, m, n)\]</div>
+<dt id="tvm.relay.nn.contrib_conv3d_winograd_without_weight_transform">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">contrib_conv3d_winograd_without_weight_transform</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">weight</em>, <em class="sig-param">tile_size</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0</em>, <em class="sig-param">0)</em>, <em cla [...]
+<dd><p>3D convolution with winograd algorithm.</p>
+<p>The basic parameters are the same as the ones in vanilla conv3d.
+It assumes the weight is pre-transformed by nn.contrib_conv3d_winograd_weight_transform</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
+<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
+<li><p><strong>tile_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – The Tile size of winograd. E.g. 2 for F(2x2x2, 3x3x3) and 4 for F(4x4x4, 3x3x3)</p></li>
+<li><p><strong>strides</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The strides of convolution.</p></li>
+<li><p><strong>padding</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The padding of convolution on both sides of inputs before convolution.</p></li>
+<li><p><strong>dilation</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – Specifies the dilation rate to be used for dilated convolution.</p></li>
+<li><p><strong>groups</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of groups for grouped convolution.</p></li>
+<li><p><strong>channels</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of output channels of this convolution.</p></li>
+<li><p><strong>kernel_size</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The spatial of the convolution kernel.</p></li>
+<li><p><strong>data_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
+<li><p><strong>kernel_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the weight.</p></li>
+<li><p><strong>out_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the output, by default, out_layout is the same as data_layout</p></li>
+<li><p><strong>out_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Specifies the output data type for mixed precision conv2d.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -866,23 +1067,27 @@ to produce an output Tensor with the following rule:</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.global_avg_pool2d">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">global_avg_pool2d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">layout='NCHW'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.global_avg_pool2d" title="Permalink to this definition">¶</a></dt>
-<dd><p>2D global average pooling operator.</p>
-<p>This operator takes data as input and does 2D average value calculation
-across each window represented by WxH.</p>
-<p>In the default case, where the data_layout is <cite>NCHW</cite>
-a data Tensor with shape <cite>(batch_size, in_channels, height, width)</cite>,
-to produce an output Tensor with the following rule:</p>
-<p>with data of shape (b, c, h, w)</p>
-<div class="math notranslate nohighlight">
-\[\mbox{out}(b, c, 1, 1)  = \frac{1}{h * w} \sum_{m=0}^{h-1} \sum_{n=0}^{w-1}
-     \mbox{data}(b, c, m, n)\]</div>
+<dt id="tvm.relay.nn.contrib_depthwise_conv2d_nchwc">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">contrib_depthwise_conv2d_nchwc</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">kernel</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0)</em>, <em class="sig-param">dilation=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">groups=1</em>, <em class="sig- [...]
+<dd><p>Variant of 2D depthwise convolution.</p>
+<p>This operator takes the weight as the depthwise convolution kernel
+and depthwise convolves it with data to produce an output, following a specialized
+NCHWc data layout.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
+<li><p><strong>kernel</strong> (<em>tvm.relay.Expr</em>) – The kernel expressions.</p></li>
+<li><p><strong>strides</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The strides of convolution.</p></li>
+<li><p><strong>padding</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The padding of convolution on both sides of inputs before convolution.</p></li>
+<li><p><strong>dilation</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – Specifies the dilation rate to be used for dilated convolution.</p></li>
+<li><p><strong>groups</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of groups for grouped convolution.</p></li>
+<li><p><strong>channels</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of output channels of this convolution.</p></li>
+<li><p><strong>kernel_size</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The spatial of the convolution kernel.</p></li>
+<li><p><strong>data_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
+<li><p><strong>kernel_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the weight.</p></li>
+<li><p><strong>out_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the output, by default, out_layout is the same as data_layout</p></li>
+<li><p><strong>out_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Specifies the output data type for mixed precision conv2d.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -895,24 +1100,40 @@ to produce an output Tensor with the following rule:</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.upsampling">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">upsampling</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">scale_h=1</em>, <em class="sig-param">scale_w=1</em>, <em class="sig-param">layout='NCHW'</em>, <em class="sig-param">method='nearest_neighbor'</em>, <em class="sig-param">align_corners=False</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.upsampling" ti [...]
-<dd><p>Upsampling.</p>
-<p>This operator takes data as input and does 2D scaling to the given scale factor.
-In the default case, where the data_layout is <cite>NCHW</cite>
-with data of shape (n, c, h, w)
-out will have a shape (n, c, h*scale_h, w*scale_w)</p>
-<p>method indicates the algorithm to be used while calculating the out value
-and method can be one of (“bilinear”, “nearest_neighbor”, “bicubic”)</p>
+<dt id="tvm.relay.nn.conv1d">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">conv1d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">weight</em>, <em class="sig-param">strides=1</em>, <em class="sig-param">padding=0</em>, <em class="sig-param">dilation=1</em>, <em class="sig-param">groups=1</em>, <em class="sig-param">channels=None</em>, <em class="sig-param">kernel_size=None</em>, <em class="sig-param">data_layout='NCW'</em>, <e [...]
+<dd><p>1D convolution.</p>
+<p>This operator takes the weight as the convolution kernel
+and convolves it with data to produce an output.</p>
+<p>In the default case, where the data_layout is <cite>NCW</cite>
+and kernel_layout is <cite>OIW</cite>, conv1d takes in
+a data Tensor with shape <cite>(batch_size, in_channels, width)</cite>,
+and a weight Tensor with shape <cite>(channels, in_channels, kernel_size)</cite>
+to produce an output Tensor with the following rule:</p>
+<div class="math notranslate nohighlight">
+\[\mbox{out}[b, c, w] = \sum_{dw, k}
+   \mbox{data}[b, k, \mbox{strides}[0] * w + dw] *
+   \mbox{weight}[c, k, dw]\]</div>
+<p>Padding and dilation are applied to data and weight respectively before the computation.
+This operator accepts data layout specification.
+Semantically, the operator will convert the layout to the canonical layout
+(<cite>NCW</cite> for data and <cite>OIW</cite> for weight), perform the computation,
+then convert to the out_layout.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>scale_h</strong> (<em>tvm.relay.Expr</em>) – The scale factor for height upsampling.</p></li>
-<li><p><strong>scale_w</strong> (<em>tvm.relay.Expr</em>) – The scale factor for width upsampling.</p></li>
-<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
-<li><p><strong>method</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Scale method to used [nearest_neighbor, bilinear, bicubic].</p></li>
-<li><p><strong>align_corners</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – Whether to keep corners in proper place.</p></li>
+<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
+<li><p><strong>strides</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>]</em>) – The strides of conv [...]
+<li><p><strong>padding</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>]</em>) – The padding of conv [...]
+<li><p><strong>dilation</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>]</em>) – Specifies the dila [...]
+<li><p><strong>groups</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em>) – Currently unused for 1D convolution.</p></li>
+<li><p><strong>channels</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em>) – Number of output channels of this convolution.</p></li>
+<li><p><strong>kernel_size</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>]</em>) – The spatial dim [...]
+<li><p><strong>data_layout</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Layout of the input.</p></li>
+<li><p><strong>kernel_layout</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Layout of the weight.</p></li>
+<li><p><strong>out_layout</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Layout of the output, by default, out_layout is the same as data_layout</p></li>
+<li><p><strong>out_dtype</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Specifies the output data type for mixed precision conv2d.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -925,28 +1146,25 @@ and method can be one of (“bilinear”, “nearest_neighbor”, “bicubic”)
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.upsampling3d">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">upsampling3d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">scale_d=1</em>, <em class="sig-param">scale_h=1</em>, <em class="sig-param">scale_w=1</em>, <em class="sig-param">layout='NCDHW'</em>, <em class="sig-param">method='nearest_neighbor'</em>, <em class="sig-param">coordinate_transformation_mode='half_pixel'</em><span class="sig-paren">)</sp [...]
-<dd><p>3D Upsampling.</p>
-<p>This operator takes data as input and does 3D scaling to the given scale factor.
-In the default case, where the data_layout is <cite>NCDHW</cite>
-with data of shape (n, c, d, h, w)
-out will have a shape (n, c, d*scale_d, h*scale_h, w*scale_w)</p>
-<p>method indicates the algorithm to be used while calculating the out value
-and method can be one of (“trilinear”, “nearest_neighbor”)</p>
+<dt id="tvm.relay.nn.conv1d_transpose">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">conv1d_transpose</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">weight</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">)</em>, <em class="sig-param">dilation=(1</em>, <em class="sig-param">)</em>, <em class="sig-param">groups=1</em>, <em class="sig-param">channels=N [...]
+<dd><p>One dimensional transposed convolution operator.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>scale_d</strong> (<em>tvm.relay.Expr</em>) – The scale factor for depth upsampling.</p></li>
-<li><p><strong>scale_h</strong> (<em>tvm.relay.Expr</em>) – The scale factor for height upsampling.</p></li>
-<li><p><strong>scale_w</strong> (<em>tvm.relay.Expr</em>) – The scale factor for width upsampling.</p></li>
-<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
-<li><p><strong>method</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Scale method to used [nearest_neighbor, trilinear].</p></li>
-<li><p><strong>coordinate_transformation_mode</strong> (<em>string</em><em>, </em><em>optional</em>) – Describes how to transform the coordinate in the resized tensor
-to the coordinate in the original tensor.
-Refer to the ONNX Resize operator specification for details.
-Available options are “half_pixel”, “align_corners” and “asymmetric”.</p></li>
+<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
+<li><p><strong>strides</strong> (<a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>, </em><em>optional</em>) – The strides of convolution.</p></li>
+<li><p><strong>padding</strong> (<a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>, </em><em>optional</em>) – The padding of convolution on both sides of inputs.</p></li>
+<li><p><strong>dilation</strong> (<a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>, </em><em>optional</em>) – Specifies the dilation rate to be used for dilated convolution.</p></li>
+<li><p><strong>channels</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of output channels of this convolution.</p></li>
+<li><p><strong>kernel_size</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The spatial of the convolution kernel.</p></li>
+<li><p><strong>groups</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of groups for grouped convolution.</p></li>
+<li><p><strong>data_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
+<li><p><strong>kernel_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the weight.</p></li>
+<li><p><strong>out_layout</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Layout of the output, by default, out_layout is the same as data_layout</p></li>
+<li><p><strong>output_padding</strong> (<a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>, </em><em>optional</em>) – Additional zero-padding to be added to one side of the output.</p></li>
+<li><p><strong>out_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Specifies the output data type for mixed precision conv2d.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -959,19 +1177,44 @@ Available options are “half_pixel”, “align_corners” and “asymmetric”
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.batch_flatten">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">batch_flatten</code><span class="sig-paren">(</span><em class="sig-param">data</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.batch_flatten" title="Permalink to this definition">¶</a></dt>
-<dd><p>BatchFlatten.</p>
-<p>This operator flattens all the dimensions except for the batch dimension.
-which results a 2D output.</p>
-<p>For data with shape <code class="docutils literal notranslate"><span class="pre">(d1,</span> <span class="pre">d2,</span> <span class="pre">...,</span> <span class="pre">dk)</span></code>
-batch_flatten(data) returns reshaped output of shape <code class="docutils literal notranslate"><span class="pre">(d1,</span> <span class="pre">d2*...*dk)</span></code>.</p>
+<dt id="tvm.relay.nn.conv2d">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">conv2d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">weight</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0)</em>, <em class="sig-param">dilation=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">groups=1</em>, <em class="sig-param">channels=None</em [...]
+<dd><p>2D convolution.</p>
+<p>This operator takes the weight as the convolution kernel
+and convolves it with data to produce an output.</p>
+<p>In the default case, where the data_layout is <cite>NCHW</cite>
+and kernel_layout is <cite>OIHW</cite>, conv2d takes in
+a data Tensor with shape <cite>(batch_size, in_channels, height, width)</cite>,
+and a weight Tensor with shape <cite>(channels, in_channels, kernel_size[0], kernel_size[1])</cite>
+to produce an output Tensor with the following rule:</p>
+<div class="math notranslate nohighlight">
+\[\mbox{out}[b, c, y, x] = \sum_{dy, dx, k}
+   \mbox{data}[b, k, \mbox{strides}[0] * y  + dy, \mbox{strides}[1] * x + dx] *
+   \mbox{weight}[c, k, dy, dx]\]</div>
+<p>Padding and dilation are applied to data and weight respectively before the computation.
+This operator accepts data layout specification.
+Semantically, the operator will convert the layout to the canonical layout
+(<cite>NCHW</cite> for data and <cite>OIHW</cite> for weight), perform the computation,
+then convert to the out_layout.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p>
+<dd class="field-odd"><ul class="simple">
+<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
+<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
+<li><p><strong>strides</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>]</em>) – The strides of conv [...]
+<li><p><strong>padding</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>]</em>) – The padding of conv [...]
+<li><p><strong>dilation</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>]</em>) – Specifies the dila [...]
+<li><p><strong>groups</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em>) – Number of groups for grouped convolution.</p></li>
+<li><p><strong>channels</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em>) – Number of output channels of this convolution.</p></li>
+<li><p><strong>kernel_size</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>]</em>) – The spatial of  [...]
+<li><p><strong>data_layout</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Layout of the input.</p></li>
+<li><p><strong>kernel_layout</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Layout of the weight.</p></li>
+<li><p><strong>out_layout</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Layout of the output, by default, out_layout is the same as data_layout</p></li>
+<li><p><strong>out_dtype</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Specifies the output data type for mixed precision conv2d.</p></li>
+</ul>
 </dd>
 <dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>result</strong> – The Flattened result.</p>
+<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
 </dd>
 <dt class="field-odd">Return type</dt>
 <dd class="field-odd"><p>tvm.relay.Expr</p>
@@ -980,22 +1223,29 @@ batch_flatten(data) returns reshaped output of shape <code class="docutils liter
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.bias_add">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">bias_add</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">bias</em>, <em class="sig-param">axis=1</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.bias_add" title="Permalink to this definition">¶</a></dt>
-<dd><p>add_bias operator.</p>
-<p>Add 1D bias to the axis of data.
-This function is a special case of add which allows
-inference of shape of the bias from data.</p>
+<dt id="tvm.relay.nn.conv2d_transpose">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">conv2d_transpose</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">weight</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0)</em>, <em class="sig-param">dilation=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">groups=1</em>, <em class="sig-param">channel [...]
+<dd><p>Two dimensional transposed convolution operator.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>bias</strong> (<em>tvm.relay.Expr</em>) – The bias to be added.</p></li>
-<li><p><strong>axis</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – The axis to add the bias.</p></li>
+<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
+<li><p><strong>strides</strong> (<a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>, </em><em>optional</em>) – The strides of convolution.</p></li>
+<li><p><strong>padding</strong> (<a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>, </em><em>optional</em>) – The padding of convolution on both sides of inputs.</p></li>
+<li><p><strong>dilation</strong> (<a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>, </em><em>optional</em>) – Specifies the dilation rate to be used for dilated convolution.</p></li>
+<li><p><strong>channels</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of output channels of this convolution.</p></li>
+<li><p><strong>kernel_size</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The spatial of the convolution kernel.</p></li>
+<li><p><strong>groups</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of groups for grouped convolution.</p></li>
+<li><p><strong>data_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
+<li><p><strong>kernel_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the weight.</p></li>
+<li><p><strong>out_layout</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Layout of the output, by default, out_layout is the same as data_layout</p></li>
+<li><p><strong>output_padding</strong> (<a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>, </em><em>optional</em>) – Additional zero-padding to be added to one side of the output.</p></li>
+<li><p><strong>out_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Specifies the output data type for mixed precision conv2d.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>result</strong> – The final result.</p>
+<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
 </dd>
 <dt class="field-odd">Return type</dt>
 <dd class="field-odd"><p>tvm.relay.Expr</p>
@@ -1004,20 +1254,40 @@ inference of shape of the bias from data.</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.dense">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">dense</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">weight</em>, <em class="sig-param">units=None</em>, <em class="sig-param">out_dtype=''</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.dense" title="Permalink to this definition">¶</a></dt>
-<dd><p>Dense operator.
-Applies a linear transformation</p>
+<dt id="tvm.relay.nn.conv3d">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">conv3d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">weight</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0</em>, <em class="sig-param">0)</em>, <em class="sig-param">dilation=(1</em>, <em class="sig-param">1</em>, <em class="sig-pa [...]
+<dd><p>3D convolution.</p>
+<p>This operator takes the weight as the convolution kernel
+and convolves it with data to produce an output.</p>
+<p>In the default case, where the data_layout is <cite>NCDHW</cite>
+and kernel_layout is <cite>OIDHW</cite>, conv3d takes in
+a data Tensor with shape <cite>(batch_size, in_channels, depth, height, width)</cite>,
+and a weight Tensor with shape <cite>(channels, in_channels, kernel_size[0], kernel_size[1],
+kernel_size[2])</cite> to produce an output Tensor with the following rule:</p>
 <div class="math notranslate nohighlight">
-\[\]</div>
-<p><cite>Y = X * W</cite></p>
+\[\mbox{out}[b, c, z, y, x] = \sum_{dz, dy, dx, k}
+   \mbox{data}[b, k, \mbox{strides}[0] * z  + dz, \mbox{strides}[1] * y  + dy,
+   \mbox{strides}[2] * x + dx] * \mbox{weight}[c, k, dz, dy, dx]\]</div>
+<p>Padding and dilation are applied to data and weight respectively before the computation.
+This operator accepts data layout specification.
+Semantically, the operator will convert the layout to the canonical layout
+(<cite>NCDHW</cite> for data and <cite>OIDHW</cite> for weight), perform the computation,
+then convert to the out_layout.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
 <li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
-<li><p><strong>units</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of hidden units of the dense transformation.</p></li>
-<li><p><strong>out_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Specifies the output data type for mixed precision dense.</p></li>
+<li><p><strong>strides</strong> (<em>Optional</em><em>[</em><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>]</em>) – The strides of convolution.</p></li>
+<li><p><strong>padding</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>]</em>) – The padding of conv [...]
+<li><p><strong>dilation</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>]</em>) – Specifies the dila [...]
+<li><p><strong>groups</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em>) – Number of groups for grouped convolution.</p></li>
+<li><p><strong>channels</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em>) – Number of output channels of this convolution.</p></li>
+<li><p><strong>kernel_size</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple"><em>Tuple</em></a><em>[</em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>]</em><em>]</em>) – The spatial of  [...]
+<li><p><strong>data_layout</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Layout of the input.</p></li>
+<li><p><strong>kernel_layout</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Layout of the weight.</p></li>
+<li><p><strong>out_layout</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Layout of the output, by default, out_layout is the same as data_layout</p></li>
+<li><p><strong>out_dtype</strong> (<em>Optional</em><em>[</em><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>]</em>) – Specifies the output data type for mixed precision conv2d.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -1030,31 +1300,18 @@ Applies a linear transformation</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.fifo_buffer">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">fifo_buffer</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">buffer</em>, <em class="sig-param">axis</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.fifo_buffer" title="Permalink to this definition">¶</a></dt>
-<dd><p>FIFO buffer to enable computation reuse in CNNs with sliding indow input</p>
-<p>Compute equivalent of</p>
-<div class="highlight-python notranslate"><div class="highlight"><pre><span class="n">concat</span><span class="p">(</span><span class="nb">buffer</span><span class="p">,</span> <span class="n">data</span><span class="p">,</span> <span class="n">axis</span><span class="o">=</span><span class="n">axis</span><span class="p">)</span>
-<span class="o">.</span><span class="n">slice_axis</span><span class="p">(</span><span class="n">axis</span><span class="o">=</span><span class="n">axis</span><span class="p">,</span>
-            <span class="n">begin</span><span class="o">=</span><span class="n">data</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="n">axis</span><span class="p">],</span>
-            <span class="n">end</span><span class="o">=</span><span class="n">data</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="n">axis</span><span class="p">]</span><span class="o">+</span><span class="nb">buffer</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="n">axis</span><span class="p">])</span>
-</pre></div>
-</div>
-<p>Useful for</p>
-<ul class="simple">
-<li><p>Encoding explicit re-use of computation in convolution ops operated on a sliding window input</p></li>
-<li><p>Implementing a FIFO queue to cache intermediate results, e.g. as in Fast WaveNet.</p></li>
-</ul>
+<dt id="tvm.relay.nn.cross_entropy">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">cross_entropy</code><span class="sig-paren">(</span><em class="sig-param">predictions</em>, <em class="sig-param">targets</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.cross_entropy" title="Permalink to this definition">¶</a></dt>
+<dd><p>CrossEntropy without logits.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
-<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data</p></li>
-<li><p><strong>buffer</strong> (<em>tvm.relay.Expr</em>) – Previous value of the FIFO buffer</p></li>
-<li><p><strong>axis</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – Specify which axis should be used for buffering</p></li>
+<li><p><strong>predictions</strong> (<em>tvm.relay.Expr</em>) – The predictions.</p></li>
+<li><p><strong>targets</strong> (<em>tvm.relay.Expr</em>) – The targets.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>result</strong> – Updated value for the buffer</p>
+<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
 </dd>
 <dt class="field-odd">Return type</dt>
 <dd class="field-odd"><p>tvm.relay.Expr</p>
@@ -1063,14 +1320,15 @@ Applies a linear transformation</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.relu">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">relu</code><span class="sig-paren">(</span><em class="sig-param">data</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.relu" title="Permalink to this definition">¶</a></dt>
-<dd><p>Rectified linear unit.</p>
-<div class="math notranslate nohighlight">
-\[out = max(x, 0)\]</div>
+<dt id="tvm.relay.nn.cross_entropy_with_logits">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">cross_entropy_with_logits</code><span class="sig-paren">(</span><em class="sig-param">predictions</em>, <em class="sig-param">targets</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.cross_entropy_with_logits" title="Permalink to this definition">¶</a></dt>
+<dd><p>CrossEntropy with logits.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data</p>
+<dd class="field-odd"><ul class="simple">
+<li><p><strong>predictions</strong> (<em>tvm.relay.Expr</em>) – The predictions.</p></li>
+<li><p><strong>targets</strong> (<em>tvm.relay.Expr</em>) – The targets.</p></li>
+</ul>
 </dd>
 <dt class="field-even">Returns</dt>
 <dd class="field-even"><p><strong>result</strong> – The computed result.</p>
@@ -1082,17 +1340,27 @@ Applies a linear transformation</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.leaky_relu">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">leaky_relu</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">alpha</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.leaky_relu" title="Permalink to this definition">¶</a></dt>
-<dd><p>This operator takes data as input and does Leaky version
-of a Rectified Linear Unit.</p>
-<div class="math notranslate nohighlight">
-\[`y = x &gt; 0 ? x : alpha * x`\]</div>
+<dt id="tvm.relay.nn.deformable_conv2d">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">deformable_conv2d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">offset</em>, <em class="sig-param">weight</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0)</em>, <em class="sig-param">dilation=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">deformab [...]
+<dd><p>Deformable 2d convolution.</p>
+<p>The deformable convolution operation is described in <a class="reference external" href="https://arxiv.org/abs/1703.06211">https://arxiv.org/abs/1703.06211</a></p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>alpha</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.8)"><em>float</em></a>) – Slope coefficient for the negative half axis.</p></li>
+<li><p><strong>offset</strong> (<em>tvm.relay.Expr</em>) – The offset expressions.</p></li>
+<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
+<li><p><strong>strides</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The strides of convolution.</p></li>
+<li><p><strong>padding</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The padding of convolution on both sides of inputs before convolution.</p></li>
+<li><p><strong>dilation</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – Specifies the dilation rate to be used for dilated convolution.</p></li>
+<li><p><strong>deformable_groups</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of deformable groups.</p></li>
+<li><p><strong>groups</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of groups for grouped convolution.</p></li>
+<li><p><strong>channels</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of output channels of this convolution.</p></li>
+<li><p><strong>kernel_size</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The spatial of the convolution kernel.</p></li>
+<li><p><strong>data_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
+<li><p><strong>kernel_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the weight.</p></li>
+<li><p><strong>out_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the output, by default, out_layout is the same as data_layout</p></li>
+<li><p><strong>out_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Specifies the output data type for mixed precision conv2d.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -1105,18 +1373,20 @@ of a Rectified Linear Unit.</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.prelu">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">prelu</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">alpha</em>, <em class="sig-param">axis=1</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.prelu" title="Permalink to this definition">¶</a></dt>
-<dd><p>This operator takes data as input and does Leaky version
-of a Rectified Linear Unit.</p>
+<dt id="tvm.relay.nn.dense">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">dense</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">weight</em>, <em class="sig-param">units=None</em>, <em class="sig-param">out_dtype=''</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.dense" title="Permalink to this definition">¶</a></dt>
+<dd><p>Dense operator.
+Applies a linear transformation</p>
 <div class="math notranslate nohighlight">
-\[`y = x &gt; 0 ? x : alpha * x`\]</div>
+\[\]</div>
+<p><cite>Y = X * W</cite></p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>alpha</strong> (<em>tvm.relay.Expr</em>) – Slope coefficient for the negative half axis.</p></li>
-<li><p><strong>axis</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Specify which shape axis the channel is specified.</p></li>
+<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
+<li><p><strong>units</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of hidden units of the dense transformation.</p></li>
+<li><p><strong>out_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Specifies the output data type for mixed precision dense.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -1129,25 +1399,26 @@ of a Rectified Linear Unit.</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.pad">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">pad</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">pad_width</em>, <em class="sig-param">pad_value=0.0</em>, <em class="sig-param">pad_mode='constant'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.pad" title="Permalink to this definition">¶</a></dt>
-<dd><p>Padding</p>
-<p>This operator takes in a tensor and pads each axis by the specified
-widths using the specified value.</p>
+<dt id="tvm.relay.nn.depth_to_space">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">depth_to_space</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">block_size</em>, <em class="sig-param">layout='NCHW'</em>, <em class="sig-param">mode='DCR'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.depth_to_space" title="Permalink to this definition">¶</a></dt>
+<dd><p>Convert channels into spatial blocks.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
-<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator</p></li>
-<li><p><strong>pad_width</strong> (<em>tuple of &lt;tuple of &lt;int&gt;&gt;</em><em>, </em><em>required</em>) – Number of values padded to the edges of each axis, in the format
-of ((before_1, after_1), …, (before_N, after_N))</p></li>
-<li><p><strong>pad_value</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.8)"><em>float</em></a><em>, </em><em>optional</em><em>, </em><em>default=0.0</em>) – The value used for padding</p></li>
-<li><p><strong>pad_mode</strong> (<em>'constant'</em><em>, </em><em>'edge'</em><em>, </em><em>'reflect'</em>) – ‘constant’ pads with constant_value pad_value
-‘edge’ pads using the edge values of the input array
-‘reflect’ pads by reflecting values with respect to the edge</p></li>
+<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – Input data with channels divisible by block_size**2</p></li>
+<li><p><strong>block_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – Size of blocks to convert channels into.</p></li>
+<li><p><strong>layout</strong> (<em>string</em>) – One of NCHW or NHWC, indicates channel axis.</p></li>
+<li><p><strong>mode</strong> (<em>string</em>) – One of DCR or CDR, indicates which order channels
+are accessed in.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
+<dd class="field-even"><p><p><strong>result</strong> –</p>
+<dl class="simple">
+<dt>Tensor with shape [in_batch, in_channel / block_size * block_size,</dt><dd><p>in_height * block_size, in_width * block_size]</p>
+</dd>
+</dl>
+</p>
 </dd>
 <dt class="field-odd">Return type</dt>
 <dd class="field-odd"><p>tvm.relay.Expr</p>
@@ -1156,22 +1427,21 @@ of ((before_1, after_1), …, (before_N, after_N))</p></li>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.mirror_pad">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">mirror_pad</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">pad_width</em>, <em class="sig-param">mode='SYMMETRIC'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.mirror_pad" title="Permalink to this definition">¶</a></dt>
-<dd><p>MirrorPadding</p>
-<p>This operator takes in a tensor and pads each axis by the specified
-widths using mirroring of the border pixels.</p>
+<dt id="tvm.relay.nn.dropout">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">dropout</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">rate=0.5</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.dropout" title="Permalink to this definition">¶</a></dt>
+<dd><p>Applies the dropout operation to the input array.</p>
+<p>During training, each element of the input is set to zero with
+probability <code class="docutils literal notranslate"><span class="pre">p</span></code>. The whole array is rescaled by <code class="docutils literal notranslate"><span class="pre">1/(1-p)</span></code>
+to keep the expected sum of the input unchanged.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
-<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator</p></li>
-<li><p><strong>pad_width</strong> (<em>tuple of &lt;tuple of &lt;int&gt;&gt;</em><em>, </em><em>required</em>) – Number of values padded to the edges of each axis, in the format
-of ((before_1, after_1), …, (before_N, after_N))</p></li>
-<li><p><strong>mode</strong> (<em>string</em><em>, </em><em>optional</em><em>, </em><em>default='SYMMETRIC'</em>) – What type of mirroring to use, must be SYMMETRIC or REFLECT.</p></li>
+<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
+<li><p><strong>rate</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.8)"><em>float</em></a><em>, </em><em>optional</em><em> (</em><em>default=0.5</em><em>)</em>) – The probability for an element to be reset to 0.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
+<dd class="field-even"><p><strong>result</strong> – The result of dropout</p>
 </dd>
 <dt class="field-odd">Return type</dt>
 <dd class="field-odd"><p>tvm.relay.Expr</p>
@@ -1180,28 +1450,21 @@ of ((before_1, after_1), …, (before_N, after_N))</p></li>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.lrn">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">lrn</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">size=5</em>, <em class="sig-param">axis=1</em>, <em class="sig-param">bias=2</em>, <em class="sig-param">alpha=1e-05</em>, <em class="sig-param">beta=0.75</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.lrn" title="Permalink to this definition">¶</a></dt>
-<dd><p>This operator takes data as input and does local response normalization.</p>
-<p>Normalize the input in a local region across or within feature maps.
-Each input value is divided by (data / (bias + (alpha * sum_data ^2 /size))^beta)
-where n is the size of each local region, and the sum is taken over the region
-centered at that value (zero padding is added where necessary).</p>
-<div class="math notranslate nohighlight">
-\[(data / (bias + (alpha * sum_data ^2 /size))^beta)\]</div>
+<dt id="tvm.relay.nn.dropout_raw">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">dropout_raw</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">rate=0.5</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.dropout_raw" title="Permalink to this definition">¶</a></dt>
+<dd><p>Applies the dropout operation to the input array.</p>
+<p>During training, each element of the input is set to zero with
+probability <code class="docutils literal notranslate"><span class="pre">p</span></code>. The whole array is rescaled by <code class="docutils literal notranslate"><span class="pre">1/(1-p)</span></code>
+to keep the expected sum of the input unchanged.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – The size of the local region to be considered for normalization.</p></li>
-<li><p><strong>axis</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Input data layout channel axis. Default value is 1 for NCHW format</p></li>
-<li><p><strong>bias</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.8)"><em>float</em></a><em>, </em><em>optional</em>) – The offset parameter to avoid dividing by 0.</p></li>
-<li><p><strong>alpha</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.8)"><em>float</em></a><em>, </em><em>optional</em>) – The scaling parameter.</p></li>
-<li><p><strong>beta</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.8)"><em>float</em></a><em>, </em><em>optional</em>) – The exponent parameter.</p></li>
+<li><p><strong>rate</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.8)"><em>float</em></a><em>, </em><em>optional</em><em> (</em><em>default=0.5</em><em>)</em>) – The probability for an element to be reset to 0.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
+<dd class="field-even"><p><strong>result</strong> – The result of dropout</p>
 </dd>
 <dt class="field-odd">Return type</dt>
 <dd class="field-odd"><p>tvm.relay.Expr</p>
@@ -1210,21 +1473,31 @@ centered at that value (zero padding is added where necessary).</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.l2_normalize">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">l2_normalize</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">eps</em>, <em class="sig-param">axis=None</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.l2_normalize" title="Permalink to this definition">¶</a></dt>
-<dd><p>Perform L2 normalization on the input data</p>
-<div class="math notranslate nohighlight">
-\[y(i, j) = x(i, j) / sqrt(max(sum(x^2), eps))\]</div>
+<dt id="tvm.relay.nn.fifo_buffer">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">fifo_buffer</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">buffer</em>, <em class="sig-param">axis</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.fifo_buffer" title="Permalink to this definition">¶</a></dt>
+<dd><p>FIFO buffer to enable computation reuse in CNNs with sliding indow input</p>
+<p>Compute equivalent of</p>
+<div class="highlight-python notranslate"><div class="highlight"><pre><span class="n">concat</span><span class="p">(</span><span class="nb">buffer</span><span class="p">,</span> <span class="n">data</span><span class="p">,</span> <span class="n">axis</span><span class="o">=</span><span class="n">axis</span><span class="p">)</span>
+<span class="o">.</span><span class="n">slice_axis</span><span class="p">(</span><span class="n">axis</span><span class="o">=</span><span class="n">axis</span><span class="p">,</span>
+            <span class="n">begin</span><span class="o">=</span><span class="n">data</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="n">axis</span><span class="p">],</span>
+            <span class="n">end</span><span class="o">=</span><span class="n">data</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="n">axis</span><span class="p">]</span><span class="o">+</span><span class="nb">buffer</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="n">axis</span><span class="p">])</span>
+</pre></div>
+</div>
+<p>Useful for</p>
+<ul class="simple">
+<li><p>Encoding explicit re-use of computation in convolution ops operated on a sliding window input</p></li>
+<li><p>Implementing a FIFO queue to cache intermediate results, e.g. as in Fast WaveNet.</p></li>
+</ul>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
-<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>eps</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.8)"><em>float</em></a>) – epsilon value</p></li>
-<li><p><strong>axis</strong> (<em>list of int</em><em>, </em><em>optional</em>) – axis over the normalization applied</p></li>
+<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data</p></li>
+<li><p><strong>buffer</strong> (<em>tvm.relay.Expr</em>) – Previous value of the FIFO buffer</p></li>
+<li><p><strong>axis</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – Specify which axis should be used for buffering</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
+<dd class="field-even"><p><strong>result</strong> – Updated value for the buffer</p>
 </dd>
 <dt class="field-odd">Return type</dt>
 <dd class="field-odd"><p>tvm.relay.Expr</p>
@@ -1233,44 +1506,67 @@ centered at that value (zero padding is added where necessary).</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.dropout">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">dropout</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">rate=0.5</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.dropout" title="Permalink to this definition">¶</a></dt>
-<dd><p>Applies the dropout operation to the input array.</p>
-<p>During training, each element of the input is set to zero with
-probability <code class="docutils literal notranslate"><span class="pre">p</span></code>. The whole array is rescaled by <code class="docutils literal notranslate"><span class="pre">1/(1-p)</span></code>
-to keep the expected sum of the input unchanged.</p>
+<dt id="tvm.relay.nn.get_pad_tuple2d">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">get_pad_tuple2d</code><span class="sig-paren">(</span><em class="sig-param">padding</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.get_pad_tuple2d" title="Permalink to this definition">¶</a></dt>
+<dd><p>Common code to get the pad option
+:param padding: Padding size
+:type padding: Union[int, Tuple[int, …]]</p>
 <dl class="field-list simple">
-<dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><ul class="simple">
-<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>rate</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.8)"><em>float</em></a><em>, </em><em>optional</em><em> (</em><em>default=0.5</em><em>)</em>) – The probability for an element to be reset to 0.</p></li>
+<dt class="field-odd">Returns</dt>
+<dd class="field-odd"><p><ul class="simple">
+<li><p><strong>pad_top</strong> (<em>int</em>) – Padding size on top</p></li>
+<li><p><strong>pad_left</strong> (<em>int</em>) – Padding size on left</p></li>
+<li><p><strong>pad_down</strong> (<em>int</em>) – Padding size on down.</p></li>
+<li><p><strong>pad_right</strong> (<em>int</em>) – Padding size on right.</p></li>
 </ul>
+</p>
 </dd>
-<dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>result</strong> – The result of dropout</p>
-</dd>
-<dt class="field-odd">Return type</dt>
-<dd class="field-odd"><p>tvm.relay.Expr</p>
+</dl>
+</dd></dl>
+
+<dl class="function">
+<dt id="tvm.relay.nn.get_pad_tuple3d">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">get_pad_tuple3d</code><span class="sig-paren">(</span><em class="sig-param">padding</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.get_pad_tuple3d" title="Permalink to this definition">¶</a></dt>
+<dd><p>Common code to get the pad option
+:param padding: Padding size
+:type padding: Union[int, Tuple[int, …]]</p>
+<dl class="field-list simple">
+<dt class="field-odd">Returns</dt>
+<dd class="field-odd"><p><ul class="simple">
+<li><p><strong>pad_front</strong> (<em>int</em>) – Padding size on front</p></li>
+<li><p><strong>pad_top</strong> (<em>int</em>) – Padding size on top</p></li>
+<li><p><strong>pad_left</strong> (<em>int</em>) – Padding size on left</p></li>
+<li><p><strong>pad_back</strong> (<em>int</em>) – Padding size on back</p></li>
+<li><p><strong>pad_down</strong> (<em>int</em>) – Padding size on down.</p></li>
+<li><p><strong>pad_right</strong> (<em>int</em>) – Padding size on right.</p></li>
+</ul>
+</p>
 </dd>
 </dl>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.dropout_raw">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">dropout_raw</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">rate=0.5</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.dropout_raw" title="Permalink to this definition">¶</a></dt>
-<dd><p>Applies the dropout operation to the input array.</p>
-<p>During training, each element of the input is set to zero with
-probability <code class="docutils literal notranslate"><span class="pre">p</span></code>. The whole array is rescaled by <code class="docutils literal notranslate"><span class="pre">1/(1-p)</span></code>
-to keep the expected sum of the input unchanged.</p>
+<dt id="tvm.relay.nn.global_avg_pool2d">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">global_avg_pool2d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">layout='NCHW'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.global_avg_pool2d" title="Permalink to this definition">¶</a></dt>
+<dd><p>2D global average pooling operator.</p>
+<p>This operator takes data as input and does 2D average value calculation
+across each window represented by WxH.</p>
+<p>In the default case, where the data_layout is <cite>NCHW</cite>
+a data Tensor with shape <cite>(batch_size, in_channels, height, width)</cite>,
+to produce an output Tensor with the following rule:</p>
+<p>with data of shape (b, c, h, w)</p>
+<div class="math notranslate nohighlight">
+\[\mbox{out}(b, c, 1, 1)  = \frac{1}{h * w} \sum_{m=0}^{h-1} \sum_{n=0}^{w-1}
+     \mbox{data}(b, c, m, n)\]</div>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>rate</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.8)"><em>float</em></a><em>, </em><em>optional</em><em> (</em><em>default=0.5</em><em>)</em>) – The probability for an element to be reset to 0.</p></li>
+<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>result</strong> – The result of dropout</p>
+<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
 </dd>
 <dt class="field-odd">Return type</dt>
 <dd class="field-odd"><p>tvm.relay.Expr</p>
@@ -1279,67 +1575,37 @@ to keep the expected sum of the input unchanged.</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.batch_norm">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">batch_norm</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">gamma</em>, <em class="sig-param">beta</em>, <em class="sig-param">moving_mean</em>, <em class="sig-param">moving_var</em>, <em class="sig-param">axis=1</em>, <em class="sig-param">epsilon=1e-05</em>, <em class="sig-param">center=True</em>, <em class="sig-param">scale=True</em><span class= [...]
-<dd><p>Batch normalization layer (Ioffe and Szegedy, 2014).
-Normalizes the input at each batch, i.e. applies a transformation
-that maintains the mean activation close to 0 and the activation
-standard deviation close to 1.</p>
-<div class="math notranslate nohighlight">
-\[\begin{split}data\_mean[i] = mean(data[:,i,:,...]) \\
-data\_var[i] = var(data[:,i,:,...])\end{split}\]</div>
-<p>Then compute the normalized output, which has the same shape as input, as following:</p>
-<div class="math notranslate nohighlight">
-\[out[:,i,:,...] = \frac{data[:,i,:,...] - data\_mean[i]}{\sqrt{data\_var[i]+\epsilon}}
-    * gamma[i] + beta[i]\]</div>
-<p>Both <em>mean</em> and <em>var</em> returns a scalar by treating the input as a vector.</p>
-<p>Assume the input has size <em>k</em> on axis 1, then both <code class="docutils literal notranslate"><span class="pre">gamma</span></code> and <code class="docutils literal notranslate"><span class="pre">beta</span></code>
-have shape <em>(k,)</em>.</p>
-<p>Besides the inputs and the outputs, this operator accepts two auxiliary
-states, <code class="docutils literal notranslate"><span class="pre">moving_mean</span></code> and <code class="docutils literal notranslate"><span class="pre">moving_var</span></code>, which are <em>k</em>-length
-vectors. They are global statistics for the whole dataset, which are updated by</p>
-<div class="highlight-python notranslate"><div class="highlight"><pre><span class="n">moving_mean</span> <span class="o">=</span> <span class="n">moving_mean</span> <span class="o">*</span> <span class="n">momentum</span> <span class="o">+</span> <span class="n">data_mean</span> <span class="o">*</span> <span class="p">(</span><span class="mi">1</span> <span class="o">-</span> <span class="n">momentum</span><span class="p">)</span>
-<span class="n">moving_var</span> <span class="o">=</span> <span class="n">moving_var</span> <span class="o">*</span> <span class="n">momentum</span> <span class="o">+</span> <span class="n">data_var</span> <span class="o">*</span> <span class="p">(</span><span class="mi">1</span> <span class="o">-</span> <span class="n">momentum</span><span class="p">)</span>
-</pre></div>
-</div>
-<p>The parameter <code class="docutils literal notranslate"><span class="pre">axis</span></code> specifies which axis of the input shape denotes
-the ‘channel’ (separately normalized groups).  The default is 1.
-Specifying -1 sets the channel axis to be the last item in the input shape.</p>
-<div class="admonition note">
-<p class="admonition-title">Note</p>
-<p>This operator can be optimized away for inference.</p>
-</div>
-<dl class="field-list simple">
-<dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><ul class="simple">
-<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – Input to which batch_norm will be applied.</p></li>
-<li><p><strong>gamma</strong> (<em>tvm.relay.Expr</em>) – The gamma scale factor.</p></li>
-<li><p><strong>beta</strong> (<em>tvm.relay.Expr</em>) – The beta offset factor.</p></li>
-<li><p><strong>moving_mean</strong> (<em>tvm.relay.Expr</em>) – Running mean of input,</p></li>
-<li><p><strong>moving_var</strong> (<em>tvm.relay.Expr</em>) – Running variance of input.</p></li>
-<li><p><strong>axis</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em><em>, </em><em>default=1</em>) – Specify along which shape axis the channel is specified.</p></li>
-<li><p><strong>epsilon</strong> (<em>double</em><em>, </em><em>optional</em><em>, </em><em>default=1e-5</em>) – Small float added to variance to avoid dividing by zero.</p></li>
-<li><p><strong>center</strong> (<em>boolean</em><em>, </em><em>optional</em><em>, </em><em>default=True</em>) – If True, add offset of beta to normalized tensor, If False,
-beta is ignored.</p></li>
-<li><p><strong>scale</strong> (<em>boolean</em><em>, </em><em>optional</em><em>, </em><em>default=True</em>) – If true, multiply by gamma. If False, gamma is not used.
-When the next layer is piecewise linear (also e.g. nn.relu),
-this can be disabled since the scaling will be done by the next layer.</p></li>
+<dt id="tvm.relay.nn.global_max_pool2d">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">global_max_pool2d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">layout='NCHW'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.global_max_pool2d" title="Permalink to this definition">¶</a></dt>
+<dd><p>2D global maximum pooling operator.</p>
+<p>This operator takes data as input and does 2D max value calculation
+across each window represented by WxH.</p>
+<p>In the default case, where the data_layout is <cite>NCHW</cite>
+a data Tensor with shape <cite>(batch_size, in_channels, height, width)</cite>,
+to produce an output Tensor with the following rule:</p>
+<p>with data of shape (b, c, h, w)</p>
+<div class="math notranslate nohighlight">
+\[\mbox{out}(b, c, 1, 1)  = \max_{m=0, \ldots, h} \max_{n=0, \ldots, w}
+     \mbox{data}(b, c, m, n)\]</div>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters</dt>
+<dd class="field-odd"><ul class="simple">
+<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
+<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>result</strong> – Tuple of normed data (same shape as input),
-new running mean (k-length vector),
-and new running variance (k-length vector)</p>
+<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
 </dd>
 <dt class="field-odd">Return type</dt>
-<dd class="field-odd"><p><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple">relay.Tuple</a>([tvm.relay.Expr, tvm.relay.Expr, tvm.relay.Expr])</p>
+<dd class="field-odd"><p>tvm.relay.Expr</p>
 </dd>
 </dl>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.instance_norm">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">instance_norm</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">gamma</em>, <em class="sig-param">beta</em>, <em class="sig-param">axis=1</em>, <em class="sig-param">epsilon=1e-05</em>, <em class="sig-param">center=True</em>, <em class="sig-param">scale=True</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.instance [...]
+<dt id="tvm.relay.nn.instance_norm">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">instance_norm</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">gamma</em>, <em class="sig-param">beta</em>, <em class="sig-param">axis=1</em>, <em class="sig-param">epsilon=1e-05</em>, <em class="sig-param">center=True</em>, <em class="sig-param">scale=True</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.instance_norm" title [...]
 <dd><p>Instance Normalization (Ulyanov and et al., 2016)
 Applies instance normalization to the n-dimensional input array.</p>
 <div class="math notranslate nohighlight">
@@ -1382,8 +1648,31 @@ beta is ignored.</p></li>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.layer_norm">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">layer_norm</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">gamma</em>, <em class="sig-param">beta</em>, <em class="sig-param">axis=-1</em>, <em class="sig-param">epsilon=1e-05</em>, <em class="sig-param">center=True</em>, <em class="sig-param">scale=True</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.layer_norm [...]
+<dt id="tvm.relay.nn.l2_normalize">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">l2_normalize</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">eps</em>, <em class="sig-param">axis=None</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.l2_normalize" title="Permalink to this definition">¶</a></dt>
+<dd><p>Perform L2 normalization on the input data</p>
+<div class="math notranslate nohighlight">
+\[y(i, j) = x(i, j) / sqrt(max(sum(x^2), eps))\]</div>
+<dl class="field-list simple">
+<dt class="field-odd">Parameters</dt>
+<dd class="field-odd"><ul class="simple">
+<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
+<li><p><strong>eps</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.8)"><em>float</em></a>) – epsilon value</p></li>
+<li><p><strong>axis</strong> (<em>list of int</em><em>, </em><em>optional</em>) – axis over the normalization applied</p></li>
+</ul>
+</dd>
+<dt class="field-even">Returns</dt>
+<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
+</dd>
+<dt class="field-odd">Return type</dt>
+<dd class="field-odd"><p>tvm.relay.Expr</p>
+</dd>
+</dl>
+</dd></dl>
+
+<dl class="function">
+<dt id="tvm.relay.nn.layer_norm">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">layer_norm</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">gamma</em>, <em class="sig-param">beta</em>, <em class="sig-param">axis=-1</em>, <em class="sig-param">epsilon=1e-05</em>, <em class="sig-param">center=True</em>, <em class="sig-param">scale=True</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.layer_norm" title="Per [...]
 <dd><p>Layer normalization (Lei Ba and et al., 2016).
 Applies layer normalization to the n-dimensional input array.
 This operator takes an n-dimensional input array and normalizes
@@ -1420,17 +1709,17 @@ beta is ignored.</p></li>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.batch_matmul">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">batch_matmul</code><span class="sig-paren">(</span><em class="sig-param">x</em>, <em class="sig-param">y</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.batch_matmul" title="Permalink to this definition">¶</a></dt>
-<dd><p>Computes batch matrix multiplication of <cite>x</cite> and <cite>y</cite> when <cite>x</cite> and <cite>y</cite> are data
-in batch.</p>
+<dt id="tvm.relay.nn.leaky_relu">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">leaky_relu</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">alpha</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.leaky_relu" title="Permalink to this definition">¶</a></dt>
+<dd><p>This operator takes data as input and does Leaky version
+of a Rectified Linear Unit.</p>
 <div class="math notranslate nohighlight">
-\[\mbox{batch_matmul}(x, y)[i, :, :] = \mbox{matmul}(x[i, :, :], y[i, :, :]^T)\]</div>
+\[`y = x &gt; 0 ? x : alpha * x`\]</div>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
-<li><p><strong>x</strong> (<em>tvm.relay.Expr</em>) – The first input.</p></li>
-<li><p><strong>y</strong> (<em>tvm.relay.Expr</em>) – The second input.</p></li>
+<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
+<li><p><strong>alpha</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.8)"><em>float</em></a>) – Slope coefficient for the negative half axis.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -1443,24 +1732,20 @@ in batch.</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.sparse_dense">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">sparse_dense</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">weight</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.sparse_dense" title="Permalink to this definition">¶</a></dt>
-<dd><p>Computes the matrix multiplication of <cite>data</cite> and <cite>weight</cite>, where <cite>data</cite> is
-a dense matrix and <cite>weight</cite> is a sparse (either BSR or CSR) namedtuple with
-fields <cite>data</cite>, <cite>indices</cite>, and <cite>indptr</cite>.</p>
+<dt id="tvm.relay.nn.log_softmax">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">log_softmax</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">axis=-1</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.log_softmax" title="Permalink to this definition">¶</a></dt>
+<dd><p>Computes log softmax.</p>
 <div class="math notranslate nohighlight">
-\[\mbox{sparse_dense}(data, weight)[m, n] = \mbox{matmul}(x, \mbox{as_dense}(weight)^T)[m, n]\]</div>
-<p>where <cite>as_dense</cite> returns dense equivalent of the given sparse matrix.</p>
-<p>See
-<a class="reference external" href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.csr_matrix.html">https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.csr_matrix.html</a>
-and
-<a class="reference external" href="https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.sparse.bsr_matrix.html">https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.sparse.bsr_matrix.html</a>
-for more detail on the sparse matrix representation.</p>
+\[\text{log_softmax}(x)_i = \log \frac{exp(x_i)}{\sum_j exp(x_j)}\]</div>
+<div class="admonition note">
+<p class="admonition-title">Note</p>
+<p>This operator can be optimized away for inference.</p>
+</div>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
-<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data for the matrix multiplication</p></li>
-<li><p><strong>weight</strong> (<em>namedtuple.</em>) – The sparse weight matrix for the matrix multiplication.</p></li>
+<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
+<li><p><strong>axis</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – The axis to sum over when computing log softmax</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -1473,52 +1758,24 @@ for more detail on the sparse matrix representation.</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.sparse_transpose">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">sparse_transpose</code><span class="sig-paren">(</span><em class="sig-param">x</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.sparse_transpose" title="Permalink to this definition">¶</a></dt>
-<dd><p>Computes the fast matrix transpose of x,
-where x is a sparse tensor in CSR format (represented as a namedtuple
-with fields <cite>data</cite>, <cite>indices</cite>, and <cite>indptr</cite>).</p>
-<p>** Currently only support Square Matrices **</p>
+<dt id="tvm.relay.nn.lrn">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">lrn</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">size=5</em>, <em class="sig-param">axis=1</em>, <em class="sig-param">bias=2</em>, <em class="sig-param">alpha=1e-05</em>, <em class="sig-param">beta=0.75</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.lrn" title="Permalink to this definition">¶</a></dt>
+<dd><p>This operator takes data as input and does local response normalization.</p>
+<p>Normalize the input in a local region across or within feature maps.
+Each input value is divided by (data / (bias + (alpha * sum_data ^2 /size))^beta)
+where n is the size of each local region, and the sum is taken over the region
+centered at that value (zero padding is added where necessary).</p>
 <div class="math notranslate nohighlight">
-\[\mbox{sparse_transpose}(x)[n, n] = (x^T)[n, n]\]</div>
-<p>Please refer to <a class="reference external" href="https://github.com/scipy/scipy/blob/v1.3.0/scipy/sparse/csr.py">https://github.com/scipy/scipy/blob/v1.3.0/scipy/sparse/csr.py</a>
-for the algorithm implemented in this operator.</p>
-<dl class="field-list simple">
-<dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><p><strong>x</strong> (<em>namedtuple.</em>) – The sparse weight matrix for the fast matrix transpose.</p>
-</dd>
-<dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>result</strong> – Tuple of output sparse tensor (same shape and format as input),
-i.e. if CSR then output is in ([data, indices, indptr]) form</p>
-</dd>
-<dt class="field-odd">Return type</dt>
-<dd class="field-odd"><p><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple">relay.Tuple</a>([tvm.relay.Expr, tvm.relay.Expr, tvm.relay.Expr])</p>
-</dd>
-</dl>
-</dd></dl>
-
-<dl class="function">
-<dt id="tvm.relay.op.nn.nn.contrib_conv2d_winograd_without_weight_transform">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">contrib_conv2d_winograd_without_weight_transform</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">weight</em>, <em class="sig-param">tile_size</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0)</em>, <em class="sig-param">dilation=(1</em>, <em class="sig-param" [...]
-<dd><p>2D convolution with winograd algorithm.</p>
-<p>The basic parameters are the same as the ones in vanilla conv2d.
-It assumes the weight is pre-transformed by nn.contrib_conv2d_winograd_weight_transform</p>
+\[(data / (bias + (alpha * sum_data ^2 /size))^beta)\]</div>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
-<li><p><strong>tile_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – The Tile size of winograd. E.g. 2 for F(2x2, 3x3) and 4 for F(4x4, 3x3)</p></li>
-<li><p><strong>strides</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The strides of convolution.</p></li>
-<li><p><strong>padding</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The padding of convolution on both sides of inputs before convolution.</p></li>
-<li><p><strong>dilation</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – Specifies the dilation rate to be used for dilated convolution.</p></li>
-<li><p><strong>groups</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of groups for grouped convolution.</p></li>
-<li><p><strong>channels</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of output channels of this convolution.</p></li>
-<li><p><strong>kernel_size</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The spatial of the convolution kernel.</p></li>
-<li><p><strong>data_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
-<li><p><strong>kernel_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the weight.</p></li>
-<li><p><strong>out_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the output, by default, out_layout is the same as data_layout</p></li>
-<li><p><strong>out_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Specifies the output data type for mixed precision conv2d.</p></li>
+<li><p><strong>size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – The size of the local region to be considered for normalization.</p></li>
+<li><p><strong>axis</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Input data layout channel axis. Default value is 1 for NCHW format</p></li>
+<li><p><strong>bias</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.8)"><em>float</em></a><em>, </em><em>optional</em>) – The offset parameter to avoid dividing by 0.</p></li>
+<li><p><strong>alpha</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.8)"><em>float</em></a><em>, </em><em>optional</em>) – The scaling parameter.</p></li>
+<li><p><strong>beta</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.8)"><em>float</em></a><em>, </em><em>optional</em>) – The exponent parameter.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -1531,27 +1788,26 @@ It assumes the weight is pre-transformed by nn.contrib_conv2d_winograd_weight_tr
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.contrib_conv2d_nchwc">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">contrib_conv2d_nchwc</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">kernel</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0)</em>, <em class="sig-param">dilation=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">groups=1</em>, <em class="sig-para [...]
-<dd><p>Variant of 2D convolution.</p>
-<p>This operator takes the weight as the convolution kernel
-and convolves it with data to produce an output, following a specialized
-NCHWc data layout.</p>
+<dt id="tvm.relay.nn.max_pool1d">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">max_pool1d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">pool_size=(1</em>, <em class="sig-param">)</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">)</em>, <em class="sig-param">layout='NCW'</em>, <em class="sig-param">ceil_mode=False</em><span class="sig-paren">)< [...]
+<dd><p>1D maximum pooling operator.</p>
+<p>This operator takes data as input and does 1D max value calculation
+with in pool_size sized window by striding defined by stride.</p>
+<p>In the default case, where the data_layout is <cite>NCW</cite>
+a data Tensor with shape <cite>(batch_size, channels, width)</cite>,
+to produce an output Tensor.</p>
+<p>The ceil_mode is used to take ceil or floor while computing out shape.
+count_include_pad indicates including or excluding padded input values in computation.
+This operator accepts data layout specification.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>kernel</strong> (<em>tvm.relay.Expr</em>) – The kernel expressions.</p></li>
-<li><p><strong>strides</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The strides of convolution.</p></li>
-<li><p><strong>padding</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The padding of convolution on both sides of inputs before convolution.</p></li>
-<li><p><strong>dilation</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – Specifies the dilation rate to be used for dilated convolution.</p></li>
-<li><p><strong>groups</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of groups for grouped convolution.</p></li>
-<li><p><strong>channels</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of output channels of this convolution.</p></li>
-<li><p><strong>kernel_size</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The spatial of the convolution kernel.</p></li>
-<li><p><strong>data_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
-<li><p><strong>kernel_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the weight.</p></li>
-<li><p><strong>out_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the output, by default, out_layout is the same as data_layout</p></li>
-<li><p><strong>out_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Specifies the output data type for mixed precision conv2d.</p></li>
+<li><p><strong>pool_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em><em>, </em><em>optional</em>) – The size of window for pooling.</p></li>
+<li><p><strong>strides</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em><em>, </em><em>optional</em>) – The strides of pooling.</p></li>
+<li><p><strong>padding</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em><em>, </em><em>optional</em>) – The padding for pooling.</p></li>
+<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
+<li><p><strong>ceil_mode</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – To enable or disable ceil while pooling.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -1564,93 +1820,30 @@ NCHWc data layout.</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.contrib_depthwise_conv2d_nchwc">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">contrib_depthwise_conv2d_nchwc</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">kernel</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0)</em>, <em class="sig-param">dilation=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">groups=1</em>, <em class [...]
-<dd><p>Variant of 2D depthwise convolution.</p>
-<p>This operator takes the weight as the depthwise convolution kernel
-and depthwise convolves it with data to produce an output, following a specialized
-NCHWc data layout.</p>
+<dt id="tvm.relay.nn.max_pool2d">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">max_pool2d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">pool_size=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0)</em>, <em class="sig-param">layout='NCHW'</em>, <em class="sig-param">ceil_mode=False</em><span class="sig-paren [...]
+<dd><p>2D maximum pooling operator.</p>
+<p>This operator takes data as input and does 2D max value calculation
+with in pool_size sized window by striding defined by stride</p>
+<p>In the default case, where the data_layout is <cite>NCHW</cite>
+a data Tensor with shape <cite>(batch_size, in_channels, height, width)</cite>,
+to produce an output Tensor with the following rule:</p>
+<p>with data of shape (b, c, h, w) and pool_size (kh, kw)</p>
+<div class="math notranslate nohighlight">
+\[\mbox{out}(b, c, y, x)  = \max_{m=0, \ldots, kh-1} \max_{n=0, \ldots, kw-1}
+     \mbox{data}(b, c, \mbox{stride}[0] * y + m, \mbox{stride}[1] * x + n)\]</div>
+<p>Padding is applied to data before the computation.
+ceil_mode is used to take ceil or floor while computing out shape.
+This operator accepts data layout specification.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>kernel</strong> (<em>tvm.relay.Expr</em>) – The kernel expressions.</p></li>
-<li><p><strong>strides</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The strides of convolution.</p></li>
-<li><p><strong>padding</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The padding of convolution on both sides of inputs before convolution.</p></li>
-<li><p><strong>dilation</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – Specifies the dilation rate to be used for dilated convolution.</p></li>
-<li><p><strong>groups</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of groups for grouped convolution.</p></li>
-<li><p><strong>channels</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of output channels of this convolution.</p></li>
-<li><p><strong>kernel_size</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The spatial of the convolution kernel.</p></li>
-<li><p><strong>data_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
-<li><p><strong>kernel_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the weight.</p></li>
-<li><p><strong>out_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the output, by default, out_layout is the same as data_layout</p></li>
-<li><p><strong>out_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Specifies the output data type for mixed precision conv2d.</p></li>
-</ul>
-</dd>
-<dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
-</dd>
-<dt class="field-odd">Return type</dt>
-<dd class="field-odd"><p>tvm.relay.Expr</p>
-</dd>
-</dl>
-</dd></dl>
-
-<dl class="function">
-<dt id="tvm.relay.op.nn.nn.contrib_conv2d_winograd_weight_transform">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">contrib_conv2d_winograd_weight_transform</code><span class="sig-paren">(</span><em class="sig-param">weight</em>, <em class="sig-param">tile_size</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.contrib_conv2d_winograd_weight_transform" title="Permalink to this definition">¶</a></dt>
-<dd><p>Weight Transformation part for 2D convolution with winograd algorithm.</p>
-<p>We separate this as a single op to enable pre-compute for inference.
-Use this together with nn.contrib_conv2d_winograd_without_weight_transform</p>
-<dl class="field-list simple">
-<dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><ul class="simple">
-<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
-<li><p><strong>tile_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – The Tile size of winograd. E.g. 2 for F(2x2, 3x3) and 4 for F(4x4, 3x3)</p></li>
-</ul>
-</dd>
-<dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
-</dd>
-<dt class="field-odd">Return type</dt>
-<dd class="field-odd"><p>tvm.relay.Expr</p>
-</dd>
-</dl>
-</dd></dl>
-
-<dl class="function">
-<dt id="tvm.relay.op.nn.nn.contrib_conv3d_winograd_weight_transform">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">contrib_conv3d_winograd_weight_transform</code><span class="sig-paren">(</span><em class="sig-param">weight</em>, <em class="sig-param">tile_size</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.contrib_conv3d_winograd_weight_transform" title="Permalink to this definition">¶</a></dt>
-<dd><p>Weight Transformation part for 3D convolution with winograd algorithm.</p>
-<p>We separate this as a single op to enable pre-compute for inference.
-Use this together with nn.contrib_conv3d_winograd_without_weight_transform</p>
-<dl class="field-list simple">
-<dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><ul class="simple">
-<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
-<li><p><strong>tile_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – The Tile size of winograd. E.g. 2 for F(2x2x2, 3x3x3) and 4 for F(4x4x4, 3x3x3)</p></li>
-</ul>
-</dd>
-<dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
-</dd>
-<dt class="field-odd">Return type</dt>
-<dd class="field-odd"><p>tvm.relay.Expr</p>
-</dd>
-</dl>
-</dd></dl>
-
-<dl class="function">
-<dt id="tvm.relay.op.nn.nn.contrib_conv2d_winograd_nnpack_weight_transform">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">contrib_conv2d_winograd_nnpack_weight_transform</code><span class="sig-paren">(</span><em class="sig-param">weight</em>, <em class="sig-param">convolution_algorithm</em>, <em class="sig-param">out_dtype=''</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.contrib_conv2d_winograd_nnpack_weight_transform" title="Permalink to this definition">¶</a></dt>
-<dd><p>Weight Transformation part for 2D convolution with winograd algorithm.</p>
-<p>We separate this as a single op to enable pre-compute for inference.
-Use this together with nn.contrib_conv2d_winograd_without_weight_transform</p>
-<dl class="field-list simple">
-<dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><ul class="simple">
-<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
-<li><p><strong>convolution_algorithm</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – The Tile size of winograd. E.g. 2 for F(2x2, 3x3) and 4 for F(4x4, 3x3)</p></li>
+<li><p><strong>pool_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em><em>, </em><em>optional</em>) – The size of window for pooling.</p></li>
+<li><p><strong>strides</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The strides of pooling.</p></li>
+<li><p><strong>padding</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The padding for pooling.</p></li>
+<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
+<li><p><strong>ceil_mode</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – To enable or disable ceil while pooling.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -1663,27 +1856,20 @@ Use this together with nn.contrib_conv2d_winograd_without_weight_transform</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.deformable_conv2d">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">deformable_conv2d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">offset</em>, <em class="sig-param">weight</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0)</em>, <em class="sig-param">dilation=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">de [...]
-<dd><p>Deformable 2d convolution.</p>
-<p>The deformable convolution operation is described in <a class="reference external" href="https://arxiv.org/abs/1703.06211">https://arxiv.org/abs/1703.06211</a></p>
+<dt id="tvm.relay.nn.max_pool2d_grad">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">max_pool2d_grad</code><span class="sig-paren">(</span><em class="sig-param">out_grad</em>, <em class="sig-param">data</em>, <em class="sig-param">pool_size=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0)</em>, <em class="sig-param">layout='NCHW'</em>, <em class="sig-param"> [...]
+<dd><p>Gradient of 2D maximum pooling operator.</p>
+<p>This operator takes out_grad and data as input and calculates gradient of max_pool2d.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
+<li><p><strong>out_grad</strong> (<em>tvm.relay.Expr</em>) – The output gradient</p></li>
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>offset</strong> (<em>tvm.relay.Expr</em>) – The offset expressions.</p></li>
-<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
-<li><p><strong>strides</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The strides of convolution.</p></li>
-<li><p><strong>padding</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The padding of convolution on both sides of inputs before convolution.</p></li>
-<li><p><strong>dilation</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – Specifies the dilation rate to be used for dilated convolution.</p></li>
-<li><p><strong>deformable_groups</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of deformable groups.</p></li>
-<li><p><strong>groups</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of groups for grouped convolution.</p></li>
-<li><p><strong>channels</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of output channels of this convolution.</p></li>
-<li><p><strong>kernel_size</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The spatial of the convolution kernel.</p></li>
-<li><p><strong>data_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
-<li><p><strong>kernel_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the weight.</p></li>
-<li><p><strong>out_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the output, by default, out_layout is the same as data_layout</p></li>
-<li><p><strong>out_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Specifies the output data type for mixed precision conv2d.</p></li>
+<li><p><strong>pool_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em><em>, </em><em>optional</em>) – The size of window for pooling.</p></li>
+<li><p><strong>strides</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The strides of pooling.</p></li>
+<li><p><strong>padding</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The padding for pooling.</p></li>
+<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
+<li><p><strong>ceil_mode</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – To enable or disable ceil while pooling.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -1696,31 +1882,30 @@ Use this together with nn.contrib_conv2d_winograd_without_weight_transform</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.bitpack">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">bitpack</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">bits=1</em>, <em class="sig-param">pack_axis=1</em>, <em class="sig-param">bit_axis=2</em>, <em class="sig-param">pack_type='uint32'</em>, <em class="sig-param">name='BitPack'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.bitpack" title="Permalink to this [...]
-<dd><p>Tensor packing for bitserial operations.
-The values along the input tensor’s pack_axis are quantized
-and packed together into the specified pack_type in a new
-bit axis.</p>
-<p>For example, consider bitpacking with data to be a tensor with shape [1, 64, 128, 128],
-pack_axis=1, bit_axis=4, pack_type=uint8, and bits=2. The output in this case will
-be of shape [1, 8, 128, 128, 2]. The dimension of axis 1 has been reduced by a factor
-of 8 since each value is packed into an 8-bit uint8. Axis 4 is now two bitplanes
-representing the quantized value of the incoming data. The output tensor is now
-ready to be used in a bitserial operation.</p>
+<dt id="tvm.relay.nn.max_pool3d">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">max_pool3d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">pool_size=(1</em>, <em class="sig-param">1</em>, <em class="sig-param">1)</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0</em>, <em class="sig-param">0)</em>, <em class="sig-p [...]
+<dd><p>3D maximum pooling operator.</p>
+<p>This operator takes data as input and does 3D max value calculation
+with in pool_size sized window by striding defined by stride.</p>
+<p>In the default case, where the data_layout is <cite>NCDHW</cite>
+a data Tensor with shape <cite>(batch_size, channels, depth, height, width)</cite>,
+to produce an output Tensor.</p>
+<p>The ceil_mode is used to take ceil or floor while computing out shape.
+count_include_pad indicates including or excluding padded input values in computation.
+This operator accepts data layout specification.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
-<li><p><strong>data</strong> (<em>tvm.relay.expr</em>) – The incoming tensor to be packed.</p></li>
-<li><p><strong>bits</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – Number of bits that should be packed.</p></li>
-<li><p><strong>pack_axis</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – Axis that should be decomposed and packed.</p></li>
-<li><p><strong>bit_axis</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – New axis containing bitplane.</p></li>
-<li><p><strong>pack_type</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a>) – Datatype to pack bits into.</p></li>
-<li><p><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Name of the operation.</p></li>
+<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
+<li><p><strong>pool_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em><em>, </em><em>optional</em>) – The size of window for pooling.</p></li>
+<li><p><strong>strides</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The strides of pooling.</p></li>
+<li><p><strong>padding</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The padding for pooling.</p></li>
+<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
+<li><p><strong>ceil_mode</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – To enable or disable ceil while pooling.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>result</strong> – The packed tensor.</p>
+<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
 </dd>
 <dt class="field-odd">Return type</dt>
 <dd class="field-odd"><p>tvm.relay.Expr</p>
@@ -1729,24 +1914,18 @@ ready to be used in a bitserial operation.</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.bitserial_conv2d">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">bitserial_conv2d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">weight</em>, <em class="sig-param">strides=(1</em>, <em class="sig-param">1)</em>, <em class="sig-param">padding=(0</em>, <em class="sig-param">0)</em>, <em class="sig-param">channels=None</em>, <em class="sig-param">kernel_size=(3</em>, <em class="sig-param">3)</em>, <em class="sig- [...]
-<dd><p>2D convolution using bitserial computation.</p>
+<dt id="tvm.relay.nn.mirror_pad">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">mirror_pad</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">pad_width</em>, <em class="sig-param">mode='SYMMETRIC'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.mirror_pad" title="Permalink to this definition">¶</a></dt>
+<dd><p>MirrorPadding</p>
+<p>This operator takes in a tensor and pads each axis by the specified
+widths using mirroring of the border pixels.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
-<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
-<li><p><strong>strides</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The strides of convolution.</p></li>
-<li><p><strong>padding</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The padding of convolution on both sides of inputs before convolution.</p></li>
-<li><p><strong>channels</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of output channels of this convolution.</p></li>
-<li><p><strong>kernel_size</strong> (<em>tuple of int</em><em>, </em><em>optional</em>) – The spatial of the convolution kernel.</p></li>
-<li><p><strong>activation_bits</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – Number of bits to pack for activations.</p></li>
-<li><p><strong>weight_bits</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – Number of bits to pack for weights.</p></li>
-<li><p><strong>data_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
-<li><p><strong>kernel_layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the kernel</p></li>
-<li><p><strong>pack_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Datatype to pack bits into.</p></li>
-<li><p><strong>out_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Specifies the output data type for mixed precision conv2d.</p></li>
+<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator</p></li>
+<li><p><strong>pad_width</strong> (<em>tuple of &lt;tuple of &lt;int&gt;&gt;</em><em>, </em><em>required</em>) – Number of values padded to the edges of each axis, in the format
+of ((before_1, after_1), …, (before_N, after_N))</p></li>
+<li><p><strong>mode</strong> (<em>string</em><em>, </em><em>optional</em><em>, </em><em>default='SYMMETRIC'</em>) – What type of mirroring to use, must be SYMMETRIC or REFLECT.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -1759,25 +1938,21 @@ ready to be used in a bitserial operation.</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.bitserial_dense">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">bitserial_dense</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">weight</em>, <em class="sig-param">units=None</em>, <em class="sig-param">data_bits=1</em>, <em class="sig-param">weight_bits=1</em>, <em class="sig-param">pack_dtype='uint32'</em>, <em class="sig-param">out_dtype='int16'</em>, <em class="sig-param">unipolar=True</em><span class="sig- [...]
-<dd><p>Bitserial Dense operator.
-Applies matrix multiplication of two quantized matrices
-using a fast bitserial algorithm.</p>
-<div class="math notranslate nohighlight">
-\[\]</div>
-<p><cite>Y = X * W</cite></p>
+<dt id="tvm.relay.nn.pad">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">pad</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">pad_width</em>, <em class="sig-param">pad_value=0.0</em>, <em class="sig-param">pad_mode='constant'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.pad" title="Permalink to this definition">¶</a></dt>
+<dd><p>Padding</p>
+<p>This operator takes in a tensor and pads each axis by the specified
+widths using the specified value.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
-<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>weight</strong> (<em>tvm.relay.Expr</em>) – The weight expressions.</p></li>
-<li><p><strong>units</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Number of hidden units of the dense transformation.</p></li>
-<li><p><strong>data_bits</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – Number of bits incoming tensor should be packed with.</p></li>
-<li><p><strong>weight_bits</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – Number of bits weight tensor should be packed with.</p></li>
-<li><p><strong>pack_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Datatype to pack individual bits into before computation.</p></li>
-<li><p><strong>out_dtype</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Specifies the output data type for mixed precision dense.</p></li>
-<li><p><strong>unipolar</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – Whether to use unipolar or bipolar quantization for inputs.</p></li>
+<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator</p></li>
+<li><p><strong>pad_width</strong> (<em>tuple of &lt;tuple of &lt;int&gt;&gt;</em><em>, </em><em>required</em>) – Number of values padded to the edges of each axis, in the format
+of ((before_1, after_1), …, (before_N, after_N))</p></li>
+<li><p><strong>pad_value</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.8)"><em>float</em></a><em>, </em><em>optional</em><em>, </em><em>default=0.0</em>) – The value used for padding</p></li>
+<li><p><strong>pad_mode</strong> (<em>'constant'</em><em>, </em><em>'edge'</em><em>, </em><em>'reflect'</em>) – ‘constant’ pads with constant_value pad_value
+‘edge’ pads using the edge values of the input array
+‘reflect’ pads by reflecting values with respect to the edge</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -1790,14 +1965,18 @@ using a fast bitserial algorithm.</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.cross_entropy">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">cross_entropy</code><span class="sig-paren">(</span><em class="sig-param">predictions</em>, <em class="sig-param">targets</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.cross_entropy" title="Permalink to this definition">¶</a></dt>
-<dd><p>CrossEntropy without logits.</p>
+<dt id="tvm.relay.nn.prelu">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">prelu</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">alpha</em>, <em class="sig-param">axis=1</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.prelu" title="Permalink to this definition">¶</a></dt>
+<dd><p>This operator takes data as input and does Leaky version
+of a Rectified Linear Unit.</p>
+<div class="math notranslate nohighlight">
+\[`y = x &gt; 0 ? x : alpha * x`\]</div>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
-<li><p><strong>predictions</strong> (<em>tvm.relay.Expr</em>) – The predictions.</p></li>
-<li><p><strong>targets</strong> (<em>tvm.relay.Expr</em>) – The targets.</p></li>
+<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
+<li><p><strong>alpha</strong> (<em>tvm.relay.Expr</em>) – Slope coefficient for the negative half axis.</p></li>
+<li><p><strong>axis</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – Specify which shape axis the channel is specified.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -1810,15 +1989,14 @@ using a fast bitserial algorithm.</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.cross_entropy_with_logits">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">cross_entropy_with_logits</code><span class="sig-paren">(</span><em class="sig-param">predictions</em>, <em class="sig-param">targets</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.cross_entropy_with_logits" title="Permalink to this definition">¶</a></dt>
-<dd><p>CrossEntropy with logits.</p>
+<dt id="tvm.relay.nn.relu">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">relu</code><span class="sig-paren">(</span><em class="sig-param">data</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.relu" title="Permalink to this definition">¶</a></dt>
+<dd><p>Rectified linear unit.</p>
+<div class="math notranslate nohighlight">
+\[out = max(x, 0)\]</div>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><ul class="simple">
-<li><p><strong>predictions</strong> (<em>tvm.relay.Expr</em>) – The predictions.</p></li>
-<li><p><strong>targets</strong> (<em>tvm.relay.Expr</em>) – The targets.</p></li>
-</ul>
+<dd class="field-odd"><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data</p>
 </dd>
 <dt class="field-even">Returns</dt>
 <dd class="field-even"><p><strong>result</strong> – The computed result.</p>
@@ -1830,26 +2008,24 @@ using a fast bitserial algorithm.</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.depth_to_space">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">depth_to_space</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">block_size</em>, <em class="sig-param">layout='NCHW'</em>, <em class="sig-param">mode='DCR'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.depth_to_space" title="Permalink to this definition">¶</a></dt>
-<dd><p>Convert channels into spatial blocks.</p>
+<dt id="tvm.relay.nn.softmax">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">softmax</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">axis=-1</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.softmax" title="Permalink to this definition">¶</a></dt>
+<dd><p>Computes softmax.</p>
+<div class="math notranslate nohighlight">
+\[\text{softmax}(x)_i = \frac{exp(x_i)}{\sum_j exp(x_j)}\]</div>
+<div class="admonition note">
+<p class="admonition-title">Note</p>
+<p>This operator can be optimized away for inference.</p>
+</div>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
-<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – Input data with channels divisible by block_size**2</p></li>
-<li><p><strong>block_size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – Size of blocks to convert channels into.</p></li>
-<li><p><strong>layout</strong> (<em>string</em>) – One of NCHW or NHWC, indicates channel axis.</p></li>
-<li><p><strong>mode</strong> (<em>string</em>) – One of DCR or CDR, indicates which order channels
-are accessed in.</p></li>
+<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
+<li><p><strong>axis</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – The axis to sum over when computing softmax</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
-<dd class="field-even"><p><p><strong>result</strong> –</p>
-<dl class="simple">
-<dt>Tensor with shape [in_batch, in_channel / block_size * block_size,</dt><dd><p>in_height * block_size, in_width * block_size]</p>
-</dd>
-</dl>
-</p>
+<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
 </dd>
 <dt class="field-odd">Return type</dt>
 <dd class="field-odd"><p>tvm.relay.Expr</p>
@@ -1858,8 +2034,8 @@ are accessed in.</p></li>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.space_to_depth">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">space_to_depth</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">block_size</em>, <em class="sig-param">layout='NCHW'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.space_to_depth" title="Permalink to this definition">¶</a></dt>
+<dt id="tvm.relay.nn.space_to_depth">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">space_to_depth</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">block_size</em>, <em class="sig-param">layout='NCHW'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.space_to_depth" title="Permalink to this definition">¶</a></dt>
 <dd><p>Convert spatial blocks into channels.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
@@ -1884,32 +2060,24 @@ are accessed in.</p></li>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.adaptive_max_pool2d">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">adaptive_max_pool2d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">output_size=None</em>, <em class="sig-param">layout='NCHW'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.adaptive_max_pool2d" title="Permalink to this definition">¶</a></dt>
-<dd><p>2D adaptive max pooling operator. This operator is experimental.</p>
-<p>This operator takes data as input and does 2D max value calculation
-across each window represented by WxH.</p>
-<p>In the default case, where the data_layout is <cite>NCHW</cite>
-a data Tensor with shape <cite>(batch_size, in_channels, height, width)</cite>,
-to produce an output Tensor with shape
-(batch_size, in_channels, output_height, output_width).</p>
-<p>The pooling kernel and stride sizes are automatically chosen for
-desired output sizes.</p>
-<dl>
-<dt>For output_size:</dt><dd><p>If this argument is not provided, input height and width will be used
-as output height and width.</p>
-<p>If a single integer is provided for output_size, the output size is
-(N x C x output_size x output_size) for any input (NCHW).</p>
-<p>If a tuple of integers (height, width) are provided for output_size,
-the output size is (N x C x height x width) for any input (NCHW).</p>
-</dd>
-</dl>
+<dt id="tvm.relay.nn.sparse_dense">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">sparse_dense</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">weight</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.sparse_dense" title="Permalink to this definition">¶</a></dt>
+<dd><p>Computes the matrix multiplication of <cite>data</cite> and <cite>weight</cite>, where <cite>data</cite> is
+a dense matrix and <cite>weight</cite> is a sparse (either BSR or CSR) namedtuple with
+fields <cite>data</cite>, <cite>indices</cite>, and <cite>indptr</cite>.</p>
+<div class="math notranslate nohighlight">
+\[\mbox{sparse_dense}(data, weight)[m, n] = \mbox{matmul}(x, \mbox{as_dense}(weight)^T)[m, n]\]</div>
+<p>where <cite>as_dense</cite> returns dense equivalent of the given sparse matrix.</p>
+<p>See
+<a class="reference external" href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.csr_matrix.html">https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.csr_matrix.html</a>
+and
+<a class="reference external" href="https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.sparse.bsr_matrix.html">https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.sparse.bsr_matrix.html</a>
+for more detail on the sparse matrix representation.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
-<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>output_size</strong> (<em>tuple of int. optional</em>) – Output height and width.</p></li>
-<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
+<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data for the matrix multiplication</p></li>
+<li><p><strong>weight</strong> (<em>namedtuple.</em>) – The sparse weight matrix for the matrix multiplication.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -1922,70 +2090,49 @@ the output size is (N x C x height x width) for any input (NCHW).</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.adaptive_avg_pool2d">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">adaptive_avg_pool2d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">output_size=None</em>, <em class="sig-param">layout='NCHW'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.adaptive_avg_pool2d" title="Permalink to this definition">¶</a></dt>
-<dd><p>2D adaptive average pooling operator. This operator is experimental.</p>
-<p>This operator takes data as input and does 2D average value calculation
-across each window represented by WxH.</p>
-<p>In the default case, where the data_layout is <cite>NCHW</cite>
-a data Tensor with shape <cite>(batch_size, in_channels, height, width)</cite>,
-to produce an output Tensor with shape
-(batch_size, in_channels, output_height, output_width).</p>
-<p>The pooling kernel and stride sizes are automatically chosen for
-desired output sizes.</p>
-<dl>
-<dt>For output_size:</dt><dd><p>If this argument is not provided, input height and width will be used
-as output height and width.</p>
-<p>If a single integer is provided for output_size, the output size is
-(N x C x output_size x output_size) for any input (NCHW).</p>
-<p>If a tuple of integers (height, width) are provided for output_size,
-the output size is (N x C x height x width) for any input (NCHW).</p>
-</dd>
-</dl>
+<dt id="tvm.relay.nn.sparse_transpose">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">sparse_transpose</code><span class="sig-paren">(</span><em class="sig-param">x</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.sparse_transpose" title="Permalink to this definition">¶</a></dt>
+<dd><p>Computes the fast matrix transpose of x,
+where x is a sparse tensor in CSR format (represented as a namedtuple
+with fields <cite>data</cite>, <cite>indices</cite>, and <cite>indptr</cite>).</p>
+<p>** Currently only support Square Matrices **</p>
+<div class="math notranslate nohighlight">
+\[\mbox{sparse_transpose}(x)[n, n] = (x^T)[n, n]\]</div>
+<p>Please refer to <a class="reference external" href="https://github.com/scipy/scipy/blob/v1.3.0/scipy/sparse/csr.py">https://github.com/scipy/scipy/blob/v1.3.0/scipy/sparse/csr.py</a>
+for the algorithm implemented in this operator.</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><ul class="simple">
-<li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>output_size</strong> (<em>tuple of int. optional</em>) – Output height and width.</p></li>
-<li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
-</ul>
+<dd class="field-odd"><p><strong>x</strong> (<em>namedtuple.</em>) – The sparse weight matrix for the fast matrix transpose.</p>
 </dd>
 <dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
+<dd class="field-even"><p><strong>result</strong> – Tuple of output sparse tensor (same shape and format as input),
+i.e. if CSR then output is in ([data, indices, indptr]) form</p>
 </dd>
 <dt class="field-odd">Return type</dt>
-<dd class="field-odd"><p>tvm.relay.Expr</p>
+<dd class="field-odd"><p><a class="reference internal" href="index.html#tvm.relay.Tuple" title="tvm.relay.Tuple">relay.Tuple</a>([tvm.relay.Expr, tvm.relay.Expr, tvm.relay.Expr])</p>
 </dd>
 </dl>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.adaptive_max_pool3d">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">adaptive_max_pool3d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">output_size=None</em>, <em class="sig-param">layout='NCDHW'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.adaptive_max_pool3d" title="Permalink to this definition">¶</a></dt>
-<dd><p>3D adaptive max pooling operator. This operator is experimental.</p>
-<p>This operator takes data as input and does 3D max value calculation
-across each window represented by DxWxH.</p>
-<p>In the default case, where the data_layout is <cite>NCDHW</cite>
-a data Tensor with shape <cite>(batch_size, in_channels, depth, height, width)</cite>,
-to produce an output Tensor with shape
-(batch_size, in_channels, output_depth, output_height, output_width).</p>
-<p>The pooling kernel and stride sizes are automatically chosen for
-desired output sizes.</p>
-<dl>
-<dt>For output_size:</dt><dd><p>If this argument is not provided, input depth, height and width will be used
-as output depth, height and width.</p>
-<p>If a single integer is provided for output_size, the output size is
-(N x C x output_size x output_size x output_size) for any input (NCDHW).</p>
-<p>If a tuple of integers (depth, height, width) are provided for output_size,
-the output size is (N x C x depth x height x width) for any input (NCDHW).</p>
-</dd>
-</dl>
+<dt id="tvm.relay.nn.upsampling">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">upsampling</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">scale_h=1</em>, <em class="sig-param">scale_w=1</em>, <em class="sig-param">layout='NCHW'</em>, <em class="sig-param">method='nearest_neighbor'</em>, <em class="sig-param">align_corners=False</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.nn.upsampling" title="Permali [...]
+<dd><p>Upsampling.</p>
+<p>This operator takes data as input and does 2D scaling to the given scale factor.
+In the default case, where the data_layout is <cite>NCHW</cite>
+with data of shape (n, c, h, w)
+out will have a shape (n, c, h*scale_h, w*scale_w)</p>
+<p>method indicates the algorithm to be used while calculating the out value
+and method can be one of (“bilinear”, “nearest_neighbor”, “bicubic”)</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>output_size</strong> (<em>tuple of int. optional</em>) – Output height and width.</p></li>
+<li><p><strong>scale_h</strong> (<em>tvm.relay.Expr</em>) – The scale factor for height upsampling.</p></li>
+<li><p><strong>scale_w</strong> (<em>tvm.relay.Expr</em>) – The scale factor for width upsampling.</p></li>
 <li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
+<li><p><strong>method</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Scale method to used [nearest_neighbor, bilinear, bicubic].</p></li>
+<li><p><strong>align_corners</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a><em>, </em><em>optional</em>) – Whether to keep corners in proper place.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -1998,32 +2145,28 @@ the output size is (N x C x depth x height x width) for any input (NCDHW).</p>
 </dd></dl>
 
 <dl class="function">
-<dt id="tvm.relay.op.nn.nn.adaptive_avg_pool3d">
-<code class="sig-prename descclassname">tvm.relay.op.nn.nn.</code><code class="sig-name descname">adaptive_avg_pool3d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">output_size=None</em>, <em class="sig-param">layout='NCDHW'</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.nn.nn.adaptive_avg_pool3d" title="Permalink to this definition">¶</a></dt>
-<dd><p>3D adaptive avg pooling operator. This operator is experimental.</p>
-<p>This operator takes data as input and does 3D avg value calculation
-across each window represented by DxWxH.</p>
-<p>In the default case, where the data_layout is <cite>NCDHW</cite>
-a data Tensor with shape <cite>(batch_size, in_channels, depth, height, width)</cite>,
-to produce an output Tensor with shape
-(batch_size, in_channels, output_depth, output_height, output_width).</p>
-<p>The pooling kernel and stride sizes are automatically chosen for
-desired output sizes.</p>
-<dl>
-<dt>For output_size:</dt><dd><p>If this argument is not provided, input depth, height and width will be used
-as output depth, height and width.</p>
-<p>If a single integer is provided for output_size, the output size is
-(N x C x output_size x output_size x output_size) for any input (NCDHW).</p>
-<p>If a tuple of integers (depth, height, width) are provided for output_size,
-the output size is (N x C x depth x height x width) for any input (NCDHW).</p>
-</dd>
-</dl>
+<dt id="tvm.relay.nn.upsampling3d">
+<code class="sig-prename descclassname">tvm.relay.nn.</code><code class="sig-name descname">upsampling3d</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">scale_d=1</em>, <em class="sig-param">scale_h=1</em>, <em class="sig-param">scale_w=1</em>, <em class="sig-param">layout='NCDHW'</em>, <em class="sig-param">method='nearest_neighbor'</em>, <em class="sig-param">coordinate_transformation_mode='half_pixel'</em><span class="sig-paren">)</span><a  [...]
+<dd><p>3D Upsampling.</p>
+<p>This operator takes data as input and does 3D scaling to the given scale factor.
+In the default case, where the data_layout is <cite>NCDHW</cite>
+with data of shape (n, c, d, h, w)
+out will have a shape (n, c, d*scale_d, h*scale_h, w*scale_w)</p>
+<p>method indicates the algorithm to be used while calculating the out value
+and method can be one of (“trilinear”, “nearest_neighbor”)</p>
 <dl class="field-list simple">
 <dt class="field-odd">Parameters</dt>
 <dd class="field-odd"><ul class="simple">
 <li><p><strong>data</strong> (<em>tvm.relay.Expr</em>) – The input data to the operator.</p></li>
-<li><p><strong>output_size</strong> (<em>tuple of int. optional</em>) – Output height and width.</p></li>
+<li><p><strong>scale_d</strong> (<em>tvm.relay.Expr</em>) – The scale factor for depth upsampling.</p></li>
+<li><p><strong>scale_h</strong> (<em>tvm.relay.Expr</em>) – The scale factor for height upsampling.</p></li>
+<li><p><strong>scale_w</strong> (<em>tvm.relay.Expr</em>) – The scale factor for width upsampling.</p></li>
 <li><p><strong>layout</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Layout of the input.</p></li>
+<li><p><strong>method</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a><em>, </em><em>optional</em>) – Scale method to used [nearest_neighbor, trilinear].</p></li>
+<li><p><strong>coordinate_transformation_mode</strong> (<em>string</em><em>, </em><em>optional</em>) – Describes how to transform the coordinate in the resized tensor
+to the coordinate in the original tensor.
+Refer to the ONNX Resize operator specification for details.
+Available options are “half_pixel”, “align_corners” and “asymmetric”.</p></li>
 </ul>
 </dd>
 <dt class="field-even">Returns</dt>
@@ -2045,10 +2188,10 @@ the output size is (N x C x depth x height x width) for any input (NCDHW).</p>
   
     <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
       
-        <a href="op.html" class="btn btn-neutral float-right" title="tvm.relay.op" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
+        <a href="vision.html" class="btn btn-neutral float-right" title="tvm.relay.vision" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
       
       
-        <a href="transform.html" class="btn btn-neutral float-left" title="tvm.relay.transform" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
+        <a href="frontend.html" class="btn btn-neutral float-left" title="tvm.relay.frontend" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
       
     </div>
   
diff --git a/docs/api/python/relay/op.html b/docs/api/python/relay/op.html
deleted file mode 100644
index 3899986..0000000
--- a/docs/api/python/relay/op.html
+++ /dev/null
@@ -1,3252 +0,0 @@
-
-
-<!DOCTYPE html>
-<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
-<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
-<head>
-  <meta charset="utf-8">
-  
-  <meta name="viewport" content="width=device-width, initial-scale=1.0">
-  
-  <title>tvm.relay.op &mdash; tvm 0.7.dev1 documentation</title>
-  
-
-  
-  
-    <link rel="shortcut icon" href="../../../_static/tvm-logo-square.png"/>
-  
-  
-  
-
-  
-  <script type="text/javascript" src="../../../_static/js/modernizr.min.js"></script>
-  
-    
-      <script type="text/javascript" id="documentation_options" data-url_root="../../../" src="../../../_static/documentation_options.js"></script>
-        <script src="../../../_static/jquery.js"></script>
-        <script src="../../../_static/underscore.js"></script>
-        <script src="../../../_static/doctools.js"></script>
-        <script src="../../../_static/language_data.js"></script>
-        <script async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
-    
-    <script type="text/javascript" src="../../../_static/js/theme.js"></script>
-
-    
-
-  
-  <link rel="stylesheet" href="../../../_static/css/theme.css" type="text/css" />
-  <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
-  <link rel="stylesheet" href="../../../_static/gallery.css" type="text/css" />
-  <link rel="stylesheet" href="../../../_static/css/tvm_theme.css" type="text/css" />
-    <link rel="index" title="Index" href="../../../genindex.html" />
-    <link rel="search" title="Search" href="../../../search.html" />
-    <link rel="next" title="tvm.relay.vision" href="vision.html" />
-    <link rel="prev" title="tvm.relay.nn" href="nn.html" /> 
-</head>
-
-<body class="wy-body-for-nav">
-
-   
-  <div class="wy-grid-for-nav">
-    
-    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
-      <div class="wy-side-scroll">
-        <div class="wy-side-nav-search" >
-          
-
-          
-            <a href="../../../index.html">
-          
-
-          
-            
-            <img src="../../../_static/tvm-logo-small.png" class="logo" alt="Logo"/>
-          
-          </a>
-
-          
-            
-            
-              <div class="version">
-                0.7.dev1
-              </div>
-            
-          
-
-          
-<div role="search">
-  <form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
-    <input type="text" name="q" placeholder="Search docs" />
-    <input type="hidden" name="check_keywords" value="yes" />
-    <input type="hidden" name="area" value="default" />
-  </form>
-</div>
-
-          
-        </div>
-
-        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
-          
-            
-            
-              
-            
-            
-              <ul>
-<li class="toctree-l1"><a class="reference internal" href="../../../install/index.html">Installation</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../../../tutorials/index.html">Tutorials</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../../../vta/index.html">VTA: Deep Learning Accelerator Stack</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../../../deploy/index.html">Deploy and Integration</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../../../contribute/index.html">Contribute to TVM</a></li>
-<li class="toctree-l1"><a class="reference internal" href="../../../faq.html">Frequently Asked Questions</a></li>
-</ul>
-<ul class="current">
-<li class="toctree-l1"><a class="reference internal" href="../../../langref/index.html">Language Reference</a></li>
-<li class="toctree-l1 current"><a class="reference internal" href="../index.html">Python API</a><ul class="current">
-<li class="toctree-l2"><a class="reference internal" href="../runtime.html">tvm.runtime</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../ndarray.html">tvm.runtime.ndarray</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../error.html">tvm.error</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../ir.html">tvm.ir</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../ir.html#module-tvm.transform">tvm.transform</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../target.html">tvm.target</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../tir.html">tvm.tir</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../tir.html#module-tvm.tir.transform">tvm.tir.transform</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../tir.html#module-tvm.tir.analysis">tvm.tir.analysis</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../te.html">tvm.te</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../te.html#module-tvm.te.hybrid">tvm.te.hybrid</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../driver.html">tvm.driver</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../autotvm.html">tvm.autotvm</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../rpc.html">tvm.rpc</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../contrib.html">tvm.contrib</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../graph_runtime.html">tvm.contrib.graph_runtime</a></li>
-<li class="toctree-l2 current"><a class="reference internal" href="index.html">tvm.relay</a><ul class="current">
-<li class="toctree-l3"><a class="reference internal" href="analysis.html">tvm.relay.analysis</a></li>
-<li class="toctree-l3"><a class="reference internal" href="backend.html">tvm.relay.backend</a></li>
-<li class="toctree-l3"><a class="reference internal" href="frontend.html">tvm.relay.frontend</a></li>
-<li class="toctree-l3"><a class="reference internal" href="image.html">tvm.relay.image</a></li>
-<li class="toctree-l3"><a class="reference internal" href="transform.html">tvm.relay.transform</a></li>
-<li class="toctree-l3"><a class="reference internal" href="nn.html">tvm.relay.nn</a></li>
-<li class="toctree-l3 current"><a class="current reference internal" href="#">tvm.relay.op</a></li>
-<li class="toctree-l3"><a class="reference internal" href="vision.html">tvm.relay.vision</a></li>
-<li class="toctree-l3"><a class="reference internal" href="testing.html">tvm.relay.testing</a></li>
-</ul>
-</li>
-<li class="toctree-l2"><a class="reference internal" href="../vta/index.html">vta</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../topi.html">topi</a></li>
-</ul>
-</li>
-<li class="toctree-l1"><a class="reference internal" href="../../../api_links.html">Links to API References</a></li>
-</ul>
-<ul>
-<li class="toctree-l1"><a class="reference internal" href="../../../dev/index.html">Design and Developer Guide</a></li>
-</ul>
-<ul>
-<li class="toctree-l1"><a class="reference internal" href="../../../frontend/tensorflow.html">TensorFlow Frontend</a></li>
-</ul>
-<ul>
-<li class="toctree-l1"><a class="reference internal" href="../../../genindex.html">Index</a></li>
-</ul>
-
-            
-          
-        </div>
-      </div>
-    </nav>
-
-    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
-
-      
-      <nav class="wy-nav-top" aria-label="top navigation">
-        
-          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
-          <a href="../../../index.html">tvm</a>
-        
-      </nav>
-
-
-      <div class="wy-nav-content">
-        
-        <div class="rst-content">
-        
-          
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-<div role="navigation" aria-label="breadcrumbs navigation">
-
-  <ul class="wy-breadcrumbs">
-    
-      <li><a href="../../../index.html">Docs</a> &raquo;</li>
-        
-          <li><a href="../index.html">Python API</a> &raquo;</li>
-        
-          <li><a href="index.html">tvm.relay</a> &raquo;</li>
-        
-      <li>tvm.relay.op</li>
-    
-    
-      <li class="wy-breadcrumbs-aside">
-        
-            
-            <a href="../../../_sources/api/python/relay/op.rst.txt" rel="nofollow"> View page source</a>
-          
-        
-      </li>
-    
-  </ul>
-
-  
-  <hr/>
-</div>
-          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
-           <div itemprop="articleBody">
-            
-  <div class="section" id="module-tvm.relay.op">
-<span id="tvm-relay-op"></span><h1>tvm.relay.op<a class="headerlink" href="#module-tvm.relay.op" title="Permalink to this headline">¶</a></h1>
-<p>Relay core operators.</p>
-<p><strong>Classes</strong></p>
-<table class="longtable docutils align-default">
-<colgroup>
-<col style="width: 10%" />
-<col style="width: 90%" />
-</colgroup>
-<tbody>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.Op" title="tvm.relay.op.Op"><code class="xref py py-obj docutils literal notranslate"><span class="pre">Op</span></code></a>()</p></td>
-<td><p>A Relay operator definition.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.OpPattern" title="tvm.relay.op.OpPattern"><code class="xref py py-obj docutils literal notranslate"><span class="pre">OpPattern</span></code></a></p></td>
-<td><p>Operator generic patterns</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.OpStrategy" title="tvm.relay.op.OpStrategy"><code class="xref py py-obj docutils literal notranslate"><span class="pre">OpStrategy</span></code></a>()</p></td>
-<td><p>Operator strategy</p></td>
-</tr>
-</tbody>
-</table>
-<p><strong>Functions</strong></p>
-<table class="longtable docutils align-default">
-<colgroup>
-<col style="width: 10%" />
-<col style="width: 90%" />
-</colgroup>
-<tbody>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.abs" title="tvm.relay.op.abs"><code class="xref py py-obj docutils literal notranslate"><span class="pre">abs</span></code></a>(data)</p></td>
-<td><p>Compute element-wise absolute of data.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.add" title="tvm.relay.op.add"><code class="xref py py-obj docutils literal notranslate"><span class="pre">add</span></code></a>(lhs, rhs)</p></td>
-<td><p>Addition with numpy-style broadcasting.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.all" title="tvm.relay.op.all"><code class="xref py py-obj docutils literal notranslate"><span class="pre">all</span></code></a>(data[, axis, keepdims, exclude])</p></td>
-<td><p>Computes the logical AND of boolean array elements over given axes.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.any" title="tvm.relay.op.any"><code class="xref py py-obj docutils literal notranslate"><span class="pre">any</span></code></a>(data[, axis, keepdims, exclude])</p></td>
-<td><p>Computes the logical OR of boolean array elements over given axes.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.arange" title="tvm.relay.op.arange"><code class="xref py py-obj docutils literal notranslate"><span class="pre">arange</span></code></a>(start[, stop, step, dtype])</p></td>
-<td><p>Return evenly spaced values within a given interval.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.argmax" title="tvm.relay.op.argmax"><code class="xref py py-obj docutils literal notranslate"><span class="pre">argmax</span></code></a>(data[, axis, keepdims, exclude])</p></td>
-<td><p>Returns the indices of the maximum values along an axis.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.argmin" title="tvm.relay.op.argmin"><code class="xref py py-obj docutils literal notranslate"><span class="pre">argmin</span></code></a>(data[, axis, keepdims, exclude])</p></td>
-<td><p>Returns the indices of the minimum values along an axis.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.argsort" title="tvm.relay.op.argsort"><code class="xref py py-obj docutils literal notranslate"><span class="pre">argsort</span></code></a>(data[, axis, is_ascend, dtype])</p></td>
-<td><p>Performs sorting along the given axis and returns an array of indicies having same shape as an input array that index data in sorted order.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.argwhere" title="tvm.relay.op.argwhere"><code class="xref py py-obj docutils literal notranslate"><span class="pre">argwhere</span></code></a>(condition)</p></td>
-<td><p>Find the indices of elements of a tensor that are non-zero.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.atan" title="tvm.relay.op.atan"><code class="xref py py-obj docutils literal notranslate"><span class="pre">atan</span></code></a>(data)</p></td>
-<td><p>Compute elementwise atan of data.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.bitwise_and" title="tvm.relay.op.bitwise_and"><code class="xref py py-obj docutils literal notranslate"><span class="pre">bitwise_and</span></code></a>(lhs, rhs)</p></td>
-<td><p>bitwise AND with numpy-style broadcasting.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.bitwise_not" title="tvm.relay.op.bitwise_not"><code class="xref py py-obj docutils literal notranslate"><span class="pre">bitwise_not</span></code></a>(data)</p></td>
-<td><p>Compute element-wise bitwise not of data.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.bitwise_or" title="tvm.relay.op.bitwise_or"><code class="xref py py-obj docutils literal notranslate"><span class="pre">bitwise_or</span></code></a>(lhs, rhs)</p></td>
-<td><p>bitwise OR with numpy-style broadcasting.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.bitwise_xor" title="tvm.relay.op.bitwise_xor"><code class="xref py py-obj docutils literal notranslate"><span class="pre">bitwise_xor</span></code></a>(lhs, rhs)</p></td>
-<td><p>bitwise XOR with numpy-style broadcasting.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.broadcast_to" title="tvm.relay.op.broadcast_to"><code class="xref py py-obj docutils literal notranslate"><span class="pre">broadcast_to</span></code></a>(data, shape)</p></td>
-<td><p>Return a scalar value array with the same type, broadcast to the provided shape.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.broadcast_to_like" title="tvm.relay.op.broadcast_to_like"><code class="xref py py-obj docutils literal notranslate"><span class="pre">broadcast_to_like</span></code></a>(data, broadcast_type)</p></td>
-<td><p>Return a scalar value array with the same shape and type as the input array.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.cast" title="tvm.relay.op.cast"><code class="xref py py-obj docutils literal notranslate"><span class="pre">cast</span></code></a>(data, dtype)</p></td>
-<td><p>Cast input tensor to data type.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.cast_like" title="tvm.relay.op.cast_like"><code class="xref py py-obj docutils literal notranslate"><span class="pre">cast_like</span></code></a>(data, dtype_like)</p></td>
-<td><p>Cast input tensor to data type of another tensor.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.ceil" title="tvm.relay.op.ceil"><code class="xref py py-obj docutils literal notranslate"><span class="pre">ceil</span></code></a>(data)</p></td>
-<td><p>Compute element-wise ceil of data.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.clip" title="tvm.relay.op.clip"><code class="xref py py-obj docutils literal notranslate"><span class="pre">clip</span></code></a>(a, a_min, a_max)</p></td>
-<td><p>Clip the elements in <cite>a</cite> between <cite>a_min</cite> and <cite>a_max</cite>.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.collapse_sum_like" title="tvm.relay.op.collapse_sum_like"><code class="xref py py-obj docutils literal notranslate"><span class="pre">collapse_sum_like</span></code></a>(data, collapse_type)</p></td>
-<td><p>Return a scalar value array with the same shape and type as the input array.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.concatenate" title="tvm.relay.op.concatenate"><code class="xref py py-obj docutils literal notranslate"><span class="pre">concatenate</span></code></a>(data, axis)</p></td>
-<td><p>Concatenate the input tensors along the given axis.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.const" title="tvm.relay.op.const"><code class="xref py py-obj docutils literal notranslate"><span class="pre">const</span></code></a>(value[, dtype])</p></td>
-<td><p>Create a constant value.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.copy" title="tvm.relay.op.copy"><code class="xref py py-obj docutils literal notranslate"><span class="pre">copy</span></code></a>(data)</p></td>
-<td><p>Copy a tensor.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.cos" title="tvm.relay.op.cos"><code class="xref py py-obj docutils literal notranslate"><span class="pre">cos</span></code></a>(data)</p></td>
-<td><p>Compute elementwise cos of data.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.debug" title="tvm.relay.op.debug"><code class="xref py py-obj docutils literal notranslate"><span class="pre">debug</span></code></a>(expr[, debug_func])</p></td>
-<td><p>The main entry point to the debugger.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.device_copy" title="tvm.relay.op.device_copy"><code class="xref py py-obj docutils literal notranslate"><span class="pre">device_copy</span></code></a>(data, src_dev, dst_dev)</p></td>
-<td><p>Copy data from the source device to the destination device.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.divide" title="tvm.relay.op.divide"><code class="xref py py-obj docutils literal notranslate"><span class="pre">divide</span></code></a>(lhs, rhs)</p></td>
-<td><p>Division with numpy-style broadcasting.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.equal" title="tvm.relay.op.equal"><code class="xref py py-obj docutils literal notranslate"><span class="pre">equal</span></code></a>(lhs, rhs)</p></td>
-<td><p>Broadcasted elementwise test for (lhs == rhs).</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.erf" title="tvm.relay.op.erf"><code class="xref py py-obj docutils literal notranslate"><span class="pre">erf</span></code></a>(data)</p></td>
-<td><p>Compute elementwise error function of data.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.exp" title="tvm.relay.op.exp"><code class="xref py py-obj docutils literal notranslate"><span class="pre">exp</span></code></a>(data)</p></td>
-<td><p>Compute elementwise exp of data.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.expand_dims" title="tvm.relay.op.expand_dims"><code class="xref py py-obj docutils literal notranslate"><span class="pre">expand_dims</span></code></a>(data, axis[, num_newaxis])</p></td>
-<td><p>Insert <cite>num_newaxis</cite> axises at the position given by <cite>axis</cite>.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.floor" title="tvm.relay.op.floor"><code class="xref py py-obj docutils literal notranslate"><span class="pre">floor</span></code></a>(data)</p></td>
-<td><p>Compute element-wise floor of data.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.floor_divide" title="tvm.relay.op.floor_divide"><code class="xref py py-obj docutils literal notranslate"><span class="pre">floor_divide</span></code></a>(lhs, rhs)</p></td>
-<td><p>Floor division with numpy-style broadcasting.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.floor_mod" title="tvm.relay.op.floor_mod"><code class="xref py py-obj docutils literal notranslate"><span class="pre">floor_mod</span></code></a>(lhs, rhs)</p></td>
-<td><p>Floor mod with numpy-style broadcasting.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.full" title="tvm.relay.op.full"><code class="xref py py-obj docutils literal notranslate"><span class="pre">full</span></code></a>(fill_value[, shape, dtype])</p></td>
-<td><p>Fill array with scalar value.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.full_like" title="tvm.relay.op.full_like"><code class="xref py py-obj docutils literal notranslate"><span class="pre">full_like</span></code></a>(data, fill_value)</p></td>
-<td><p>Return a scalar value array with the same shape and type as the input array.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.gather_nd" title="tvm.relay.op.gather_nd"><code class="xref py py-obj docutils literal notranslate"><span class="pre">gather_nd</span></code></a>(data, indices)</p></td>
-<td><p>Gather elements or slices from data and store to a tensor whose shape is defined by indices.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.get" title="tvm.relay.op.get"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get</span></code></a>(op_name)</p></td>
-<td><p>Get the Op for a given name</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.greater" title="tvm.relay.op.greater"><code class="xref py py-obj docutils literal notranslate"><span class="pre">greater</span></code></a>(lhs, rhs)</p></td>
-<td><p>Broadcasted elementwise test for (lhs &gt; rhs).</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.greater_equal" title="tvm.relay.op.greater_equal"><code class="xref py py-obj docutils literal notranslate"><span class="pre">greater_equal</span></code></a>(lhs, rhs)</p></td>
-<td><p>Broadcasted elementwise test for (lhs &gt;= rhs).</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.isfinite" title="tvm.relay.op.isfinite"><code class="xref py py-obj docutils literal notranslate"><span class="pre">isfinite</span></code></a>(data)</p></td>
-<td><p>Compute element-wise finiteness of data.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.isinf" title="tvm.relay.op.isinf"><code class="xref py py-obj docutils literal notranslate"><span class="pre">isinf</span></code></a>(data)</p></td>
-<td><p>Compute element-wise infiniteness of data.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.isnan" title="tvm.relay.op.isnan"><code class="xref py py-obj docutils literal notranslate"><span class="pre">isnan</span></code></a>(data)</p></td>
-<td><p>Check nan in input data element-wise.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.layout_transform" title="tvm.relay.op.layout_transform"><code class="xref py py-obj docutils literal notranslate"><span class="pre">layout_transform</span></code></a>(data, src_layout, dst_layout)</p></td>
-<td><p>Transform the layout of a tensor</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.left_shift" title="tvm.relay.op.left_shift"><code class="xref py py-obj docutils literal notranslate"><span class="pre">left_shift</span></code></a>(lhs, rhs)</p></td>
-<td><p>Left shift with numpy-style broadcasting.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.less" title="tvm.relay.op.less"><code class="xref py py-obj docutils literal notranslate"><span class="pre">less</span></code></a>(lhs, rhs)</p></td>
-<td><p>Broadcasted elementwise test for (lhs &lt; rhs).</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.less_equal" title="tvm.relay.op.less_equal"><code class="xref py py-obj docutils literal notranslate"><span class="pre">less_equal</span></code></a>(lhs, rhs)</p></td>
-<td><p>Broadcasted elementwise test for (lhs &lt;= rhs).</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.log" title="tvm.relay.op.log"><code class="xref py py-obj docutils literal notranslate"><span class="pre">log</span></code></a>(data)</p></td>
-<td><p>Compute elementwise log of data.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.logical_and" title="tvm.relay.op.logical_and"><code class="xref py py-obj docutils literal notranslate"><span class="pre">logical_and</span></code></a>(lhs, rhs)</p></td>
-<td><p>logical AND with numpy-style broadcasting.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.logical_not" title="tvm.relay.op.logical_not"><code class="xref py py-obj docutils literal notranslate"><span class="pre">logical_not</span></code></a>(data)</p></td>
-<td><p>Compute element-wise logical not of data.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.logical_or" title="tvm.relay.op.logical_or"><code class="xref py py-obj docutils literal notranslate"><span class="pre">logical_or</span></code></a>(lhs, rhs)</p></td>
-<td><p>logical OR with numpy-style broadcasting.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.max" title="tvm.relay.op.max"><code class="xref py py-obj docutils literal notranslate"><span class="pre">max</span></code></a>(data[, axis, keepdims, exclude])</p></td>
-<td><p>Computes the max of array elements over given axes.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.maximum" title="tvm.relay.op.maximum"><code class="xref py py-obj docutils literal notranslate"><span class="pre">maximum</span></code></a>(lhs, rhs)</p></td>
-<td><p>Maximum with numpy-style broadcasting.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.mean" title="tvm.relay.op.mean"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mean</span></code></a>(data[, axis, keepdims, exclude])</p></td>
-<td><p>Computes the mean of array elements over given axes.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.mean_std" title="tvm.relay.op.mean_std"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mean_std</span></code></a>(data[, axis, keepdims, exclude])</p></td>
-<td><p>Computes the mean and standard deviation of data over given axes.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.mean_variance" title="tvm.relay.op.mean_variance"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mean_variance</span></code></a>(data[, axis, keepdims, exclude])</p></td>
-<td><p>Computes the mean and variance of data over given axes.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.min" title="tvm.relay.op.min"><code class="xref py py-obj docutils literal notranslate"><span class="pre">min</span></code></a>(data[, axis, keepdims, exclude])</p></td>
-<td><p>Computes the min of array elements over given axes.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.minimum" title="tvm.relay.op.minimum"><code class="xref py py-obj docutils literal notranslate"><span class="pre">minimum</span></code></a>(lhs, rhs)</p></td>
-<td><p>Minimum with numpy-style broadcasting.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.mod" title="tvm.relay.op.mod"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mod</span></code></a>(lhs, rhs)</p></td>
-<td><p>Mod with numpy-style broadcasting.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.multiply" title="tvm.relay.op.multiply"><code class="xref py py-obj docutils literal notranslate"><span class="pre">multiply</span></code></a>(lhs, rhs)</p></td>
-<td><p>Multiplication with numpy-style broadcasting.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.ndarray_size" title="tvm.relay.op.ndarray_size"><code class="xref py py-obj docutils literal notranslate"><span class="pre">ndarray_size</span></code></a>(data[, dtype])</p></td>
-<td><p>Get number of elements of input tensor.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.negative" title="tvm.relay.op.negative"><code class="xref py py-obj docutils literal notranslate"><span class="pre">negative</span></code></a>(data)</p></td>
-<td><p>Compute element-wise negative of data.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.not_equal" title="tvm.relay.op.not_equal"><code class="xref py py-obj docutils literal notranslate"><span class="pre">not_equal</span></code></a>(lhs, rhs)</p></td>
-<td><p>Broadcasted elementwise test for (lhs != rhs).</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.one_hot" title="tvm.relay.op.one_hot"><code class="xref py py-obj docutils literal notranslate"><span class="pre">one_hot</span></code></a>(indices, on_value, off_value, depth, …)</p></td>
-<td><p>Returns a one-hot tensor where the locations repsented by indices take value on_value, other locations take value off_value.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.ones" title="tvm.relay.op.ones"><code class="xref py py-obj docutils literal notranslate"><span class="pre">ones</span></code></a>(shape, dtype)</p></td>
-<td><p>Fill array with ones.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.ones_like" title="tvm.relay.op.ones_like"><code class="xref py py-obj docutils literal notranslate"><span class="pre">ones_like</span></code></a>(data)</p></td>
-<td><p>Returns an array of ones, with same type and shape as the input.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.power" title="tvm.relay.op.power"><code class="xref py py-obj docutils literal notranslate"><span class="pre">power</span></code></a>(lhs, rhs)</p></td>
-<td><p>Power with numpy-style broadcasting.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.prod" title="tvm.relay.op.prod"><code class="xref py py-obj docutils literal notranslate"><span class="pre">prod</span></code></a>(data[, axis, keepdims, exclude])</p></td>
-<td><p>Computes the products of array elements over given axes.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.register" title="tvm.relay.op.register"><code class="xref py py-obj docutils literal notranslate"><span class="pre">register</span></code></a>(op_name, attr_key[, value, level])</p></td>
-<td><p>Register an operator property of an operator.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.register_alter_op_layout" title="tvm.relay.op.register_alter_op_layout"><code class="xref py py-obj docutils literal notranslate"><span class="pre">register_alter_op_layout</span></code></a>(op_name[, …])</p></td>
-<td><p>Register alter op layout function for an op</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.register_compute" title="tvm.relay.op.register_compute"><code class="xref py py-obj docutils literal notranslate"><span class="pre">register_compute</span></code></a>(op_name[, compute, level])</p></td>
-<td><p>Register compute function for an op.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.register_external_compiler" title="tvm.relay.op.register_external_compiler"><code class="xref py py-obj docutils literal notranslate"><span class="pre">register_external_compiler</span></code></a>(op_name[, …])</p></td>
-<td><p>Register the external compiler for an op.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.register_gradient" title="tvm.relay.op.register_gradient"><code class="xref py py-obj docutils literal notranslate"><span class="pre">register_gradient</span></code></a>(op_name[, fgradient, level])</p></td>
-<td><p>Register operator pattern for an op.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.register_legalize" title="tvm.relay.op.register_legalize"><code class="xref py py-obj docutils literal notranslate"><span class="pre">register_legalize</span></code></a>(op_name[, legal_op, level])</p></td>
-<td><p>Register legal transformation function for an op</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.register_pattern" title="tvm.relay.op.register_pattern"><code class="xref py py-obj docutils literal notranslate"><span class="pre">register_pattern</span></code></a>(op_name, pattern[, level])</p></td>
-<td><p>Register operator pattern for an op.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.reinterpret" title="tvm.relay.op.reinterpret"><code class="xref py py-obj docutils literal notranslate"><span class="pre">reinterpret</span></code></a>(data, dtype)</p></td>
-<td><p>Reinterpret input tensor to data type.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.repeat" title="tvm.relay.op.repeat"><code class="xref py py-obj docutils literal notranslate"><span class="pre">repeat</span></code></a>(data, repeats, axis)</p></td>
-<td><p>Repeats elements of an array.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.reshape" title="tvm.relay.op.reshape"><code class="xref py py-obj docutils literal notranslate"><span class="pre">reshape</span></code></a>(data, newshape)</p></td>
-<td><p>Reshape the input array.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.reshape_like" title="tvm.relay.op.reshape_like"><code class="xref py py-obj docutils literal notranslate"><span class="pre">reshape_like</span></code></a>(data, shape_like)</p></td>
-<td><p>Reshapes the input array by the size of another array.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.reverse" title="tvm.relay.op.reverse"><code class="xref py py-obj docutils literal notranslate"><span class="pre">reverse</span></code></a>(data, axis)</p></td>
-<td><p>Reverses the order of elements along given axis while preserving array shape.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.reverse_reshape" title="tvm.relay.op.reverse_reshape"><code class="xref py py-obj docutils literal notranslate"><span class="pre">reverse_reshape</span></code></a>(data, newshape)</p></td>
-<td><p>Reshapes the input array where the special values are inferred from right to left.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.right_shift" title="tvm.relay.op.right_shift"><code class="xref py py-obj docutils literal notranslate"><span class="pre">right_shift</span></code></a>(lhs, rhs)</p></td>
-<td><p>Right shift with numpy-style broadcasting.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.round" title="tvm.relay.op.round"><code class="xref py py-obj docutils literal notranslate"><span class="pre">round</span></code></a>(data)</p></td>
-<td><p>Compute element-wise round of data.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.rsqrt" title="tvm.relay.op.rsqrt"><code class="xref py py-obj docutils literal notranslate"><span class="pre">rsqrt</span></code></a>(data)</p></td>
-<td><p>Compute elementwise rsqrt of data.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.sequence_mask" title="tvm.relay.op.sequence_mask"><code class="xref py py-obj docutils literal notranslate"><span class="pre">sequence_mask</span></code></a>(data, valid_length[, …])</p></td>
-<td><p>Sets all elements outside the expected length of the sequence to a constant value.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.shape_of" title="tvm.relay.op.shape_of"><code class="xref py py-obj docutils literal notranslate"><span class="pre">shape_of</span></code></a>(data[, dtype])</p></td>
-<td><p>Get shape of a tensor.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.sigmoid" title="tvm.relay.op.sigmoid"><code class="xref py py-obj docutils literal notranslate"><span class="pre">sigmoid</span></code></a>(data)</p></td>
-<td><p>Compute elementwise sigmoid of data.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.sign" title="tvm.relay.op.sign"><code class="xref py py-obj docutils literal notranslate"><span class="pre">sign</span></code></a>(data)</p></td>
-<td><p>Compute element-wise absolute of data.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.sin" title="tvm.relay.op.sin"><code class="xref py py-obj docutils literal notranslate"><span class="pre">sin</span></code></a>(data)</p></td>
-<td><p>Compute elementwise sin of data.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.slice_like" title="tvm.relay.op.slice_like"><code class="xref py py-obj docutils literal notranslate"><span class="pre">slice_like</span></code></a>(data, shape_like[, axes])</p></td>
-<td><p>Slice the first input with respect to the second input.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.split" title="tvm.relay.op.split"><code class="xref py py-obj docutils literal notranslate"><span class="pre">split</span></code></a>(data, indices_or_sections[, axis])</p></td>
-<td><p>Split input tensor along axis by sections or indices.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.sqrt" title="tvm.relay.op.sqrt"><code class="xref py py-obj docutils literal notranslate"><span class="pre">sqrt</span></code></a>(data)</p></td>
-<td><p>Compute elementwise sqrt of data.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.squeeze" title="tvm.relay.op.squeeze"><code class="xref py py-obj docutils literal notranslate"><span class="pre">squeeze</span></code></a>(data[, axis])</p></td>
-<td><p>Squeeze axes in the array.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.stack" title="tvm.relay.op.stack"><code class="xref py py-obj docutils literal notranslate"><span class="pre">stack</span></code></a>(data, axis)</p></td>
-<td><p>Join a sequence of arrays along a new axis.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.std" title="tvm.relay.op.std"><code class="xref py py-obj docutils literal notranslate"><span class="pre">std</span></code></a>(data[, axis, keepdims, exclude])</p></td>
-<td><p>Computes the standard deviation of data over given axes.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.strided_set" title="tvm.relay.op.strided_set"><code class="xref py py-obj docutils literal notranslate"><span class="pre">strided_set</span></code></a>(data, v, begin, end[, strides])</p></td>
-<td><p>Strided set of an array.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.strided_slice" title="tvm.relay.op.strided_slice"><code class="xref py py-obj docutils literal notranslate"><span class="pre">strided_slice</span></code></a>(data, begin, end[, strides])</p></td>
-<td><p>Strided slice of an array.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.subtract" title="tvm.relay.op.subtract"><code class="xref py py-obj docutils literal notranslate"><span class="pre">subtract</span></code></a>(lhs, rhs)</p></td>
-<td><p>Subtraction with numpy-style broadcasting.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.sum" title="tvm.relay.op.sum"><code class="xref py py-obj docutils literal notranslate"><span class="pre">sum</span></code></a>(data[, axis, keepdims, exclude])</p></td>
-<td><p>Computes the sum of array elements over given axes.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.take" title="tvm.relay.op.take"><code class="xref py py-obj docutils literal notranslate"><span class="pre">take</span></code></a>(data, indices[, axis, mode])</p></td>
-<td><p>Take elements from an array along an axis.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.tan" title="tvm.relay.op.tan"><code class="xref py py-obj docutils literal notranslate"><span class="pre">tan</span></code></a>(data)</p></td>
-<td><p>Compute elementwise tan of data.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.tanh" title="tvm.relay.op.tanh"><code class="xref py py-obj docutils literal notranslate"><span class="pre">tanh</span></code></a>(data)</p></td>
-<td><p>Compute element-wise tanh of data.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.tile" title="tvm.relay.op.tile"><code class="xref py py-obj docutils literal notranslate"><span class="pre">tile</span></code></a>(data, reps)</p></td>
-<td><p>Repeats the whole array multiple times.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.topk" title="tvm.relay.op.topk"><code class="xref py py-obj docutils literal notranslate"><span class="pre">topk</span></code></a>(data[, k, axis, ret_type, is_ascend, dtype])</p></td>
-<td><p>Get the top k elements in an input tensor along the given axis.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.transpose" title="tvm.relay.op.transpose"><code class="xref py py-obj docutils literal notranslate"><span class="pre">transpose</span></code></a>(data[, axes])</p></td>
-<td><p>Permutes the dimensions of an array.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.trunc" title="tvm.relay.op.trunc"><code class="xref py py-obj docutils literal notranslate"><span class="pre">trunc</span></code></a>(data)</p></td>
-<td><p>Compute element-wise trunc of data.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.unravel_index" title="tvm.relay.op.unravel_index"><code class="xref py py-obj docutils literal notranslate"><span class="pre">unravel_index</span></code></a>(indices, shape)</p></td>
-<td><p>Convert a flat index or array of flat indices into a tuple of coordinate arrays.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.variance" title="tvm.relay.op.variance"><code class="xref py py-obj docutils literal notranslate"><span class="pre">variance</span></code></a>(data[, axis, keepdims, exclude])</p></td>
-<td><p>Computes the variance of data over given axes.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.where" title="tvm.relay.op.where"><code class="xref py py-obj docutils literal notranslate"><span class="pre">where</span></code></a>(condition, x, y)</p></td>
-<td><p>Selecting elements from either x or y depending on the value of the condition.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.zeros" title="tvm.relay.op.zeros"><code class="xref py py-obj docutils literal notranslate"><span class="pre">zeros</span></code></a>(shape, dtype)</p></td>
-<td><p>Fill array with zeros.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.zeros_like" title="tvm.relay.op.zeros_like"><code class="xref py py-obj docutils literal notranslate"><span class="pre">zeros_like</span></code></a>(data)</p></td>
-<td><p>Returns an array of zeros, with same type and shape as the input.</p></td>
-</tr>
-</tbody>
-</table>
-<dl class="function">
-<dt id="tvm.relay.op.get">
-<code class="sig-prename descclassname">tvm.relay.op.</code><code class="sig-name descname">get</code><span class="sig-paren">(</span><em class="sig-param">op_name</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.get" title="Permalink to this definition">¶</a></dt>
-<dd><p>Get the Op for a given name</p>
-<dl class="field-list simple">
-<dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><p><strong>op_name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a>) – The operator name</p>
-</dd>
-<dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>op</strong> – The op of the corresponding name</p>
-</dd>
-<dt class="field-odd">Return type</dt>
-<dd class="field-odd"><p><a class="reference internal" href="#tvm.relay.op.Op" title="tvm.relay.op.Op">Op</a></p>
-</dd>
-</dl>
-</dd></dl>
-
-<dl class="function">
-<dt id="tvm.relay.op.register">
-<code class="sig-prename descclassname">tvm.relay.op.</code><code class="sig-name descname">register</code><span class="sig-paren">(</span><em class="sig-param">op_name</em>, <em class="sig-param">attr_key</em>, <em class="sig-param">value=None</em>, <em class="sig-param">level=10</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.register" title="Permalink to this definition">¶</a></dt>
-<dd><p>Register an operator property of an operator.</p>
-<dl class="field-list simple">
-<dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><ul class="simple">
-<li><p><strong>op_name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a>) – The name of operator</p></li>
-<li><p><strong>attr_key</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a>) – The attribute name.</p></li>
-<li><p><strong>value</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.8)"><em>object</em></a><em>, </em><em>optional</em>) – The value to set</p></li>
-<li><p><strong>level</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em>, </em><em>optional</em>) – The priority level</p></li>
-</ul>
-</dd>
-<dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>fregister</strong> – Register function if value is not specified.</p>
-</dd>
-<dt class="field-odd">Return type</dt>
-<dd class="field-odd"><p>function</p>
-</dd>
-</dl>
-</dd></dl>
-
-<dl class="function">
-<dt id="tvm.relay.op.register_compute">
-<code class="sig-prename descclassname">tvm.relay.op.</code><code class="sig-name descname">register_compute</code><span class="sig-paren">(</span><em class="sig-param">op_name</em>, <em class="sig-param">compute=None</em>, <em class="sig-param">level=10</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.register_compute" title="Permalink to this definition">¶</a></dt>
-<dd><p>Register compute function for an op.</p>
-<dl class="field-list simple">
-<dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><ul class="simple">
-<li><p><strong>op_name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a>) – The name of the op.</p></li>
-<li><p><strong>compute</strong> (<em>function</em><em> (</em><em>attrs: Attrs</em><em>, </em><em>inputs: List</em><em>[</em><a class="reference internal" href="../te.html#tvm.te.Tensor" title="tvm.te.Tensor"><em>Tensor</em></a><em>]</em><em>, </em><em>out_type: Type</em><em>)</em>) – -&gt; List[Tensor]
-The compute function.</p></li>
-<li><p><strong>level</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – The priority level</p></li>
-</ul>
-</dd>
-</dl>
-</dd></dl>
-
-<dl class="function">
-<dt id="tvm.relay.op.register_gradient">
-<code class="sig-prename descclassname">tvm.relay.op.</code><code class="sig-name descname">register_gradient</code><span class="sig-paren">(</span><em class="sig-param">op_name</em>, <em class="sig-param">fgradient=None</em>, <em class="sig-param">level=10</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.register_gradient" title="Permalink to this definition">¶</a></dt>
-<dd><p>Register operator pattern for an op.</p>
-<dl class="field-list simple">
-<dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><ul class="simple">
-<li><p><strong>op_name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a>) – The name of the op.</p></li>
-<li><p><strong>fgradient</strong> (<em>function</em><em> (</em><em>orig_expr : Expr</em><em>, </em><em>output_grad : Expr</em><em>) </em><em>-&gt; new_expr : Expr</em>) – The gradient being used.</p></li>
-<li><p><strong>level</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – The priority level</p></li>
-</ul>
-</dd>
-</dl>
-</dd></dl>
-
-<dl class="function">
-<dt id="tvm.relay.op.register_pattern">
-<code class="sig-prename descclassname">tvm.relay.op.</code><code class="sig-name descname">register_pattern</code><span class="sig-paren">(</span><em class="sig-param">op_name</em>, <em class="sig-param">pattern</em>, <em class="sig-param">level=10</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.register_pattern" title="Permalink to this definition">¶</a></dt>
-<dd><p>Register operator pattern for an op.</p>
-<dl class="field-list simple">
-<dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><ul class="simple">
-<li><p><strong>op_name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a>) – The name of the op.</p></li>
-<li><p><strong>pattern</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – The pattern being used.</p></li>
-<li><p><strong>level</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – The priority level</p></li>
-</ul>
-</dd>
-</dl>
-</dd></dl>
-
-<dl class="function">
-<dt id="tvm.relay.op.register_alter_op_layout">
-<code class="sig-prename descclassname">tvm.relay.op.</code><code class="sig-name descname">register_alter_op_layout</code><span class="sig-paren">(</span><em class="sig-param">op_name</em>, <em class="sig-param">alter_layout=None</em>, <em class="sig-param">level=10</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.register_alter_op_layout" title="Permalink to this definition">¶</a></dt>
-<dd><p>Register alter op layout function for an op</p>
-<dl class="field-list simple">
-<dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><ul class="simple">
-<li><p><strong>op_name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a>) – The name of the operator</p></li>
-<li><p><strong>alter_layout</strong> (<em>function</em><em> (</em><em>attrs: Attrs</em><em>, </em><em>inputs: List</em><em>[</em><em>Expr</em><em>]</em><em>) </em><em>-&gt; new_expr: Expr</em>) – The function for changing the layout or replacing the operator</p></li>
-<li><p><strong>level</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – The priority level</p></li>
-</ul>
-</dd>
-</dl>
-</dd></dl>
-
-<dl class="function">
-<dt id="tvm.relay.op.register_legalize">
-<code class="sig-prename descclassname">tvm.relay.op.</code><code class="sig-name descname">register_legalize</code><span class="sig-paren">(</span><em class="sig-param">op_name</em>, <em class="sig-param">legal_op=None</em>, <em class="sig-param">level=10</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.register_legalize" title="Permalink to this definition">¶</a></dt>
-<dd><p>Register legal transformation function for an op</p>
-<dl class="field-list simple">
-<dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><ul class="simple">
-<li><p><strong>op_name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a>) – The name of the operator</p></li>
-<li><p><strong>legal_op</strong> (<em>function</em><em> (</em><em>attrs: Attrs</em><em>, </em><em>inputs: List</em><em>[</em><em>Expr</em><em>]</em><em>) </em><em>-&gt; new_expr: Expr</em>) – The function for transforming an expr to another expr.</p></li>
-<li><p><strong>level</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – The priority level</p></li>
-</ul>
-</dd>
-</dl>
-</dd></dl>
-
-<dl class="class">
-<dt id="tvm.relay.op.Op">
-<em class="property">class </em><code class="sig-prename descclassname">tvm.relay.op.</code><code class="sig-name descname">Op</code><a class="headerlink" href="#tvm.relay.op.Op" title="Permalink to this definition">¶</a></dt>
-<dd><p>A Relay operator definition.</p>
-<p><strong>Methods</strong></p>
-<table class="longtable docutils align-default">
-<colgroup>
-<col style="width: 10%" />
-<col style="width: 90%" />
-</colgroup>
-<tbody>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.Op.get_attr" title="tvm.relay.op.Op.get_attr"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_attr</span></code></a>(attr_name)</p></td>
-<td><p>Get additional attribute about the operator.</p></td>
-</tr>
-<tr class="row-even"><td><p><a class="reference internal" href="#tvm.relay.op.Op.reset_attr" title="tvm.relay.op.Op.reset_attr"><code class="xref py py-obj docutils literal notranslate"><span class="pre">reset_attr</span></code></a>(attr_name)</p></td>
-<td><p>Reset attribute about the operator.</p></td>
-</tr>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.Op.set_attr" title="tvm.relay.op.Op.set_attr"><code class="xref py py-obj docutils literal notranslate"><span class="pre">set_attr</span></code></a>(attr_name, value[, plevel])</p></td>
-<td><p>Set attribute about the operator.</p></td>
-</tr>
-</tbody>
-</table>
-<dl class="method">
-<dt id="tvm.relay.op.Op.get_attr">
-<code class="sig-name descname">get_attr</code><span class="sig-paren">(</span><em class="sig-param">attr_name</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.Op.get_attr" title="Permalink to this definition">¶</a></dt>
-<dd><p>Get additional attribute about the operator.</p>
-<dl class="field-list simple">
-<dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><p><strong>attr_name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a>) – The attribute name.</p>
-</dd>
-<dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>value</strong> – The attribute value</p>
-</dd>
-<dt class="field-odd">Return type</dt>
-<dd class="field-odd"><p><a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.8)">object</a></p>
-</dd>
-</dl>
-</dd></dl>
-
-<dl class="method">
-<dt id="tvm.relay.op.Op.set_attr">
-<code class="sig-name descname">set_attr</code><span class="sig-paren">(</span><em class="sig-param">attr_name</em>, <em class="sig-param">value</em>, <em class="sig-param">plevel=10</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.Op.set_attr" title="Permalink to this definition">¶</a></dt>
-<dd><p>Set attribute about the operator.</p>
-<dl class="field-list simple">
-<dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><ul class="simple">
-<li><p><strong>attr_name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a>) – The attribute name</p></li>
-<li><p><strong>value</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.8)"><em>object</em></a>) – The attribute value</p></li>
-<li><p><strong>plevel</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – The priority level</p></li>
-</ul>
-</dd>
-</dl>
-</dd></dl>
-
-<dl class="method">
-<dt id="tvm.relay.op.Op.reset_attr">
-<code class="sig-name descname">reset_attr</code><span class="sig-paren">(</span><em class="sig-param">attr_name</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.Op.reset_attr" title="Permalink to this definition">¶</a></dt>
-<dd><p>Reset attribute about the operator.</p>
-<dl class="field-list simple">
-<dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><p><strong>attr_name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a>) – The attribute name</p>
-</dd>
-</dl>
-</dd></dl>
-
-</dd></dl>
-
-<dl class="class">
-<dt id="tvm.relay.op.OpPattern">
-<em class="property">class </em><code class="sig-prename descclassname">tvm.relay.op.</code><code class="sig-name descname">OpPattern</code><a class="headerlink" href="#tvm.relay.op.OpPattern" title="Permalink to this definition">¶</a></dt>
-<dd><p>Operator generic patterns</p>
-<div class="admonition seealso">
-<p class="admonition-title">See also</p>
-<dl class="simple">
-<dt><code class="xref py py-class docutils literal notranslate"><span class="pre">top.tag</span></code></dt><dd><p>Contains explanation of the tag type.</p>
-</dd>
-</dl>
-</div>
-</dd></dl>
-
-<dl class="class">
-<dt id="tvm.relay.op.OpStrategy">
-<em class="property">class </em><code class="sig-prename descclassname">tvm.relay.op.</code><code class="sig-name descname">OpStrategy</code><a class="headerlink" href="#tvm.relay.op.OpStrategy" title="Permalink to this definition">¶</a></dt>
-<dd><p>Operator strategy</p>
-<p><strong>Methods</strong></p>
-<table class="longtable docutils align-default">
-<colgroup>
-<col style="width: 10%" />
-<col style="width: 90%" />
-</colgroup>
-<tbody>
-<tr class="row-odd"><td><p><a class="reference internal" href="#tvm.relay.op.OpStrategy.add_implementation" title="tvm.relay.op.OpStrategy.add_implementation"><code class="xref py py-obj docutils literal notranslate"><span class="pre">add_implementation</span></code></a>(compute, schedule[, …])</p></td>
-<td><p>Add an implementation to the strategy</p></td>
-</tr>
-</tbody>
-</table>
-<dl class="method">
-<dt id="tvm.relay.op.OpStrategy.add_implementation">
-<code class="sig-name descname">add_implementation</code><span class="sig-paren">(</span><em class="sig-param">compute</em>, <em class="sig-param">schedule</em>, <em class="sig-param">name='default'</em>, <em class="sig-param">plevel=10</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.OpStrategy.add_implementation" title="Permalink to this definition">¶</a></dt>
-<dd><p>Add an implementation to the strategy</p>
-<dl class="field-list simple">
-<dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><ul class="simple">
-<li><p><strong>compute</strong> (<em>function</em><em> (</em><em>attrs: Attrs</em><em>, </em><em>inputs: List</em><em>[</em><a class="reference internal" href="../te.html#tvm.te.Tensor" title="tvm.te.Tensor"><em>Tensor</em></a><em>]</em><em>, </em><em>out_type: Type</em><em>)</em>) – -&gt; List[Tensor]
-The compute function.</p></li>
-<li><p><strong>schedule</strong> (<em>function</em><em> (</em><em>attrs: Attrs</em><em>, </em><em>outs: List</em><em>[</em><a class="reference internal" href="../te.html#tvm.te.Tensor" title="tvm.te.Tensor"><em>Tensor</em></a><em>]</em><em>, </em><em>target:Target</em><em>) </em><em>-&gt; Schedule</em>) – The schedule function.</p></li>
-<li><p><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a>) – The name of implementation.</p></li>
-<li><p><strong>plevel</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – The priority level of implementation.</p></li>
-</ul>
-</dd>
-</dl>
-</dd></dl>
-
-</dd></dl>
-
-<dl class="function">
-<dt id="tvm.relay.op.debug">
-<code class="sig-prename descclassname">tvm.relay.op.</code><code class="sig-name descname">debug</code><span class="sig-paren">(</span><em class="sig-param">expr</em>, <em class="sig-param">debug_func=None</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.debug" title="Permalink to this definition">¶</a></dt>
-<dd><p>The main entry point to the debugger.</p>
-</dd></dl>
-
-<dl class="function">
-<dt id="tvm.relay.op.register_external_compiler">
-<code class="sig-prename descclassname">tvm.relay.op.</code><code class="sig-name descname">register_external_compiler</code><span class="sig-paren">(</span><em class="sig-param">op_name</em>, <em class="sig-param">fexternal=None</em>, <em class="sig-param">level=10</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.register_external_compiler" title="Permalink to this definition">¶</a></dt>
-<dd><p>Register the external compiler for an op.</p>
-<dl class="field-list simple">
-<dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><ul class="simple">
-<li><p><strong>op_name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.8)"><em>str</em></a>) – The name of the operator.</p></li>
-<li><p><strong>fexternal</strong> (<em>function</em><em> (</em><em>attrs: Attrs</em><em>, </em><em>args: List</em><em>[</em><em>Expr</em><em>]</em><em>, </em><em>compiler: str</em><em>)</em>) – -&gt; new_expr: Expr
-The function for wrapping a call expr with compiler_begin and
-compiler_end.</p></li>
-<li><p><strong>level</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a>) – The priority level</p></li>
-</ul>
-</dd>
-</dl>
-</dd></dl>
-
-<dl class="function">
-<dt id="tvm.relay.op.abs">
-<code class="sig-prename descclassname">tvm.relay.op.</code><code class="sig-name descname">abs</code><span class="sig-paren">(</span><em class="sig-param">data</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.abs" title="Permalink to this definition">¶</a></dt>
-<dd><p>Compute element-wise absolute of data.</p>
-<dl class="field-list simple">
-<dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><p><strong>data</strong> (<em>relay.Expr</em>) – The input data</p>
-</dd>
-<dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
-</dd>
-<dt class="field-odd">Return type</dt>
-<dd class="field-odd"><p>relay.Expr</p>
-</dd>
-</dl>
-</dd></dl>
-
-<dl class="function">
-<dt id="tvm.relay.op.add">
-<code class="sig-prename descclassname">tvm.relay.op.</code><code class="sig-name descname">add</code><span class="sig-paren">(</span><em class="sig-param">lhs</em>, <em class="sig-param">rhs</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.add" title="Permalink to this definition">¶</a></dt>
-<dd><p>Addition with numpy-style broadcasting.</p>
-<dl class="field-list simple">
-<dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><ul class="simple">
-<li><p><strong>lhs</strong> (<em>relay.Expr</em>) – The left hand side input data</p></li>
-<li><p><strong>rhs</strong> (<em>relay.Expr</em>) – The right hand side input data</p></li>
-</ul>
-</dd>
-<dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
-</dd>
-<dt class="field-odd">Return type</dt>
-<dd class="field-odd"><p>relay.Expr</p>
-</dd>
-</dl>
-<p class="rubric">Examples</p>
-<div class="highlight-python notranslate"><div class="highlight"><pre><span class="n">x</span> <span class="o">=</span> <span class="n">relay</span><span class="o">.</span><span class="n">Var</span><span class="p">(</span><span class="s2">&quot;a&quot;</span><span class="p">)</span> <span class="c1"># shape is [2, 3]</span>
-<span class="n">y</span> <span class="o">=</span> <span class="n">relay</span><span class="o">.</span><span class="n">Var</span><span class="p">(</span><span class="s2">&quot;b&quot;</span><span class="p">)</span> <span class="c1"># shape is [2, 1]</span>
-<span class="n">z</span> <span class="o">=</span> <span class="n">relay</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">)</span>  <span class="c1"># result shape is [2, 3]</span>
-</pre></div>
-</div>
-</dd></dl>
-
-<dl class="function">
-<dt id="tvm.relay.op.all">
-<code class="sig-prename descclassname">tvm.relay.op.</code><code class="sig-name descname">all</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">axis=None</em>, <em class="sig-param">keepdims=False</em>, <em class="sig-param">exclude=False</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.all" title="Permalink to this definition">¶</a></dt>
-<dd><p>Computes the logical AND of boolean array elements over given axes.</p>
-<dl class="field-list simple">
-<dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><ul class="simple">
-<li><p><strong>data</strong> (<em>relay.Expr</em>) – The input boolean tensor</p></li>
-<li><p><strong>axis</strong> (<a class="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.8)"><em>None</em></a><em> or </em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em>) – Axis or axes along which a sum is performed. The default, axis=None,
-will sum all of the elements of the input array. If axis is
-negative it counts from the last to the first axis.</p></li>
-<li><p><strong>keepdims</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a>) – If this is set to True, the axes which are reduced are left in the result as
-dimensions with size one. With this option, the result will broadcast
-correctly against the input array.</p></li>
-<li><p><strong>exclude</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a>) – If <cite>exclude</cite> is true, reduction will be performed on the axes that are
-NOT in axis instead.</p></li>
-</ul>
-</dd>
-<dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
-</dd>
-<dt class="field-odd">Return type</dt>
-<dd class="field-odd"><p>relay.Expr</p>
-</dd>
-</dl>
-<p class="rubric">Examples</p>
-<div class="highlight-python notranslate"><div class="highlight"><pre><span class="n">data</span> <span class="o">=</span> <span class="n">relay</span><span class="o">.</span><span class="n">Constant</span><span class="p">(</span><span class="n">tvm</span><span class="o">.</span><span class="n">nd</span><span class="o">.</span><span class="n">array</span><span class="p">([[[</span> <span class="bp">True</span><span class="p">,</span>  <span class="bp">True</span><span class="p">,</span>  [...]
-                                   <span class="p">[</span> <span class="bp">True</span><span class="p">,</span>  <span class="bp">True</span><span class="p">,</span>  <span class="bp">True</span><span class="p">],</span>
-                                   <span class="p">[</span><span class="bp">False</span><span class="p">,</span>  <span class="bp">True</span><span class="p">,</span> <span class="bp">False</span><span class="p">]],</span>
-                                  <span class="p">[[</span> <span class="bp">True</span><span class="p">,</span> <span class="bp">False</span><span class="p">,</span> <span class="bp">False</span><span class="p">],</span>
-                                   <span class="p">[</span> <span class="bp">True</span><span class="p">,</span>  <span class="bp">True</span><span class="p">,</span> <span class="bp">False</span><span class="p">],</span>
-                                   <span class="p">[</span><span class="bp">False</span><span class="p">,</span>  <span class="bp">True</span><span class="p">,</span>  <span class="bp">True</span><span class="p">]]]))</span>
-
-<span class="n">relay</span><span class="o">.</span><span class="n">all</span><span class="p">(</span><span class="n">data</span><span class="p">,</span> <span class="n">axis</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span>
-<span class="c1"># [[False,  True, False],</span>
-<span class="c1"># [False, False, False]]</span>
-
-<span class="n">relay</span><span class="o">.</span><span class="n">all</span><span class="p">(</span><span class="n">data</span><span class="p">,</span> <span class="n">axis</span><span class="o">=</span><span class="mi">0</span><span class="p">)</span>
-<span class="c1"># [[ True, False, False],</span>
-<span class="c1"># [ True,  True, False],</span>
-<span class="c1"># [False,  True, False]]</span>
-</pre></div>
-</div>
-</dd></dl>
-
-<dl class="function">
-<dt id="tvm.relay.op.any">
-<code class="sig-prename descclassname">tvm.relay.op.</code><code class="sig-name descname">any</code><span class="sig-paren">(</span><em class="sig-param">data</em>, <em class="sig-param">axis=None</em>, <em class="sig-param">keepdims=False</em>, <em class="sig-param">exclude=False</em><span class="sig-paren">)</span><a class="headerlink" href="#tvm.relay.op.any" title="Permalink to this definition">¶</a></dt>
-<dd><p>Computes the logical OR of boolean array elements over given axes.</p>
-<dl class="field-list simple">
-<dt class="field-odd">Parameters</dt>
-<dd class="field-odd"><ul class="simple">
-<li><p><strong>data</strong> (<em>relay.Expr</em>) – The input boolean tensor</p></li>
-<li><p><strong>axis</strong> (<a class="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.8)"><em>None</em></a><em> or </em><a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.8)"><em>int</em></a><em> or </em><em>tuple of int</em>) – Axis or axes along which a sum is performed. The default, axis=None,
-will sum all of the elements of the input array. If axis is
-negative it counts from the last to the first axis.</p></li>
-<li><p><strong>keepdims</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a>) – If this is set to True, the axes which are reduced are left in the result as
-dimensions with size one. With this option, the result will broadcast
-correctly against the input array.</p></li>
-<li><p><strong>exclude</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.8)"><em>bool</em></a>) – If <cite>exclude</cite> is true, reduction will be performed on the axes that are
-NOT in axis instead.</p></li>
-</ul>
-</dd>
-<dt class="field-even">Returns</dt>
-<dd class="field-even"><p><strong>result</strong> – The computed result.</p>
-</dd>
... 26181 lines suppressed ...