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
eb9d3a01
Commit
eb9d3a01
authored
Jan 15, 2019
by
Shucai Xiao
Browse files
fix two format problems.
parent
46ac5c5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/onnx/onnx.cpp
src/onnx/onnx.cpp
+1
-1
src/targets/cpu/lowering.cpp
src/targets/cpu/lowering.cpp
+2
-2
No files found.
src/onnx/onnx.cpp
View file @
eb9d3a01
...
@@ -543,7 +543,7 @@ struct onnx_parser
...
@@ -543,7 +543,7 @@ struct onnx_parser
// Use a literal instruction to replace the shape since, output of
// Use a literal instruction to replace the shape since, output of
// shape operator are literals in migraphx
// shape operator are literals in migraphx
instruction_ref
instruction_ref
parse_shape
(
const
std
::
string
&
,
attribute_map
,
std
::
vector
<
instruction_ref
>
args
)
parse_shape
(
const
std
::
string
&
,
const
attribute_map
&
,
std
::
vector
<
instruction_ref
>
args
)
{
{
if
(
args
.
size
()
!=
1
)
if
(
args
.
size
()
!=
1
)
MIGRAPHX_THROW
(
"Shape, operator should have 1 operand"
);
MIGRAPHX_THROW
(
"Shape, operator should have 1 operand"
);
...
...
src/targets/cpu/lowering.cpp
View file @
eb9d3a01
...
@@ -330,7 +330,7 @@ struct cpu_gather
...
@@ -330,7 +330,7 @@ struct cpu_gather
argument
compute
(
context
&
,
const
shape
&
output_shape
,
std
::
vector
<
argument
>
args
)
const
argument
compute
(
context
&
,
const
shape
&
output_shape
,
std
::
vector
<
argument
>
args
)
const
{
{
return
op
.
compute
(
output_shape
,
args
);
return
op
.
compute
(
output_shape
,
std
::
move
(
args
)
)
;
}
}
};
};
...
@@ -342,7 +342,7 @@ struct cpu_gather_torch
...
@@ -342,7 +342,7 @@ struct cpu_gather_torch
argument
compute
(
context
&
,
const
shape
&
output_shape
,
std
::
vector
<
argument
>
args
)
const
argument
compute
(
context
&
,
const
shape
&
output_shape
,
std
::
vector
<
argument
>
args
)
const
{
{
return
op
.
compute
(
output_shape
,
args
);
return
op
.
compute
(
output_shape
,
std
::
move
(
args
)
)
;
}
}
};
};
...
...
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