This will fix to run for active nodes from outputs for FixPadding and FixShape transformations
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
bool FixPaddingTransform::run(loco::Graph *graph)
{
bool changed = false;
- for (auto node : loco::all_nodes(graph))
+ for (auto node : loco::active_nodes(loco::output_nodes(graph)))
{
// clang-format off
#define CANONICAL_NODE(TYPE_NAME) \
bool FixShapeTransform::run(loco::Graph *graph)
{
bool changed = false;
- for (auto node : loco::all_nodes(graph))
+ for (auto node : loco::active_nodes(loco::output_nodes(graph)))
{
// clang-format off
#define CANONICAL_NODE(TYPE_NAME) \