Compute Library
 21.11
Utils.h File Reference

Go to the source code of this file.

Namespaces

 arm_compute
 Copyright (c) 2017-2021 Arm Limited.
 
 arm_compute::graph
 

Functions

bool is_utility_node (INode *node)
 
TensorDescriptor get_tensor_descriptor (const Graph &g, TensorID tid)
 Returns the tensor descriptor of a given tensor. More...
 
Status set_tensor_accessor (Tensor *tensor, std::unique_ptr< ITensorAccessor > accessor)
 Sets an accessor on a given tensor. More...
 
bool is_target_supported (Target target)
 Checks if a specific target is supported. More...
 
Target get_default_target ()
 Returns default target for execution. More...
 
void force_target_to_graph (Graph &g, Target target)
 Forces a single target to all graph constructs. More...
 
PassManager create_default_pass_manager (Target target, const GraphConfig &cfg)
 Creates a default PassManager. More...
 
void setup_requested_backend_context (GraphContext &ctx, Target target)
 Setups requested backend context if it exists, is supported and hasn't been initialized already. More...
 
void release_default_graph_context (GraphContext &ctx)
 Default releases the graph context if not done manually. More...
 
void sync_backends ()
 Synchronize kernels execution on the backends. More...
 
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. More...
 
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. More...
 
std::vector< NodeIdxPair > get_driving_nodes (const INode &node)
 Get the list of driving nodes of a given node. More...
 
std::vector< NodeIdxPair > get_driver_nodes (const INode &node)
 Get the list of driver nodes of a given node. More...
 
void configure_tensor (Tensor *tensor)
 Configures tensor. More...