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
af6b6016
Commit
af6b6016
authored
May 23, 2018
by
MORITA Kazutaka
Committed by
Tianqi Chen
May 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
axis bounds checking in split (#1178)
* Add kazum to contributers * Add axis bounds checking in split
parent
9aae7274
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
CONTRIBUTORS.md
+1
-0
topi/include/topi/transform.h
+2
-0
No files found.
CONTRIBUTORS.md
View file @
af6b6016
...
...
@@ -63,3 +63,4 @@ List of Contributors
-
[
Cody Hao Yu
](
https://github.com/comaniac
)
-
[
Chris Nuernberger
](
https://github.com/cnuernber
)
-
[
Tatsuya Nishiyama
](
https://github.com/nishi-t
)
-
[
Kazutaka Morita
](
https://github.com/kazum
)
topi/include/topi/transform.h
View file @
af6b6016
...
...
@@ -310,6 +310,8 @@ inline Array<Tensor> split(const Tensor& x,
if
(
axis
<
0
)
{
axis
+=
static_cast
<
int
>
(
x
->
shape
.
size
());
}
CHECK_LT
(
axis
,
x
->
shape
.
size
())
<<
"axis out of bounds"
;
auto
src_axis_size
=
static_cast
<
int
>
(
GetConstInt
(
x
->
shape
[
axis
]));
auto
split_indices_val
=
GetConstIntValues
(
split_indices
,
"split_indices"
);
...
...
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