23.08
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_GRAPH_INODE_H
25 #define ARM_COMPUTE_GRAPH_INODE_H
52 virtual ~INode() =
default;
92 std::string
name()
const;
149 const std::vector<TensorID> &
inputs()
const;
154 const std::vector<TensorID> &
outputs()
const;
262 std::vector<TensorID> _outputs;
263 std::vector<EdgeID> _input_edges;
264 std::set<EdgeID> _output_edges;
266 std::list<std::unique_ptr<ConvPostOpInfo>> _post_op_info_list;
virtual Status validate() const
Validate node.
NodeParams common_node_params() const
Returns common node parameters.
void set_output_tensor(TensorID tid, size_t idx)
Sets the output tensor of at a given index.
EdgeID input_edge_id(size_t idx) const
Returns the edge ID of a given input of the node.
TensorID input_id(size_t idx) const
Returns the tensor ID of a given input of the node.
Tensor * output(size_t idx) const
Returns the tensor of a given output of the node.
size_t num_inputs() const
Returns number of inputs of the node.
const std::vector< TensorID > & outputs() const
Returns outputs of the node.
const std::set< EdgeID > & output_edges() const
Returns output edge set.
INode & operator=(const INode &)=delete
Prevent instances of this class from being copy assigned (As this class contains pointers)
virtual bool forward_descriptors()=0
Forwards descriptor information to outputs if possible.
void set_assigned_target(Target target)
Sets the final execution target.
const std::list< std::unique_ptr< ConvPostOpInfo > > & post_op_info_list() const
Post operator info list.
const std::vector< TensorID > & inputs() const
Returns inputs of the node.
virtual TensorDescriptor configure_output(size_t idx) const =0
Calculates output configuration.
std::string name() const
Returns node's name.
virtual ~INode()=default
Destructor.
Edge * input_edge(size_t idx) const
Returns the edge of a given input of the node.
Target requested_target() const
Returns requested target for this node.
void set_graph(Graph *g)
Sets the graph that this node is registered to.
virtual NodeType type() const =0
Returns node's type.
const std::vector< EdgeID > & input_edges() const
Returns input edge set.
Copyright (c) 2017-2023 Arm Limited.
Tensor * input(size_t idx) const
Returns the tensor of a given input of the node.
const Graph * graph() const
Returns node's Graph.
TensorID output_id(size_t idx) const
Returns the tensor ID of a given output of the node.
size_t num_outputs() const
Returns number of outputs of the node.
Target assigned_target() const
Returns assigned target for this node.
void set_requested_target(Target target)
Sets target preference.
NodeID id() const
Returns node's ID.
virtual void accept(INodeVisitor &v)=0
Accepts a node visitor.
void set_id(NodeID id)
Sets the node id.
void set_common_node_parameters(NodeParams common_params)
Sets common node parameters.