"platforms/vscode:/vscode.git/clone" did not exist on "0095b6f3f80b4f3c0fa7340117a387fc4bef2345"
Unverified Commit f149b619 authored by Paul Fultz II's avatar Paul Fultz II Committed by GitHub
Browse files

Throw an error when mlir's outpus shape is non-standard (#2150)

parent 752f13cf
...@@ -103,7 +103,10 @@ struct mlir_op ...@@ -103,7 +103,10 @@ struct mlir_op
} }
if(ins->name() == "@return") if(ins->name() == "@return")
{ {
return ins_shapes[ins->inputs().at(0)].with_type(type); auto s = ins_shapes[ins->inputs().at(0)].with_type(type);
if(not s.standard())
MIGRAPHX_THROW("MLIR doesnt support non-standard output");
return s;
} }
std::vector<shape> input_shapes; std::vector<shape> input_shapes;
input_shapes.resize(ins->inputs().size()); input_shapes.resize(ins->inputs().size());
......
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