MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / call_accessor

Method call_accessor

src/graph/Tensor.cpp:75–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75bool Tensor::call_accessor()
76{
77 // Early exit guard
78 if (!_accessor || !_handle)
79 {
80 return false;
81 }
82
83 const bool access_data = _accessor->access_tensor_data();
84
85 if (access_data)
86 {
87 // Map tensor
88 _handle->map(true);
89
90 // Return in case of null backend buffer
91 if (_handle->tensor().buffer() == nullptr)
92 {
93 return false;
94 }
95 }
96
97 // Call accessor
98 bool retval = _accessor->access_tensor(_handle->tensor());
99
100 if (access_data)
101 {
102 // Unmap tensor
103 _handle->unmap();
104 }
105
106 return retval;
107}
108
109void Tensor::bind_edge(EdgeID eid)
110{

Callers 3

call_tensor_accessorFunction · 0.80

Calls 6

access_tensor_dataMethod · 0.45
mapMethod · 0.45
bufferMethod · 0.45
tensorMethod · 0.45
access_tensorMethod · 0.45
unmapMethod · 0.45

Tested by

no test coverage detected