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

Function HasAlreadyExportedConst

tensorflow/lite/toco/export_tensorflow.cc:140–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140bool HasAlreadyExportedConst(const string& name,
141 const GraphDef& tensorflow_graph) {
142 for (const auto& node : tensorflow_graph.node()) {
143 if (node.op() == "Const" && node.name() == name) {
144 return true;
145 }
146 }
147 return false;
148}
149
150void ConvertFloatTensorConst(const string& name, const Shape& input_shape,
151 const float* input_data,

Callers 8

ConvertFloatTensorConstFunction · 0.85
ConvertBoolTensorConstFunction · 0.85
ConvertIntTensorConstFunction · 0.85
CreateIntTensorConstFunction · 0.85

Calls 3

nameMethod · 0.65
nodeMethod · 0.45
opMethod · 0.45

Tested by

no test coverage detected