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
bd244ebd
Commit
bd244ebd
authored
Jun 08, 2019
by
Ligeng Zhu
Committed by
Tianqi Chen
Jun 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the behavior of data nullptr check of pooling layer same as others. (#3322)
parent
4cee98ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
3rdparty/dmlc-core
+1
-1
src/relay/op/nn/pooling.cc
+2
-1
No files found.
dmlc-core
@
3943914e
Subproject commit
fbe142b267a8edd1f1188fa2140d88f7ae308661
Subproject commit
3943914eed66470bd010df581e29e4dca4f7df6f
src/relay/op/nn/pooling.cc
View file @
bd244ebd
...
...
@@ -70,7 +70,8 @@ bool Pool2DRel(const Array<Type>& types,
CHECK_EQ
(
types
.
size
(),
2
);
const
auto
*
data
=
types
[
0
].
as
<
TensorTypeNode
>
();
CHECK
(
data
!=
nullptr
);
if
(
data
==
nullptr
)
return
false
;
const
auto
dshape
=
data
->
shape
;
CHECK_GE
(
dshape
.
size
(),
2U
)
<<
"Pool2D only support input >= 2-D: input must have height and width"
;
...
...
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