24 #ifndef ARM_COMPUTE_GRAPH_TENSOR_H 25 #define ARM_COMPUTE_GRAPH_TENSOR_H 69 void set_handle(std::unique_ptr<ITensorHandle> backend_tensor);
116 std::unique_ptr<ITensorHandle> _handle;
117 std::unique_ptr<ITensorAccessor> _accessor;
118 std::set<EdgeID> _bound_edges;
bool call_accessor()
Calls accessor on tensor.
void set_handle(std::unique_ptr< ITensorHandle > backend_tensor)
Sets the backend tensor.
ITensorHandle * handle()
Backend tensor handle accessor.
Tensor(TensorID id, TensorDescriptor desc)
Default constructor.
void set_accessor(std::unique_ptr< ITensorAccessor > accessor)
Sets the backend tensor accessor.
Copyright (c) 2017-2023 Arm Limited.
TensorDescriptor & desc()
TensorInfo metadata accessor.
void bind_edge(EdgeID eid)
Binds the tensor with an edge.
ITensorAccessor * accessor()
Backend tensor accessor.
void unbind_edge(EdgeID eid)
Unbinds an edge from a tensor.
Tensor handle interface object.
Tensor accessor interface.
TensorID id() const
Tensor ID accessor.
std::set< EdgeID > bound_edges() const
Accessor the edges that are bound with the tensor.
std::unique_ptr< ITensorAccessor > extract_accessor()
Extracts accessor from the tensor.