MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / HasTensor

Method HasTensor

tensorflow/lite/delegates/flex/buffer_map.cc:141–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139BufferMap::~BufferMap() {}
140
141bool BufferMap::HasTensor(int tensor_index) const {
142 return id_to_tensor_.count(tensor_index) != 0;
143}
144
145bool BufferMap::IsTensorFlowTensor(int tensor_index) const {
146 return HasTensor(tensor_index) && owned_by_tf_.count(tensor_index) > 0;

Callers 6

ConfigureDelegateMethod · 0.45
CopyFromBufferHandleFunction · 0.45
BuildEagerInputsMethod · 0.45
PrepareFunction · 0.45
EvalFunction · 0.45
TESTFunction · 0.45

Calls 1

countMethod · 0.45

Tested by 2

ConfigureDelegateMethod · 0.36
TESTFunction · 0.36