Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
f611a1b0
Commit
f611a1b0
authored
Jun 19, 2018
by
Paul
Browse files
Fix bug in pooling shape
parent
d013de49
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/include/rtg/operators.hpp
src/include/rtg/operators.hpp
+4
-4
No files found.
src/include/rtg/operators.hpp
View file @
f611a1b0
...
@@ -180,8 +180,8 @@ struct pooling
...
@@ -180,8 +180,8 @@ struct pooling
const
shape
&
input
=
inputs
.
at
(
0
);
const
shape
&
input
=
inputs
.
at
(
0
);
auto
t
=
input
.
type
();
auto
t
=
input
.
type
();
assert
(
lengths
[
0
]
<
(
input
.
lens
()[
3
]
+
2
*
padding
[
0
]));
assert
(
lengths
[
0
]
<
(
input
.
lens
()[
2
]
+
2
*
padding
[
0
]));
assert
(
lengths
[
1
]
<
(
input
.
lens
()[
4
]
+
2
*
padding
[
1
]));
assert
(
lengths
[
1
]
<
(
input
.
lens
()[
3
]
+
2
*
padding
[
1
]));
return
{
t
,
return
{
t
,
{
{
...
@@ -189,12 +189,12 @@ struct pooling
...
@@ -189,12 +189,12 @@ struct pooling
input
.
lens
()[
1
],
input
.
lens
()[
1
],
std
::
size_t
(
std
::
max
<
std
::
ptrdiff_t
>
(
std
::
size_t
(
std
::
max
<
std
::
ptrdiff_t
>
(
1
,
1
,
std
::
ceil
((
input
.
lens
()[
3
]
+
2
*
padding
[
0
]
-
lengths
[
0
])
/
std
::
ceil
((
input
.
lens
()[
2
]
+
2
*
padding
[
0
]
-
lengths
[
0
])
/
static_cast
<
float
>
(
stride
[
0
]))
+
static_cast
<
float
>
(
stride
[
0
]))
+
1
)),
1
)),
std
::
size_t
(
std
::
max
<
std
::
ptrdiff_t
>
(
std
::
size_t
(
std
::
max
<
std
::
ptrdiff_t
>
(
1
,
1
,
std
::
ceil
((
input
.
lens
()[
4
]
+
2
*
padding
[
1
]
-
lengths
[
1
])
/
std
::
ceil
((
input
.
lens
()[
3
]
+
2
*
padding
[
1
]
-
lengths
[
1
])
/
static_cast
<
float
>
(
stride
[
1
]))
+
static_cast
<
float
>
(
stride
[
1
]))
+
1
)),
1
)),
}};
}};
...
...
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