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
d976c04b
Commit
d976c04b
authored
Aug 07, 2018
by
wsttiger
Browse files
MIOpen BatchNorm implementation is building. Still need to add tests
parent
d14dd144
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/targets/gpu/lowering.cpp
src/targets/gpu/lowering.cpp
+4
-3
No files found.
src/targets/gpu/lowering.cpp
View file @
d976c04b
...
@@ -28,10 +28,11 @@ struct miopen_batch_norm_inference
...
@@ -28,10 +28,11 @@ struct miopen_batch_norm_inference
{
inputs
.
at
(
0
),
inputs
.
at
(
1
),
inputs
.
at
(
2
),
inputs
.
at
(
3
),
inputs
.
at
(
4
)});
{
inputs
.
at
(
0
),
inputs
.
at
(
1
),
inputs
.
at
(
2
),
inputs
.
at
(
3
),
inputs
.
at
(
4
)});
}
}
argument
compute
(
context
&
,
shape
output_shape
,
std
::
vector
<
argument
>
args
)
const
argument
compute
(
context
&
ctx
,
shape
output_shape
,
std
::
vector
<
argument
>
args
)
const
{
{
auto
x_desc
=
make_tensor
(
args
[
0
].
get_shape
());
auto
x_desc
=
make_tensor
(
args
[
0
].
get_shape
());
auto
y_desc
=
make_tensor
(
output_shape
);
auto
y_desc
=
make_tensor
(
output_shape
);
auto
bn_desc
=
make_tensor
(
args
[
3
].
get_shape
());
float
alpha
=
1.0
,
beta
=
0.0
f
;
float
alpha
=
1.0
,
beta
=
0.0
f
;
...
@@ -46,12 +47,12 @@ struct miopen_batch_norm_inference
...
@@ -46,12 +47,12 @@ struct miopen_batch_norm_inference
args
[
0
].
implicit
(),
args
[
0
].
implicit
(),
y_desc
.
get
(),
y_desc
.
get
(),
args
[
5
].
implicit
(),
args
[
5
].
implicit
(),
bn_desc
,
bn_desc
.
get
()
,
args
[
3
].
implicit
(),
args
[
3
].
implicit
(),
args
[
4
].
implicit
(),
args
[
4
].
implicit
(),
args
[
1
].
implicit
(),
args
[
1
].
implicit
(),
args
[
2
].
implicit
(),
args
[
2
].
implicit
(),
op
.
mode
.
epsilon
);
op
.
epsilon
);
return
args
[
5
];
return
args
[
5
];
}
}
...
...
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