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