}
}
- // TODO ADD TFLDiv
+ void visit(locoex::TFLDiv *node) final
+ {
+ if (auto tbc = input_as_tbc<locoex::TFLDiv>(node))
+ {
+ NodePair pair(tbc, node);
+ candidates.insert(pair);
+ }
+ }
void visit(locoex::TFLMul *node) final
{
}
}
- // TODO ADD TFLSub
+ void visit(locoex::TFLSub *node) final
+ {
+ if (auto tbc = input_as_tbc<locoex::TFLSub>(node))
+ {
+ NodePair pair(tbc, node);
+ candidates.insert(pair);
+ }
+ }
void visit(locoex::TFLNode *) final { return; }
jump_connection<locoex::TFLAdd>(tensorbroadcast, tfladd);
changed = true;
}
- // TODO ADD TFLDiv
+ else if (auto tfldiv = dynamic_cast<locoex::TFLDiv *>(pair.second))
+ {
+ jump_connection<locoex::TFLDiv>(tensorbroadcast, tfldiv);
+ changed = true;
+ }
else if (auto tflmul = dynamic_cast<locoex::TFLMul *>(pair.second))
{
jump_connection<locoex::TFLMul>(tensorbroadcast, tflmul);
changed = true;
}
- // TODO ADD TFLSub
+ else if (auto tflsub = dynamic_cast<locoex::TFLSub *>(pair.second))
+ {
+ jump_connection<locoex::TFLSub>(tensorbroadcast, tflsub);
+ changed = true;
+ }
else
{
assert(false);