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
15f23855
Commit
15f23855
authored
Nov 27, 2018
by
Khalique
Browse files
formatting
parent
21ec113b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
25 deletions
+24
-25
src/onnx/onnx.cpp
src/onnx/onnx.cpp
+24
-24
src/targets/cpu/lowering.cpp
src/targets/cpu/lowering.cpp
+0
-1
No files found.
src/onnx/onnx.cpp
View file @
15f23855
...
@@ -185,9 +185,9 @@ struct onnx_parser
...
@@ -185,9 +185,9 @@ struct onnx_parser
parse_sum
(
const
std
::
string
&
,
const
attribute_map
&
,
std
::
vector
<
instruction_ref
>
args
)
parse_sum
(
const
std
::
string
&
,
const
attribute_map
&
,
std
::
vector
<
instruction_ref
>
args
)
{
{
auto
curr_sum
=
args
.
front
();
auto
curr_sum
=
args
.
front
();
if
(
args
.
size
()
>
1
)
if
(
args
.
size
()
>
1
)
{
{
for
(
auto
it
=
std
::
next
(
args
.
begin
());
it
!=
args
.
end
();
++
it
)
for
(
auto
it
=
std
::
next
(
args
.
begin
());
it
!=
args
.
end
();
++
it
)
{
{
curr_sum
=
add_broadcastable_binary_op
(
curr_sum
,
*
it
,
op
::
add
{});
curr_sum
=
add_broadcastable_binary_op
(
curr_sum
,
*
it
,
op
::
add
{});
}
}
...
@@ -199,9 +199,9 @@ struct onnx_parser
...
@@ -199,9 +199,9 @@ struct onnx_parser
parse_max
(
const
std
::
string
&
,
const
attribute_map
&
,
std
::
vector
<
instruction_ref
>
args
)
parse_max
(
const
std
::
string
&
,
const
attribute_map
&
,
std
::
vector
<
instruction_ref
>
args
)
{
{
auto
curr_max
=
args
.
front
();
auto
curr_max
=
args
.
front
();
if
(
args
.
size
()
>
1
)
if
(
args
.
size
()
>
1
)
{
{
for
(
auto
it
=
std
::
next
(
args
.
begin
());
it
!=
args
.
end
();
++
it
)
for
(
auto
it
=
std
::
next
(
args
.
begin
());
it
!=
args
.
end
();
++
it
)
{
{
curr_max
=
add_broadcastable_binary_op
(
curr_max
,
*
it
,
op
::
max
{});
curr_max
=
add_broadcastable_binary_op
(
curr_max
,
*
it
,
op
::
max
{});
}
}
...
@@ -213,9 +213,9 @@ struct onnx_parser
...
@@ -213,9 +213,9 @@ struct onnx_parser
parse_min
(
const
std
::
string
&
,
const
attribute_map
&
,
std
::
vector
<
instruction_ref
>
args
)
parse_min
(
const
std
::
string
&
,
const
attribute_map
&
,
std
::
vector
<
instruction_ref
>
args
)
{
{
auto
curr_min
=
args
.
front
();
auto
curr_min
=
args
.
front
();
if
(
args
.
size
()
>
1
)
if
(
args
.
size
()
>
1
)
{
{
for
(
auto
it
=
std
::
next
(
args
.
begin
());
it
!=
args
.
end
();
++
it
)
for
(
auto
it
=
std
::
next
(
args
.
begin
());
it
!=
args
.
end
();
++
it
)
{
{
curr_min
=
add_broadcastable_binary_op
(
curr_min
,
*
it
,
op
::
min
{});
curr_min
=
add_broadcastable_binary_op
(
curr_min
,
*
it
,
op
::
min
{});
}
}
...
...
src/targets/cpu/lowering.cpp
View file @
15f23855
...
@@ -582,7 +582,6 @@ struct min_op
...
@@ -582,7 +582,6 @@ struct min_op
}
}
};
};
template
<
typename
Op
>
template
<
typename
Op
>
struct
cpu_binary
struct
cpu_binary
{
{
...
...
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