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
46f0b67c
Commit
46f0b67c
authored
Mar 20, 2019
by
雾雨魔理沙
Committed by
Yizhi Liu
Mar 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix error reporting for missing axis (#2835)
* Fix error reporting for missing axis * Update data_layout.cc
parent
db5bfa3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
src/lang/data_layout.cc
+2
-1
No files found.
src/lang/data_layout.cc
View file @
46f0b67c
...
...
@@ -5,6 +5,7 @@
*/
#include <tvm/data_layout.h>
#include <tvm/ir_pass.h>
#include <cctype>
namespace
tvm
{
...
...
@@ -115,7 +116,7 @@ Layout::Layout(const std::string& name) { // NOLINT(*)
char
axis
=
v
->
var
.
get
()
->
name_hint
[
0
];
if
(
axis
>=
'a'
&&
axis
<=
'z'
)
{
CHECK
(
exist_axis
[
axis
-
'a'
+
'A'
])
<<
"Invalid layout "
<<
name
<<
": missing axis "
<<
axis
-
'a'
+
'A'
;
<<
std
::
toupper
(
axis
)
;
}
}
}
...
...
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