"...common/git@developer.sourcefind.cn:Wenxuan/LightX2V.git" did not exist on "d7c99b0ccaa62a394fe1de741fcd84f6b58a7bfb"
Commit b5a4851e authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format

parent db4bc970
...@@ -15,7 +15,7 @@ bool try_compute_shape(instruction_ref ins, const std::vector<shape>& inputs) ...@@ -15,7 +15,7 @@ bool try_compute_shape(instruction_ref ins, const std::vector<shape>& inputs)
{ {
shape new_shape = ins->get_operator().compute_shape(inputs); shape new_shape = ins->get_operator().compute_shape(inputs);
// If the output shape is a standard shape, no need to try its output // If the output shape is a standard shape, no need to try its output
if (new_shape.standard()) if(new_shape.standard())
{ {
return true; return true;
} }
...@@ -23,21 +23,21 @@ bool try_compute_shape(instruction_ref ins, const std::vector<shape>& inputs) ...@@ -23,21 +23,21 @@ bool try_compute_shape(instruction_ref ins, const std::vector<shape>& inputs)
auto outputs = ins->outputs(); auto outputs = ins->outputs();
// If the current instruction has no output, it means the last output shape // If the current instruction has no output, it means the last output shape
// is non-standard, then we cannot eliminate the contiguous // is non-standard, then we cannot eliminate the contiguous
if (outputs.empty()) if(outputs.empty())
{ {
return false; return false;
} }
for (auto output : outputs) for(auto output : outputs)
{ {
auto args = output->inputs(); auto args = output->inputs();
std::vector<shape> input_shapes; std::vector<shape> input_shapes;
for (auto arg : args) for(auto arg : args)
{ {
input_shapes.push_back((arg == ins) ? new_shape : arg->get_shape()); input_shapes.push_back((arg == ins) ? new_shape : arg->get_shape());
} }
if (!try_compute_shape(output, input_shapes)) if(!try_compute_shape(output, input_shapes))
{ {
return false; return false;
} }
......
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