Commit 4ddaf83e authored by Paul's avatar Paul
Browse files

Fix copy-paste

parent 8e832756
...@@ -98,13 +98,6 @@ static void remove_contiguous(const std::string& op_name, module& m, F f) ...@@ -98,13 +98,6 @@ static void remove_contiguous(const std::string& op_name, module& m, F f)
if(arg->name() != op_name) if(arg->name() != op_name)
continue; continue;
auto prev = arg->inputs().front(); auto prev = arg->inputs().front();
replace(new_args, arg, prev);
if(try_compute_shape(ins, new_args, mod_args))
{
instruction::replace_argument(ins, arg, prev);
}
else if(prev->can_eval())
{
replace(new_args, arg, prev); replace(new_args, arg, prev);
if(try_compute_shape(ins, new_args, mod_args)) if(try_compute_shape(ins, new_args, mod_args))
{ {
...@@ -116,7 +109,6 @@ static void remove_contiguous(const std::string& op_name, module& m, F f) ...@@ -116,7 +109,6 @@ static void remove_contiguous(const std::string& op_name, module& m, F f)
} }
} }
} }
}
// Perform evaluations in parallel // Perform evaluations in parallel
std::vector<argument> literals(const_instructions.size()); std::vector<argument> literals(const_instructions.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