Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
45665c93
Commit
45665c93
authored
Feb 04, 2019
by
Khalique
Browse files
added reflect() for lrn
parent
dbcbaeeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
src/include/migraphx/operators.hpp
src/include/migraphx/operators.hpp
+7
-5
No files found.
src/include/migraphx/operators.hpp
View file @
45665c93
...
...
@@ -68,17 +68,19 @@ struct lrn
int
size
=
1
;
std
::
string
name
()
const
{
return
"lrn"
;
}
template
<
class
Self
,
class
F
>
static
auto
reflect
(
Self
&
self
,
F
f
)
{
return
pack
(
f
(
self
.
alpha
,
"alpha"
),
f
(
self
.
beta
,
"beta"
),
f
(
self
.
bias
,
"bias"
),
f
(
self
.
size
,
"size"
));
}
shape
compute_shape
(
std
::
vector
<
shape
>
inputs
)
const
{
check_shapes
{
inputs
,
*
this
}.
has
(
1
);
return
inputs
.
front
();
}
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
lrn
&
op
)
{
os
<<
op
.
name
()
<<
":"
<<
op
.
alpha
<<
":"
<<
op
.
beta
<<
":"
<<
op
.
bias
<<
":"
<<
op
.
size
;
return
os
;
}
};
struct
convolution
...
...
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