Commit 23490657 authored by Paul's avatar Paul
Browse files

Format

parent c164d8e6
...@@ -32,8 +32,9 @@ std::vector<instruction_ref> find_lasts(const module& m, Predicate pred) ...@@ -32,8 +32,9 @@ std::vector<instruction_ref> find_lasts(const module& m, Predicate pred)
std::unordered_set<instruction_ref> preserve_output_layout(module& m) std::unordered_set<instruction_ref> preserve_output_layout(module& m)
{ {
std::unordered_set<instruction_ref> result; std::unordered_set<instruction_ref> result;
std::vector<instruction_ref> outputs = std::vector<instruction_ref> outputs = find_lasts(m, [](auto ins) {
find_lasts(m, [](auto ins) { return ins->name() == "convolution" and ins->get_shape().lens().size() == 4; }); return ins->name() == "convolution" and ins->get_shape().lens().size() == 4;
});
for(auto output : outputs) for(auto output : outputs)
{ {
auto permutation = find_permutation(output->get_shape()); auto permutation = find_permutation(output->get_shape());
......
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