"vscode:/vscode.git/clone" did not exist on "96a97adf9b973721f1e7401e49984cc1b772cc3b"
Commit 3107fda5 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

remove some code to have better code coverage

parent 74b05172
......@@ -461,16 +461,8 @@ struct onnx_parser
op::reshape op;
if(args.size() == 1)
{
if(contains(attributes, "shape"))
{
literal s = parse_value(attributes.at("shape"));
s.visit([&](auto v) { copy(v, std::back_inserter(op.dims)); });
}
else
{
MIGRAPHX_THROW(
"Parse_reshape: shape attribute is needed when only one argument is provided!");
}
literal s = parse_value(attributes.at("shape"));
s.visit([&](auto v) { copy(v, std::back_inserter(op.dims)); });
}
if(args.size() == 2)
{
......
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