"src/nasui/vscode:/vscode.git/clone" did not exist on "67ea330469f22a0d8d352284e966af8ebd1df12d"
Commit fff09052 authored by charlie's avatar charlie
Browse files

Disable auto_pad for dynamic input shape

parent 5b01ad88
...@@ -83,7 +83,11 @@ struct parse_convolution : op_parser<parse_convolution> ...@@ -83,7 +83,11 @@ struct parse_convolution : op_parser<parse_convolution>
if(contains(info.attributes, "auto_pad")) if(contains(info.attributes, "auto_pad"))
{ {
auto weight_lens = weights->get_shape().max_lens(); if(l0_shape.dynamic() or weights->get_shape().dynamic())
{
MIGRAPHX_THROW("PARSE_CONV: auto_pad and dynamic input shapes not supported");
}
auto weight_lens = weights->get_shape().lens();
std::vector<std::size_t> k_lens(weight_lens.begin() + 2, weight_lens.end()); std::vector<std::size_t> k_lens(weight_lens.begin() + 2, weight_lens.end());
cal_auto_padding_size(info, cal_auto_padding_size(info,
values, values,
......
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