Adding exception in stage doesn't help. Because if there is a record for add without
broadcast, scheduling will select it since it doesn't distinguish broadcast and
non-broadcast like it does for quant non-quantized*/
- if (backend->config()->id() == "cpu" && node.name() == "Add")
+ if (backend->config()->id() == "cpu" && node.opcode() == model::OpCode::Add)
{
const auto lhs_index{node.getInputs().at(model::operation::Add::Input::LHS)};
const auto rhs_index{node.getInputs().at(model::operation::Add::Input::RHS)};
Adding exception in stage doesn't help. Because if there is a record for Mul without
broadcast, scheduling will select it since it doesn't distinguish broadcast and
non-broadcast like it does for quant non-quantized*/
- else if (backend->config()->id() == "acl_neon" && node.name() == "Mul")
+ else if (backend->config()->id() == "acl_neon" && node.opcode() == model::OpCode::Mul)
{
const auto lhs_index{node.getInputs().at(model::operation::Mul::Input::LHS)};
const auto rhs_index{node.getInputs().at(model::operation::Mul::Input::RHS)};
auto it = _indexed_ranks->find(element.index);
if (it == _indexed_ranks->end())
{
- assert(element.node->name() == "Permute");
+ assert(element.node->opcode() == model::OpCode::Permute);
// assign int32_t::max to prevent integer overflow
rank += std::numeric_limits<int32_t>::max();
}