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
84f495a2
Commit
84f495a2
authored
Feb 26, 2019
by
Shucai Xiao
Browse files
clang format
parent
201c8182
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/targets/cpu/lowering.cpp
src/targets/cpu/lowering.cpp
+4
-4
No files found.
src/targets/cpu/lowering.cpp
View file @
84f495a2
...
@@ -622,7 +622,7 @@ struct cpu_logsoftmax
...
@@ -622,7 +622,7 @@ struct cpu_logsoftmax
template
<
typename
T
>
template
<
typename
T
>
std
::
size_t
compute_batch_index
(
const
T
&
idx
,
shape
&
batch_shape
,
int
axis
)
const
std
::
size_t
compute_batch_index
(
const
T
&
idx
,
shape
&
batch_shape
,
int
axis
)
const
{
{
if
(
axis
==
0
)
if
(
axis
==
0
)
{
{
return
0
;
return
0
;
}
}
...
@@ -638,7 +638,7 @@ struct cpu_logsoftmax
...
@@ -638,7 +638,7 @@ struct cpu_logsoftmax
argument
result
{
output_shape
};
argument
result
{
output_shape
};
auto
lens
=
output_shape
.
lens
();
auto
lens
=
output_shape
.
lens
();
std
::
vector
<
std
::
size_t
>
batch_lens
{};
std
::
vector
<
std
::
size_t
>
batch_lens
{};
if
(
op
.
axis
==
0
)
if
(
op
.
axis
==
0
)
{
{
batch_lens
.
push_back
(
1
);
batch_lens
.
push_back
(
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