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

Function RequiredBufferSizeForShape

tensorflow/lite/toco/tooling_util.cc:749–756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

747}
748
749int RequiredBufferSizeForShape(const Shape& shape) {
750 CheckValidShape(shape);
751 int max_offset = 1;
752 for (const auto& dim : shape.dims()) {
753 max_offset *= dim;
754 }
755 return max_offset;
756}
757
758bool IsConstantParameterArray(const Model& model, const string& name) {
759 if (!model.HasArray(name)) {

Callers 15

GetArrayLabelFunction · 0.85
GetLog2BufferSizeFunction · 0.85
CheckEachArrayFunction · 0.85
CreateInt32ArrayFunction · 0.85
ShuffleArrayTemplateFunction · 0.85
UseArraysExtraInfoFunction · 0.85
ImportFloatArrayFunction · 0.85
ImportComplex64ArrayFunction · 0.85
ImportQuint8ArrayFunction · 0.85
ImportInt32ArrayFunction · 0.85
ImportInt64ArrayFunction · 0.85

Calls 2

CheckValidShapeFunction · 0.85
dimsMethod · 0.45

Tested by

no test coverage detected