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
151f550b
Commit
151f550b
authored
Jan 03, 2019
by
Haichen Shen
Committed by
Tianqi Chen
Jan 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos (#2367)
parent
f3cf8f2c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
python/tvm/relay/op/op.py
+1
-1
src/relay/backend/compile_engine.cc
+3
-3
No files found.
python/tvm/relay/op/op.py
View file @
151f550b
...
...
@@ -92,7 +92,7 @@ class OpPattern(object):
BROADCAST
=
1
# Injective mapping
INJECTIVE
=
2
# Comunication
# Com
m
unication
COMM_REDUCE
=
3
# Complex op, can still fuse ewise into it
OUT_ELEMWISE_FUSABLE
=
4
...
...
src/relay/backend/compile_engine.cc
View file @
151f550b
...
...
@@ -291,7 +291,7 @@ class CompileEngineImpl : public CompileEngineNode {
auto
spair
=
CreateSchedule
(
key
->
source_func
,
key
->
target
);
auto
cache_node
=
make_node
<
CachedFuncNode
>
(
*
(
spair
.
second
.
operator
->
()));
cache_node
->
func_name
=
GetUniqeName
(
cache_node
->
func_name
);
cache_node
->
func_name
=
GetUniq
u
eName
(
cache_node
->
func_name
);
// NOTE: array will copy on write.
Array
<
Tensor
>
all_args
=
cache_node
->
inputs
;
for
(
Tensor
arg
:
cache_node
->
outputs
)
{
...
...
@@ -302,7 +302,7 @@ class CompileEngineImpl : public CompileEngineNode {
cache_node
->
funcs
=
(
*
f
)(
spair
.
first
,
all_args
,
cache_node
->
func_name
,
key
->
source_func
);
}
else
{
LOG
(
FATAL
)
<<
"relay.backend.
_
lower is not registred"
;
LOG
(
FATAL
)
<<
"relay.backend.lower is not registred"
;
}
value
->
cached_func
=
CachedFunc
(
cache_node
);
return
value
;
...
...
@@ -312,7 +312,7 @@ class CompileEngineImpl : public CompileEngineNode {
* \param name The orginal name.
* \return Updated name which is unique.
*/
std
::
string
GetUniqeName
(
std
::
string
name
)
{
std
::
string
GetUniq
u
eName
(
std
::
string
name
)
{
for
(
size_t
i
=
0
;
i
<
name
.
length
();
++
i
)
{
if
(
name
[
i
]
==
'.'
)
name
[
i
]
=
'_'
;
}
...
...
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