Skip to content

Commit

Permalink
[FIX,TUTORIALS] Import tvm.testing in tutorials that use it (#7248)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkonolige authored Jan 11, 2021
1 parent 77e4fd1 commit 72c9a51
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions tutorials/autotvm/tune_conv2d_cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
import tvm
from tvm import te, topi, testing
from tvm.topi.testing import conv2d_nchw_python
import tvm.testing

from tvm import autotvm

Expand Down
3 changes: 2 additions & 1 deletion tutorials/autotvm/tune_simple_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@

import numpy as np
import tvm
from tvm import te, testing
from tvm import te
import tvm.testing

# the module is called `autotvm`
from tvm import autotvm
Expand Down
1 change: 1 addition & 0 deletions tutorials/frontend/using_external_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
from tvm.contrib import graph_runtime as runtime
from tvm import relay
from tvm.relay import testing
import tvm.testing

######################################################################
# Create a simple network
Expand Down
1 change: 1 addition & 0 deletions tutorials/get_started/relay_quick_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
import tvm
from tvm import te
from tvm.contrib import graph_runtime
import tvm.testing

######################################################################
# Define Neural Network in Relay
Expand Down
1 change: 1 addition & 0 deletions tutorials/language/extern_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
from tvm import te
import numpy as np
from tvm.contrib import cblas
import tvm.testing

if not tvm.get_global_func("tvm.contrib.cblas.matmul", allow_missing=True):
raise Exception("Not compiled with cblas support; can't build this tutorial")
Expand Down
1 change: 1 addition & 0 deletions tutorials/language/tensorize.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

import tvm
from tvm import te
import tvm.testing
import numpy as np

######################################################################
Expand Down
1 change: 1 addition & 0 deletions tutorials/optimize/opt_matmul_auto_tensorcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@

from tvm import autotvm
from tvm.contrib import nvcc
import tvm.testing


def matmul_nn(A, B, L, dtype="float16", layout="NN"):
Expand Down

0 comments on commit 72c9a51

Please sign in to comment.