48 template <
typename Setter>
49 void set_default_on_invalid_method(Graph &g,
NodeType node_type, Setter &&setter)
51 const std::vector<NodeID> &node_ids = g.nodes(node_type);
52 for(
auto &node_id : node_ids)
54 INode *node = g.node(node_id);
73 return "NodeExecutionMethodMutator";
87 << n->
id() <<
" and Name: " << n->
name() << std::endl);
88 auto *casted_node = arm_compute::utils::cast::polymorphic_downcast<ConvolutionLayerNode *>(n);
96 << n->
id() <<
" and Name: " << n->
name() << std::endl);
97 auto *casted_node = arm_compute::utils::cast::polymorphic_downcast<DepthwiseConvolutionLayerNode *>(n);
std::string name() const
Returns node's name.
const char * name() override
Returns mutator name.
IDeviceBackend & get_backend(Target target)
Get a backend from the registry.
#define ARM_COMPUTE_LOG_GRAPH_INFO(x)
Copyright (c) 2017-2021 Arm Limited.
MutationType type() const override
Returns mutation type.
virtual void mutate(Graph &g) override
Walk the graph and perform a specific mutation.
NodeID id() const
Returns node's ID.
static BackendRegistry & get()
Gets backend registry instance.
virtual Status validate_node(INode &node)=0
Validate a node.
MutationType
Mutation type.
Default approach using internal heuristics.
Default approach using internal heuristics.