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
b4517d7d
Commit
b4517d7d
authored
Feb 25, 2019
by
Shucai Xiao
Browse files
clang format
parent
d05cc61a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
src/targets/gpu/logsoftmax.cpp
src/targets/gpu/logsoftmax.cpp
+6
-7
No files found.
src/targets/gpu/logsoftmax.cpp
View file @
b4517d7d
...
@@ -25,10 +25,9 @@ argument miopen_logsoftmax::compute(context& ctx,
...
@@ -25,10 +25,9 @@ argument miopen_logsoftmax::compute(context& ctx,
// and a(axis)....a(n)
// and a(axis)....a(n)
auto
lens
=
output_shape
.
lens
();
auto
lens
=
output_shape
.
lens
();
std
::
size_t
batch_size
=
std
::
accumulate
(
std
::
size_t
batch_size
=
std
::
accumulate
(
lens
.
begin
(),
lens
.
begin
()
+
op
.
axis
,
lens
.
begin
(),
lens
.
begin
()
+
op
.
axis
,
std
::
size_t
{
1
},
std
::
multiplies
<
std
::
size_t
>
());
std
::
size_t
{
1
},
std
::
multiplies
<
std
::
size_t
>
());
std
::
size_t
n_dims
=
std
::
accumulate
(
std
::
size_t
n_dims
=
std
::
accumulate
(
lens
.
begin
()
+
op
.
axis
,
lens
.
begin
()
+
op
.
axis
,
lens
.
end
(),
std
::
size_t
{
1
},
std
::
multiplies
<
std
::
size_t
>
());
lens
.
end
(),
std
::
size_t
{
1
},
std
::
multiplies
<
std
::
size_t
>
());
migraphx
::
shape
comp_shape
{
output_shape
.
type
(),
{
batch_size
,
n_dims
,
1
,
1
}};
migraphx
::
shape
comp_shape
{
output_shape
.
type
(),
{
batch_size
,
n_dims
,
1
,
1
}};
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
);
...
...
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