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
ed8605b9
Commit
ed8605b9
authored
May 03, 2019
by
Paul
Browse files
Initialize variables
parent
354b04bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
src/targets/gpu/include/migraphx/gpu/miopen.hpp
src/targets/gpu/include/migraphx/gpu/miopen.hpp
+9
-10
No files found.
src/targets/gpu/include/migraphx/gpu/miopen.hpp
View file @
ed8605b9
...
@@ -165,10 +165,10 @@ inline fused_operator_args make_fused_args()
...
@@ -165,10 +165,10 @@ inline fused_operator_args make_fused_args()
template
<
class
F
>
template
<
class
F
>
auto
reflect
(
miopenActivationDescriptor_t
ad
,
F
f
)
auto
reflect
(
miopenActivationDescriptor_t
ad
,
F
f
)
{
{
miopenActivationMode_t
mode
;
miopenActivationMode_t
mode
=
miopenActivationPASTHRU
;
double
alpha
;
double
alpha
=
0.0
;
double
beta
;
double
beta
=
0.0
;
double
gamma
;
double
gamma
=
0.0
;
miopenGetActivationDescriptor
(
ad
,
&
mode
,
&
alpha
,
&
beta
,
&
gamma
);
miopenGetActivationDescriptor
(
ad
,
&
mode
,
&
alpha
,
&
beta
,
&
gamma
);
return
pack
(
f
(
mode
,
"mode"
),
f
(
alpha
,
"alpha"
),
f
(
beta
,
"beta"
),
f
(
gamma
,
"gamma"
));
return
pack
(
f
(
mode
,
"mode"
),
f
(
alpha
,
"alpha"
),
f
(
beta
,
"beta"
),
f
(
gamma
,
"gamma"
));
}
}
...
@@ -176,12 +176,11 @@ auto reflect(miopenActivationDescriptor_t ad, F f)
...
@@ -176,12 +176,11 @@ auto reflect(miopenActivationDescriptor_t ad, F f)
template
<
class
F
>
template
<
class
F
>
auto
reflect
(
miopenLRNDescriptor_t
lrnd
,
F
f
)
auto
reflect
(
miopenLRNDescriptor_t
lrnd
,
F
f
)
{
{
miopenLRNMode_t
mode
;
miopenLRNMode_t
mode
=
miopenLRNWithinChannel
;
;
unsigned
int
n
=
0
;
unsigned
int
n
;
double
alpha
=
0.0
;
double
alpha
;
double
beta
=
0.0
;
double
beta
;
double
k
=
0.0
;
double
k
;
miopenGetLRNDescriptor
(
lrnd
,
&
mode
,
&
n
,
&
alpha
,
&
beta
,
&
k
);
miopenGetLRNDescriptor
(
lrnd
,
&
mode
,
&
n
,
&
alpha
,
&
beta
,
&
k
);
return
pack
(
f
(
mode
,
"mode"
),
f
(
n
,
"n"
),
f
(
alpha
,
"alpha"
),
f
(
beta
,
"beta"
),
f
(
k
,
"k"
));
return
pack
(
f
(
mode
,
"mode"
),
f
(
n
,
"n"
),
f
(
alpha
,
"alpha"
),
f
(
beta
,
"beta"
),
f
(
k
,
"k"
));
}
}
...
...
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