Commit 74a96965 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format

parent 0714d98e
...@@ -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;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment