| 177 | } |
| 178 | |
| 179 | void GraphDef::Clear() { |
| 180 | // @@protoc_insertion_point(message_clear_start:tensorflow.GraphDef) |
| 181 | uint32_t cached_has_bits = 0; |
| 182 | // Prevent compiler warnings about cached_has_bits being unused |
| 183 | (void) cached_has_bits; |
| 184 | |
| 185 | node_.Clear(); |
| 186 | if (GetArenaForAllocation() == nullptr && library_ != nullptr) { |
| 187 | delete library_; |
| 188 | } |
| 189 | library_ = nullptr; |
| 190 | if (GetArenaForAllocation() == nullptr && versions_ != nullptr) { |
| 191 | delete versions_; |
| 192 | } |
| 193 | versions_ = nullptr; |
| 194 | version_ = 0; |
| 195 | _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| 196 | } |
| 197 | |
| 198 | const char* GraphDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
| 199 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
no test coverage detected