"vscode:/vscode.git/clone" did not exist on "8b7ad986169ce8b217c1d8f874175454209aa43f"
Commit 1af66a1c authored by Khalique Ahmed's avatar Khalique Ahmed
Browse files

remove incorrect optimization

parent 8949b9b1
......@@ -104,8 +104,6 @@ void propagate_constant::apply(module& m) const
auto in_shape = const_instrs_vec[i]->get_shape();
assert(literals[i].get_shape() == in_shape);
literal l{in_shape, literals[i].data()};
if(const_instrs_vec[i]->outputs().front()->name() == "dot")
l = {{in_shape.type(), in_shape.lens()}, literals[i].data()};
auto l0 = m.add_literal(l);
m.replace_instruction(const_instrs_vec[i], l0);
}
......
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