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
74a96965
"tasks/vscode:/vscode.git/clone" did not exist on "3b059c2feb8deab2e3d3bff6341ff5653596d9ab"
Commit
74a96965
authored
Feb 12, 2022
by
Shucai Xiao
Browse files
clang format
parent
0714d98e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/api/api.cpp
src/api/api.cpp
+2
-3
No files found.
src/api/api.cpp
View file @
74a96965
...
...
@@ -391,9 +391,8 @@ extern "C" migraphx_status migraphx_shape_create(migraphx_shape_t* shape,
auto
api_error_result
=
migraphx
::
try_
([
&
]
{
if
(
lengths
==
nullptr
and
lengths_size
!=
0
)
MIGRAPHX_THROW
(
migraphx_status_bad_param
,
"Bad parameter lengths: Null pointer"
);
*
shape
=
object_cast
<
migraphx_shape_t
>
(
allocate
<
migraphx
::
shape
>
((
migraphx
::
to_shape_type
(
type
)),
(
std
::
vector
<
int
>
(
lengths
,
lengths
+
lengths_size
))));
*
shape
=
object_cast
<
migraphx_shape_t
>
(
allocate
<
migraphx
::
shape
>
(
(
migraphx
::
to_shape_type
(
type
)),
(
std
::
vector
<
int
>
(
lengths
,
lengths
+
lengths_size
))));
});
return
api_error_result
;
}
...
...
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