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
1e8bf889
Commit
1e8bf889
authored
Feb 25, 2019
by
Shucai Xiao
Browse files
additional change for the logsoftmax operator.
parent
07214d76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
src/targets/cpu/lowering.cpp
src/targets/cpu/lowering.cpp
+0
-2
No files found.
src/targets/cpu/lowering.cpp
View file @
1e8bf889
...
@@ -632,8 +632,6 @@ struct cpu_logsoftmax
...
@@ -632,8 +632,6 @@ struct cpu_logsoftmax
auto
lens
=
output_shape
.
lens
();
auto
lens
=
output_shape
.
lens
();
std
::
vector
<
std
::
size_t
>
batch_lens
(
lens
.
begin
(),
lens
.
begin
()
+
op
.
axis
);
std
::
vector
<
std
::
size_t
>
batch_lens
(
lens
.
begin
(),
lens
.
begin
()
+
op
.
axis
);
shape
batch_shape
{
migraphx
::
shape
::
uint32_type
,
batch_lens
};
shape
batch_shape
{
migraphx
::
shape
::
uint32_type
,
batch_lens
};
// use float for now, need to change later
visit_all
(
result
,
args
[
0
])([
&
](
auto
output
,
auto
input
)
{
visit_all
(
result
,
args
[
0
])([
&
](
auto
output
,
auto
input
)
{
using
value_type
=
typename
decltype
(
input
)
::
value_type
;
using
value_type
=
typename
decltype
(
input
)
::
value_type
;
std
::
vector
<
value_type
>
batch_max
(
batch_shape
.
elements
(),
std
::
vector
<
value_type
>
batch_max
(
batch_shape
.
elements
(),
...
...
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