24.02.1
|
Mutation pass to optimize operations that can be performed in-place. More...
#include <InPlaceOperationMutator.h>
Public Member Functions | |
virtual void | mutate (Graph &g) override |
Walk the graph and perform a specific mutation. More... | |
MutationType | type () const override |
Returns mutation type. More... | |
const char * | name () override |
Returns mutator name. More... | |
Public Member Functions inherited from IGraphMutator | |
virtual | ~IGraphMutator ()=default |
Virtual Destructor. More... | |
Additional Inherited Members | |
Public Types inherited from IGraphMutator | |
enum | MutationType { IR, Backend } |
Mutation type. More... | |
Mutation pass to optimize operations that can be performed in-place.
Definition at line 34 of file InPlaceOperationMutator.h.
|
overridevirtual |
Walk the graph and perform a specific mutation.
[in,out] | g | Graph to walk and mutate |
Implements IGraphMutator.
Definition at line 223 of file InPlaceOperationMutator.cpp.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_LOG_GRAPH_VERBOSE, arm_compute::mlgo::parser::end(), Graph::nodes(), and Edge::tensor().
|
overridevirtual |
Returns mutator name.
Implements IGraphMutator.
Definition at line 213 of file InPlaceOperationMutator.cpp.
|
overridevirtual |
Returns mutation type.
Implements IGraphMutator.
Definition at line 218 of file InPlaceOperationMutator.cpp.