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/09/12 01:28:04 UTC

[incubator-tvm] branch master updated: [FIX, TESTING] Add tvm.testing to the docs (#6458)

This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tvm.git


The following commit(s) were added to refs/heads/master by this push:
     new 03ececd  [FIX,TESTING] Add tvm.testing to the docs (#6458)
03ececd is described below

commit 03ececdbef212d65f71f259f861e8eddc652948c
Author: Tristan Konolige <tr...@gmail.com>
AuthorDate: Fri Sep 11 18:27:49 2020 -0700

    [FIX,TESTING] Add tvm.testing to the docs (#6458)
---
 docs/conf.py                   | 1 +
 docs/contribute/code_guide.rst | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/docs/conf.py b/docs/conf.py
index 18d8960..ca0bc9b 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -55,6 +55,7 @@ os.environ["TVM_BUILD_DOC"] = "1"
 import tvm
 from tvm import topi
 from tvm import te
+from tvm import testing
 
 version = tvm.__version__
 release = tvm.__version__
diff --git a/docs/contribute/code_guide.rst b/docs/contribute/code_guide.rst
index c0b022b..d790ce6 100644
--- a/docs/contribute/code_guide.rst
+++ b/docs/contribute/code_guide.rst
@@ -94,7 +94,7 @@ If you want your test to run over a variety of targets, use the :py:func:`tvm.te
   def test_mytest(target, ctx):
     ...
 
-will run `test_mytest` with `target="llvm"`, `target="cuda"`, and few others. This also ensures that your test is run on the correct hardware by the CI. If you only want to test against a couple targets use `@tvm.testing.parametrize_targets("target_1", "target_2")`. If you want to test on a single target, use the associated decorator from :py:func:`tvm.testing`. For example, CUDA tests use the `@tvm.testing.requires_cuda` decorator.
+will run ``test_mytest`` with ``target="llvm"``, ``target="cuda"``, and few others. This also ensures that your test is run on the correct hardware by the CI. If you only want to test against a couple targets use ``@tvm.testing.parametrize_targets("target_1", "target_2")``. If you want to test on a single target, use the associated decorator from :py:func:`tvm.testing`. For example, CUDA tests use the ``@tvm.testing.requires_cuda`` decorator.
 
 Handle Integer Constant Expression
 ----------------------------------