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
f00002d3
Commit
f00002d3
authored
May 15, 2019
by
Shucai Xiao
Browse files
clang format
parent
fd0f647e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
src/include/migraphx/op/binary.hpp
src/include/migraphx/op/binary.hpp
+4
-4
src/include/migraphx/op/unary.hpp
src/include/migraphx/op/unary.hpp
+4
-4
No files found.
src/include/migraphx/op/binary.hpp
View file @
f00002d3
...
@@ -38,10 +38,10 @@ struct binary : op_name<Derived>
...
@@ -38,10 +38,10 @@ struct binary : op_name<Derived>
argument
std_arg1
{
std_shape
,
args
[
1
].
data
()};
argument
std_arg1
{
std_shape
,
args
[
1
].
data
()};
visit_all
(
std_result
,
std_arg0
,
std_arg1
)([
&
](
auto
output
,
auto
input1
,
auto
input2
)
{
visit_all
(
std_result
,
std_arg0
,
std_arg1
)([
&
](
auto
output
,
auto
input1
,
auto
input2
)
{
std
::
transform
(
input1
.
begin
(),
std
::
transform
(
input1
.
begin
(),
input1
.
end
(),
input1
.
end
(),
input2
.
begin
(),
input2
.
begin
(),
output
.
begin
(),
output
.
begin
(),
static_cast
<
const
Derived
&>
(
*
this
).
apply
());
static_cast
<
const
Derived
&>
(
*
this
).
apply
());
});
});
}
}
else
else
...
...
src/include/migraphx/op/unary.hpp
View file @
f00002d3
...
@@ -36,10 +36,10 @@ struct unary : op_name<Derived>
...
@@ -36,10 +36,10 @@ struct unary : op_name<Derived>
argument
arg_out
{
std_out_shape
,
result
.
data
()};
argument
arg_out
{
std_out_shape
,
result
.
data
()};
arg_out
.
visit
([
&
](
auto
output
)
{
arg_out
.
visit
([
&
](
auto
output
)
{
arg_in
.
visit
([
&
](
auto
input
)
{
arg_in
.
visit
([
&
](
auto
input
)
{
std
::
transform
(
input
.
begin
(),
std
::
transform
(
input
.
begin
(),
input
.
end
(),
input
.
end
(),
output
.
begin
(),
output
.
begin
(),
static_cast
<
const
Derived
&>
(
*
this
).
apply
());
static_cast
<
const
Derived
&>
(
*
this
).
apply
());
});
});
});
});
...
...
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