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
588cadf4
Commit
588cadf4
authored
Nov 30, 2018
by
Khalique
Browse files
formatting
parent
b263cfa0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
src/onnx/onnx.cpp
src/onnx/onnx.cpp
+18
-3
No files found.
src/onnx/onnx.cpp
View file @
588cadf4
...
@@ -185,19 +185,34 @@ struct onnx_parser
...
@@ -185,19 +185,34 @@ struct onnx_parser
instruction_ref
instruction_ref
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
)
{
{
return
std
::
accumulate
(
std
::
next
(
args
.
begin
()),
args
.
end
(),
args
.
front
(),
[
this
](
instruction_ref
a
,
instruction_ref
b
){
return
add_broadcastable_binary_op
(
a
,
b
,
op
::
add
{});});
return
std
::
accumulate
(
std
::
next
(
args
.
begin
()),
args
.
end
(),
args
.
front
(),
[
this
](
instruction_ref
a
,
instruction_ref
b
)
{
return
add_broadcastable_binary_op
(
a
,
b
,
op
::
add
{});
});
}
}
instruction_ref
instruction_ref
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
)
{
{
return
std
::
accumulate
(
std
::
next
(
args
.
begin
()),
args
.
end
(),
args
.
front
(),
[
this
](
instruction_ref
a
,
instruction_ref
b
){
return
add_broadcastable_binary_op
(
a
,
b
,
op
::
max
{});});
return
std
::
accumulate
(
std
::
next
(
args
.
begin
()),
args
.
end
(),
args
.
front
(),
[
this
](
instruction_ref
a
,
instruction_ref
b
)
{
return
add_broadcastable_binary_op
(
a
,
b
,
op
::
max
{});
});
}
}
instruction_ref
instruction_ref
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
)
{
{
return
std
::
accumulate
(
std
::
next
(
args
.
begin
()),
args
.
end
(),
args
.
front
(),
[
this
](
instruction_ref
a
,
instruction_ref
b
){
return
add_broadcastable_binary_op
(
a
,
b
,
op
::
min
{});});
return
std
::
accumulate
(
std
::
next
(
args
.
begin
()),
args
.
end
(),
args
.
front
(),
[
this
](
instruction_ref
a
,
instruction_ref
b
)
{
return
add_broadcastable_binary_op
(
a
,
b
,
op
::
min
{});
});
}
}
instruction_ref
instruction_ref
...
...
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