"tasks/vscode:/vscode.git/clone" did not exist on "3b059c2feb8deab2e3d3bff6341ff5653596d9ab"
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,
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;
}
......
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