"...targets/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "973cafd4ee426dedd4104282881524976bd27424"
Commit 07c05efb authored by charlie's avatar charlie
Browse files

Check dynamic() on shape when using dyn_output

parent da5b6fef
......@@ -116,7 +116,9 @@ struct compute_output_shape
operator dyn_output() const
{
return ins_inputs([](const auto& x, shape ins_shape, const std::vector<argument>& inputs) {
return dyn_output{ins_shape, compute_shape(x, to_shapes(inputs))};
if(ins_shape.dynamic())
return dyn_output{ins_shape, compute_shape(x, to_shapes(inputs))};
return dyn_output{ins_shape, ins_shape};
});
}
......
......@@ -116,7 +116,9 @@ struct compute_output_shape
operator dyn_output() const
{
return ins_inputs([](const auto& x, shape ins_shape, const std::vector<argument>& inputs) {
return dyn_output{ins_shape, compute_shape(x, to_shapes(inputs))};
if(ins_shape.dynamic())
return dyn_output{ins_shape, compute_shape(x, to_shapes(inputs))};
return dyn_output{ins_shape, ins_shape};
});
}
......
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