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
5e8db473
Commit
5e8db473
authored
Dec 03, 2018
by
Khalique
Browse files
formatting
parent
60f75082
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
src/onnx/onnx.cpp
src/onnx/onnx.cpp
+6
-7
No files found.
src/onnx/onnx.cpp
View file @
5e8db473
...
@@ -191,16 +191,15 @@ struct onnx_parser
...
@@ -191,16 +191,15 @@ struct onnx_parser
}
}
template
<
class
T
>
template
<
class
T
>
void
void
add_variadic_op
(
std
::
string
name
,
T
x
)
add_variadic_op
(
std
::
string
name
,
T
x
)
{
{
ops
.
emplace
(
name
,
[
this
,
x
](
attribute_map
,
std
::
vector
<
instruction_ref
>
args
)
{
ops
.
emplace
(
name
,
[
this
,
x
](
attribute_map
,
std
::
vector
<
instruction_ref
>
args
)
{
return
std
::
accumulate
(
std
::
next
(
args
.
begin
()),
return
std
::
accumulate
(
std
::
next
(
args
.
begin
()),
args
.
end
(),
args
.
end
(),
args
.
front
(),
args
.
front
(),
[
this
,
x
](
instruction_ref
a
,
instruction_ref
b
)
{
[
this
,
x
](
instruction_ref
a
,
instruction_ref
b
)
{
return
add_broadcastable_binary_op
(
a
,
b
,
x
);
return
add_broadcastable_binary_op
(
a
,
b
,
x
);
});
});
});
});
}
}
...
...
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