23.08
|
#include <Tensor.h>
Public Member Functions | |
Tensor (TensorID id, TensorDescriptor desc) | |
Default constructor. More... | |
TensorID | id () const |
Tensor ID accessor. More... | |
TensorDescriptor & | desc () |
TensorInfo metadata accessor. More... | |
const TensorDescriptor & | desc () const |
TensorInfo metadata accessor. More... | |
void | set_handle (std::unique_ptr< ITensorHandle > backend_tensor) |
Sets the backend tensor. More... | |
ITensorHandle * | handle () |
Backend tensor handle accessor. More... | |
void | set_accessor (std::unique_ptr< ITensorAccessor > accessor) |
Sets the backend tensor accessor. More... | |
ITensorAccessor * | accessor () |
Backend tensor accessor. More... | |
std::unique_ptr< ITensorAccessor > | extract_accessor () |
Extracts accessor from the tensor. More... | |
bool | call_accessor () |
Calls accessor on tensor. More... | |
void | bind_edge (EdgeID eid) |
Binds the tensor with an edge. More... | |
void | unbind_edge (EdgeID eid) |
Unbinds an edge from a tensor. More... | |
std::set< EdgeID > | bound_edges () const |
Accessor the edges that are bound with the tensor. More... | |
Tensor | ( | TensorID | id, |
TensorDescriptor | desc | ||
) |
ITensorAccessor * accessor | ( | ) |
Backend tensor accessor.
Definition at line 65 of file Tensor.cpp.
Referenced by arm_compute::graph::detail::fuse_pad_with_convolution(), and Tensor::set_accessor().
void bind_edge | ( | EdgeID | eid | ) |
Binds the tensor with an edge.
[in] | eid | Edge ID that is bound to the tensor |
Definition at line 109 of file Tensor.cpp.
Referenced by Graph::add_connection(), and INode::set_output_tensor().
std::set< EdgeID > bound_edges | ( | ) | const |
Accessor the edges that are bound with the tensor.
Definition at line 119 of file Tensor.cpp.
bool call_accessor | ( | ) |
Calls accessor on tensor.
Definition at line 75 of file Tensor.cpp.
const TensorDescriptor & desc | ( | ) |
TensorInfo metadata accessor.
Definition at line 40 of file Tensor.cpp.
Referenced by BoundingBoxTransformLayerNode::configure_output(), ROIAlignLayerNode::configure_output(), DetectionOutputLayerNode::configure_output(), PriorBoxLayerNode::configure_output(), DeconvolutionLayerNode::configure_output(), EltwiseLayerNode::configure_output(), DepthwiseConvolutionLayerNode::configure_output(), FusedConvolutionBatchNormalizationWithPostOpsNode::configure_output(), ConvolutionLayerNode::configure_output(), FusedConvolutionWithPostOpNode::configure_output(), FusedDepthwiseConvolutionBatchNormalizationNode::configure_output(), FusedConvolutionBatchNormalizationNode::configure_output(), arm_compute::graph::backends::detail::create_concatenate_layer(), SplitLayerNode::forward_descriptors(), arm_compute::graph::detail::fuse_convolution_batch_normalization_with_post_ops(), arm_compute::graph::detail::fuse_convolution_with_post_ops(), arm_compute::graph::detail::fuse_pad_with_convolution(), and SplitLayerSubTensorMutator::mutate().
const TensorDescriptor& desc | ( | ) | const |
TensorInfo metadata accessor.
std::unique_ptr< ITensorAccessor > extract_accessor | ( | ) |
Extracts accessor from the tensor.
Definition at line 70 of file Tensor.cpp.
Referenced by arm_compute::graph::detail::transfer_driving_nodes_and_remove_old_node().
ITensorHandle * handle | ( | ) |
Backend tensor handle accessor.
Definition at line 55 of file Tensor.cpp.
Referenced by SplitLayerSubTensorMutator::mutate().
TensorID id | ( | ) | const |
Tensor ID accessor.
Definition at line 35 of file Tensor.cpp.
Referenced by Edge::tensor_id().
void set_accessor | ( | std::unique_ptr< ITensorAccessor > | accessor | ) |
Sets the backend tensor accessor.
[in] | accessor | Accessor to set |
Definition at line 60 of file Tensor.cpp.
References Tensor::accessor().
Referenced by GroupedConvolutionMutator::mutate(), and arm_compute::graph::detail::transfer_driving_nodes_and_remove_old_node().
void set_handle | ( | std::unique_ptr< ITensorHandle > | backend_tensor | ) |
Sets the backend tensor.
[in] | backend_tensor | Backend tensor to set |
Definition at line 50 of file Tensor.cpp.
Referenced by SplitLayerSubTensorMutator::mutate().
void unbind_edge | ( | EdgeID | eid | ) |
Unbinds an edge from a tensor.
[in] | eid | Edge to unbind |
Definition at line 114 of file Tensor.cpp.
Referenced by Graph::remove_connection(), and INode::set_output_tensor().