"git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "1633ba4443c9c986d94d5e4e6185b2e0de06a8a9"
Commit 08ffe31b authored by Ted Themistokleous's avatar Ted Themistokleous
Browse files

Add case for divzero in insert_generic_instructions

parent 3a84c350
...@@ -247,8 +247,15 @@ insert_generic_instructions(module& m, ...@@ -247,8 +247,15 @@ insert_generic_instructions(module& m,
mod_outputs = copy_inputs; mod_outputs = copy_inputs;
break; break;
} }
else if(sins->name() == "@divzero")
copy_ins = m.insert_instruction(ins, sins->get_operator(), copy_inputs, mod_args); {
shape s = sins->get_shape();
copy_ins = m.add_divzero(inputs, {s});
}
else
{
copy_ins = m.insert_instruction(ins, sins->get_operator(), copy_inputs, mod_args);
}
} }
map_ins[sins] = copy_ins; map_ins[sins] = copy_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