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

Function HasBuffer

tensorflow/lite/tools/optimize/model_utils.cc:107–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107bool HasBuffer(const ModelT* model, const SubGraphT* subgraph,
108 int tensor_index) {
109 const int buffer_index = subgraph->tensors[tensor_index]->buffer;
110 BufferT* buffer = model->buffers[buffer_index].get();
111 if (buffer == nullptr || buffer->data.empty()) {
112 return false;
113 }
114 return true;
115}
116
117bool HasMinMax(const TensorT* tensor) {
118 return tensor->quantization && !tensor->quantization->min.empty() &&

Callers 3

TESTFunction · 0.85
QuantizeOpInputFunction · 0.85
QuantizeBiasesFunction · 0.85

Calls 2

getMethod · 0.45
emptyMethod · 0.45

Tested by 1

TESTFunction · 0.68