| 138 | } |
| 139 | |
| 140 | bool 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 | |
| 150 | void ConvertFloatTensorConst(const string& name, const Shape& input_shape, |
| 151 | const float* input_data, |
no test coverage detected