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
"test/git@developer.sourcefind.cn:hehl2/torchaudio.git" did not exist on "03a0d68e9ab06d7e1fbf84280a65d104a07abcff"
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,
...
@@ -391,9 +391,8 @@ extern "C" migraphx_status migraphx_shape_create(migraphx_shape_t* shape,
auto
api_error_result
=
migraphx
::
try_
([
&
]
{
auto
api_error_result
=
migraphx
::
try_
([
&
]
{
if
(
lengths
==
nullptr
and
lengths_size
!=
0
)
if
(
lengths
==
nullptr
and
lengths_size
!=
0
)
MIGRAPHX_THROW
(
migraphx_status_bad_param
,
"Bad parameter lengths: Null pointer"
);
MIGRAPHX_THROW
(
migraphx_status_bad_param
,
"Bad parameter lengths: Null pointer"
);
*
shape
=
object_cast
<
migraphx_shape_t
>
(
*
shape
=
object_cast
<
migraphx_shape_t
>
(
allocate
<
migraphx
::
shape
>
(
allocate
<
migraphx
::
shape
>
((
migraphx
::
to_shape_type
(
type
)),
(
migraphx
::
to_shape_type
(
type
)),
(
std
::
vector
<
int
>
(
lengths
,
lengths
+
lengths_size
))));
(
std
::
vector
<
int
>
(
lengths
,
lengths
+
lengths_size
))));
});
});
return
api_error_result
;
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