Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
2cf3fd02
Commit
2cf3fd02
authored
Jul 19, 2018
by
Haibin Lin
Committed by
Tianqi Chen
Jul 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor doc fixes (#1458)
parent
bea51bb6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
tutorials/autotvm/tune_simple_template.py
+1
-1
tutorials/cross_compilation_and_rpc.py
+5
-5
tutorials/language/tuple_inputs.py
+1
-1
No files found.
tutorials/autotvm/tune_simple_template.py
View file @
2cf3fd02
...
@@ -28,7 +28,7 @@ from tvm import autotvm
...
@@ -28,7 +28,7 @@ from tvm import autotvm
# tunable schedule template. You can regard the process of search space definition
# tunable schedule template. You can regard the process of search space definition
# as the parametrization of our exiting schedule code.
# as the parametrization of our exiting schedule code.
#
#
# To begin with, here is how we implement a blocked matrix multiplication in tvm
# To begin with, here is how we implement a blocked matrix multiplication in tvm
.
# Matmul V0: Constant tiling factor
# Matmul V0: Constant tiling factor
def
matmul_v0
(
N
,
L
,
M
,
dtype
):
def
matmul_v0
(
N
,
L
,
M
,
dtype
):
...
...
tutorials/cross_compilation_and_rpc.py
View file @
2cf3fd02
...
@@ -60,7 +60,7 @@ for example.
...
@@ -60,7 +60,7 @@ for example.
#
#
# make runtime
# make runtime
#
#
# After
success of buildind runtime, we need
set environment varibles
# After
building runtime successfully, we need to
set environment varibles
# in :code:`~/.bashrc` file of yourself account or :code:`/etc/profile`
# in :code:`~/.bashrc` file of yourself account or :code:`/etc/profile`
# of system enviroment variables. Assuming your TVM directory is in
# of system enviroment variables. Assuming your TVM directory is in
# :code:`~/tvm` and set environment variables below your account.
# :code:`~/tvm` and set environment variables below your account.
...
@@ -69,7 +69,7 @@ for example.
...
@@ -69,7 +69,7 @@ for example.
#
#
# vi ~/.bashrc
# vi ~/.bashrc
#
#
# We need edit :code:`~/.bashrc` using :code:`vi ~/.bashrc` and add
# We need
to
edit :code:`~/.bashrc` using :code:`vi ~/.bashrc` and add
# lines below (Assuming your TVM directory is in :code:`~/tvm`):
# lines below (Assuming your TVM directory is in :code:`~/tvm`):
#
#
# .. code-block:: bash
# .. code-block:: bash
...
@@ -92,8 +92,8 @@ for example.
...
@@ -92,8 +92,8 @@ for example.
#
#
# python -m tvm.exec.rpc_server --host 0.0.0.0 --port=9090
# python -m tvm.exec.rpc_server --host 0.0.0.0 --port=9090
#
#
# After executing
command above, if you see these lines below, it'
s
# After executing
the command above, if you see these lines below, it mean
s
#
successful to start RPC server
on your device.
#
the RPC server started successfully
on your device.
#
#
# .. code-block:: bash
# .. code-block:: bash
#
#
...
@@ -215,7 +215,7 @@ np.testing.assert_equal(b.asnumpy(), a.asnumpy() + 1)
...
@@ -215,7 +215,7 @@ np.testing.assert_equal(b.asnumpy(), a.asnumpy() + 1)
######################################################################
######################################################################
# When you want to evaluate the performance of the kernel on the remote
# When you want to evaluate the performance of the kernel on the remote
# device, it is important to avoid overhead of remote function call.
# device, it is important to avoid overhead of remote function call
s
.
# :code:`time_evaluator` will returns a remote function that runs the
# :code:`time_evaluator` will returns a remote function that runs the
# function over number times, measures the cost per run on the remote
# function over number times, measures the cost per run on the remote
# device and returns the measured cost.
# device and returns the measured cost.
...
...
tutorials/language/tuple_inputs.py
View file @
2cf3fd02
...
@@ -18,7 +18,7 @@ import numpy as np
...
@@ -18,7 +18,7 @@ import numpy as np
# Describe Batchwise Computation
# Describe Batchwise Computation
# ------------------------------
# ------------------------------
# For operators which have the same shape, we can put them together as
# For operators which have the same shape, we can put them together as
# the inputs of :any:`tvm.compute`, if we w
ish they can
be scheduled
# the inputs of :any:`tvm.compute`, if we w
ant them to
be scheduled
# together in the next schedule procedure.
# together in the next schedule procedure.
#
#
n
=
tvm
.
var
(
"n"
)
n
=
tvm
.
var
(
"n"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment