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
a83e1e1e
Commit
a83e1e1e
authored
Jun 23, 2018
by
Jian Weng
Committed by
Tianqi Chen
Jun 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import hybrid module in __init__.py (#1323)
parent
db4be63c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
python/tvm/__init__.py
+1
-0
python/tvm/hybrid/parser.py
+1
-1
No files found.
python/tvm/__init__.py
View file @
a83e1e1e
...
@@ -16,6 +16,7 @@ from . import node
...
@@ -16,6 +16,7 @@ from . import node
from
.
import
ir_builder
from
.
import
ir_builder
from
.
import
target
from
.
import
target
from
.
import
generic
from
.
import
generic
from
.
import
hybrid
from
.
import
ndarray
as
nd
from
.
import
ndarray
as
nd
from
.ndarray
import
context
,
cpu
,
gpu
,
opencl
,
cl
,
vulkan
,
metal
,
mtl
from
.ndarray
import
context
,
cpu
,
gpu
,
opencl
,
cl
,
vulkan
,
metal
,
mtl
...
...
python/tvm/hybrid/parser.py
View file @
a83e1e1e
...
@@ -35,7 +35,7 @@ class HybridParser(ast.NodeVisitor):
...
@@ -35,7 +35,7 @@ class HybridParser(ast.NodeVisitor):
ast
.
Add
:
operator
.
add
,
ast
.
Add
:
operator
.
add
,
ast
.
Sub
:
operator
.
sub
,
ast
.
Sub
:
operator
.
sub
,
ast
.
Mult
:
operator
.
mul
,
ast
.
Mult
:
operator
.
mul
,
ast
.
Div
:
_make
.
D
iv
,
ast
.
Div
:
operator
.
div
if
sys
.
version_info
[
0
]
==
2
else
operator
.
trued
iv
,
ast
.
Mod
:
operator
.
mod
,
ast
.
Mod
:
operator
.
mod
,
ast
.
BitOr
:
operator
.
or_
,
ast
.
BitOr
:
operator
.
or_
,
ast
.
BitAnd
:
operator
.
and_
,
ast
.
BitAnd
:
operator
.
and_
,
...
...
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