MCPcopy Create free account
hub / github.com/alibaba/MNN / Clear

Method Clear

tools/converter/source/tensorflow/generated/graph.pb.cc:179–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179void 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
198const char* GraphDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
199#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure

Callers 15

clear_half_valMethod · 0.45
clear_float_valMethod · 0.45
clear_double_valMethod · 0.45
clear_int_valMethod · 0.45
clear_string_valMethod · 0.45
clear_scomplex_valMethod · 0.45
clear_int64_valMethod · 0.45
clear_bool_valMethod · 0.45
clear_dcomplex_valMethod · 0.45
clear_variant_valMethod · 0.45
clear_tensorsMethod · 0.45
clear_nodeMethod · 0.45

Calls 1

GetArenaForAllocationFunction · 0.85

Tested by

no test coverage detected