23.08
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_GRAPH_UTILS_H
25 #define ARM_COMPUTE_GRAPH_UTILS_H
40 return utility_node_types.find(node->
type()) != utility_node_types.end();
65 tensor->set_accessor(std::move(accessor));
std::vector< NodeIdxPair > get_driving_nodes(const INode &node)
Get the list of driving nodes of a given node.
void force_target_to_graph(Graph &g, Target target)
Forces a single target to all graph constructs.
DataLayout
[DataLayout enum definition]
DataLayoutDimension
[DataLayout enum definition]
void setup_requested_backend_context(GraphContext &ctx, Target target)
Setups requested backend context if it exists, is supported and hasn't been initialized already.
size_t get_dimension_size(const TensorDescriptor &descriptor, const DataLayoutDimension data_layout_dimension)
Get size of a tensor's given dimension depending on its layout.
bool is_utility_node(INode *node)
std::vector< NodeIdxPair > get_driver_nodes(const INode &node)
Get the list of driver nodes of a given node.
#define ARM_COMPUTE_RETURN_ERROR_ON(cond)
If the condition is true, an error is returned.
bool is_target_supported(Target target)
Checks if a specific target is supported.
CLTensor * tensor
Pointer to the auxiliary tensor.
void configure_tensor(Tensor *tensor)
Configures tensor.
virtual NodeType type() const =0
Returns node's type.
size_t get_dimension_idx(DataLayout data_layout, const DataLayoutDimension data_layout_dimension)
Get index of a tensor's given dimension depending on its layout.
PassManager create_default_pass_manager(Target target, const GraphConfig &cfg)
Creates a default PassManager.
Target get_default_target()
Returns default target for execution.
Copyright (c) 2017-2023 Arm Limited.
const Tensor * tensor(TensorID id) const
Get tensor object given its id.
void sync_backends()
Synchronize kernels execution on the backends.
TensorDescriptor get_tensor_descriptor(const Graph &g, TensorID tid)
Returns the tensor descriptor of a given tensor.
void release_default_graph_context(GraphContext &ctx)
Default releases the graph context if not done manually.
Basic implementation of the tensor interface.
Status set_tensor_accessor(Tensor *tensor, std::unique_ptr< ITensorAccessor > accessor)
Sets an accessor on a given tensor.