"...git@developer.sourcefind.cn:OpenDAS/mmdetection3d.git" did not exist on "1f9eb6c8f13ce3fa04a5b7c59a729848886d00c5"
Commit fb51b2c5 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format

parent a0e4cdb6
...@@ -12,11 +12,11 @@ void adjust_allocation::apply(program& p) const ...@@ -12,11 +12,11 @@ void adjust_allocation::apply(program& p) const
for(auto ins : iterator_for(p)) for(auto ins : iterator_for(p))
{ {
auto alias_ins = instruction::get_output_alias(ins, true); auto alias_ins = instruction::get_output_alias(ins, true);
if (alias_ins->name() == "hip::allocate") if(alias_ins->name() == "hip::allocate")
{ {
// shape allocated is different from actual shape // shape allocated is different from actual shape
// of the instruction, reallocate and replace the previous one // of the instruction, reallocate and replace the previous one
if (alias_ins->get_shape() != ins->get_shape()) if(alias_ins->get_shape() != ins->get_shape())
{ {
auto alloc_ins = p.insert_instruction(ins, hip_allocate{ins->get_shape()}); auto alloc_ins = p.insert_instruction(ins, hip_allocate{ins->get_shape()});
p.replace_instruction(alias_ins, alloc_ins); p.replace_instruction(alias_ins, alloc_ins);
......
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