Home
last modified time | relevance | path

Searched refs:arena_ (Results 1 – 25 of 25) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/tensor_forest/
Dresources.cc32 protobuf::Arena::CreateMessage<boosted_trees::Tree>(&arena_)) {} in TensorForestTreeResource()
66 arena_.Reset(); in Reset()
67 DCHECK_EQ(0, arena_.SpaceAllocated()); in Reset()
68 decision_tree_ = protobuf::Arena::CreateMessage<boosted_trees::Tree>(&arena_); in Reset()
Dresources.h60 protobuf::Arena arena_; variable
/external/protobuf/src/google/protobuf/
Dextension_set.cc180 ExtensionSet::ExtensionSet(::google::protobuf::Arena* arena) : arena_(arena) { in ExtensionSet()
181 if (arena_ != NULL) { in ExtensionSet()
182 arena_->OwnDestructor(&extensions_); in ExtensionSet()
186 ExtensionSet::ExtensionSet() : arena_(NULL) {} in ExtensionSet()
190 if (arena_ == NULL) { in ~ExtensionSet()
317 Arena::CreateMessage<RepeatedField<LOWERCASE> >(arena_); \
362 Arena::CreateMessage<RepeatedField<int32> >(arena_); in MutableRawRepeatedField()
366 Arena::CreateMessage<RepeatedField<int64> >(arena_); in MutableRawRepeatedField()
370 Arena::CreateMessage<RepeatedField<uint32> >(arena_); in MutableRawRepeatedField()
374 Arena::CreateMessage<RepeatedField<uint64> >(arena_); in MutableRawRepeatedField()
[all …]
Dmap.h524 : arena_(NULL), in arena_() function
530 : arena_(arena), in arena_() function
536 : arena_(NULL), in Map()
544 : arena_(NULL), in arena_() function
553 if (arena_ == NULL) { in ~Map()
565 arena_, 0, hasher(), equal_to<Key>(), in Init()
566 MapAllocator<std::pair<const Key, MapPair<Key, T>*> >(arena_)); in Init()
569 Arena::Create<InnerMap>(arena_, 0, hasher(), Allocator(arena_)); in Init()
586 MapAllocator() : arena_(NULL) {} in MapAllocator()
587 explicit MapAllocator(Arena* arena) : arena_(arena) {} in MapAllocator()
[all …]
Dmap_field_lite.h88 Arena* arena_; variable
100 : arena_(NULL) { in MapFieldLite()
111 : arena_(arena) { in MapFieldLite()
230 if (arena_ == NULL) { in NewEntry()
233 return Arena::CreateMessage<EntryType>(arena_); in NewEntry()
245 return EntryType::EnumWrap(key, t, arena_); in NewEnumEntryWrapper()
256 return EntryType::Wrap(key, t, arena_); in NewEntryWrapper()
Dmetadata.h90 return PtrValue<Container>()->arena_; in arena()
142 Arena* arena_; member
153 container->arena_ = my_arena; in mutable_unknown_fields_slow()
Dmap_entry_lite.h354 MapEntryLite() : default_instance_(NULL), arena_(NULL) { in MapEntryLite()
362 : default_instance_(NULL), arena_(arena) { in MapEntryLite()
370 return arena_; in GetArenaNoVirtual()
381 Arena* arena_; variable
Dmap_field.h63 : arena_(NULL), in MapFieldBase()
69 : arena_(arena), in MapFieldBase()
138 Arena* arena_; variable
Dmap_field.cc66 if (repeated_field_ != NULL && arena_ == NULL) delete repeated_field_; in ~MapFieldBase()
127 repeated_field_ = Arena::CreateMessage<RepeatedPtrField<Message> >(arena_); in SyncRepeatedFieldWithMapNoLock()
269 if (MapFieldBase::arena_ == NULL) { in SyncRepeatedFieldWithMapNoLock()
274 MapFieldBase::arena_); in SyncRepeatedFieldWithMapNoLock()
Dextension_set_heavy.cc173 extension->message_value = prototype->New(arena_); in MutableMessage()
200 if (arena_ == NULL) { in ReleaseMessage()
204 if (arena_ != NULL) { in ReleaseMessage()
223 ::google::protobuf::Arena::CreateMessage<RepeatedPtrField<MessageLite> >(arena_); in MaybeNewRepeatedExtension()
246 result = prototype->New(arena_); in AddMessage()
Dmap_field_inl.h396 if (MapFieldBase::arena_ == NULL) { in SyncRepeatedFieldWithMapNoLock()
401 MapFieldBase::arena_); in SyncRepeatedFieldWithMapNoLock()
416 down_cast<EntryType*>(default_entry_->New(MapFieldBase::arena_)); in SyncRepeatedFieldWithMapNoLock()
Drepeated_field.h503 return arena_;
519 Arena* arena_;
1347 : arena_(NULL),
1354 : arena_(arena),
1364 TypeHandler::Delete(cast<TypeHandler>(rep_->elements[i]), arena_);
1366 if (arena_ == NULL) {
1427 TypeHandler::Delete(cast<TypeHandler>(rep_->elements[index]), arena_);
1441 TypeHandler::NewFromPrototype(prototype, arena_);
1672 cast<TypeHandler>(rep_->elements[current_size_]), arena_);
Dextension_set.h277 ::google::protobuf::Arena* GetArenaNoVirtual() const { return arena_; } in GetArenaNoVirtual()
612 ::google::protobuf::Arena* arena_;
/external/tensorflow/tensorflow/lite/
Darena_planner.cc35 arena_(kDefaultArenaAlignment), in ArenaPlanner()
48 return arena_.BasePointer(); in BasePointer()
54 TF_LITE_ENSURE_STATUS(arena_.Clear()); in ResetAllocations()
208 TF_LITE_ENSURE_STATUS(arena_.Commit(context_)); in Commit()
253 TF_LITE_ENSURE_STATUS(arena_.ResolveAlloc(context_, allocs_[tensor_index], in ResolveTensorAllocation()
267 TF_LITE_ENSURE_STATUS(arena_.Allocate( in CalculateTensorAllocation()
280 TF_LITE_ENSURE_STATUS(arena_.Deallocate(context_, allocs_[tensor_index])); in CalculateTensorDeallocation()
Darena_planner.h106 SimpleMemoryArena arena_; variable
/external/tensorflow/tensorflow/contrib/boosted_trees/resources/
Ddecision_tree_ensemble_resource.h35 boosted_trees::trees::DecisionTreeEnsembleConfig>(&arena_)) {} in DecisionTreeEnsembleResource()
165 arena_.Reset(); in Reset()
166 CHECK_EQ(0, arena_.SpaceAllocated()); in Reset()
168 boosted_trees::trees::DecisionTreeEnsembleConfig>(&arena_); in Reset()
174 protobuf::Arena arena_;
/external/grpc-grpc/test/cpp/microbenchmarks/
Dbm_chttp2_transport.cc196 arena_ = gpr_arena_create(4096); in Stream()
202 gpr_arena_destroy(arena_); in ~Stream()
211 gpr_arena_destroy(arena_); in Init()
212 arena_ = gpr_arena_create(4096); in Init()
216 nullptr, arena_); in Init()
248 gpr_arena* arena_; member in Stream
/external/tensorflow/tensorflow/core/kernels/boosted_trees/
Dresources.cc28 &arena_)) {} in BoostedTreesEnsembleResource()
299 arena_.Reset(); in Reset()
300 CHECK_EQ(0, arena_.SpaceAllocated()); in Reset()
302 protobuf::Arena::CreateMessage<boosted_trees::TreeEnsemble>(&arena_); in Reset()
Dresources.h166 protobuf::Arena arena_;
/external/tensorflow/tensorflow/core/graph/
Dgraph.cc352 arena_(8 << 10 /* 8kB */) { in Graph()
473 e = new (arena_.Alloc(sizeof(Edge))) Edge; // placement new in AddEdge()
748 node = new (arena_.Alloc(sizeof(Node))) Node; // placement new in AllocateNode()
Dgraph.h673 core::Arena arena_; variable
/external/perf_data_converter/src/quipper/
Dperf_reader.h275 Arena arena_; variable
Dperf_reader.cc187 : proto_(Arena::CreateMessage<PerfDataProto>(&arena_)), in PerfReader()
/external/protobuf/ruby/ext/google/protobuf_c/
Dupb.c5427 upb_arena_init(&e->arena_); in upb_env_init()
5432 upb_arena_init2(&e->arena_, mem, n, alloc); in upb_env_init2()
5437 upb_arena_uninit(&e->arena_); in upb_env_uninit()
5456 return upb_malloc(&e->arena_.alloc, size); in upb_env_malloc()
5460 return upb_realloc(&e->arena_.alloc, ptr, oldsize, size); in upb_env_realloc()
5464 upb_free(&e->arena_.alloc, ptr); in upb_env_free()
5468 return upb_arena_addcleanup(&e->arena_, func, ud); in upb_env_addcleanup()
5472 return upb_arena_bytesallocated(&e->arena_); in upb_env_bytesallocated()
Dupb.h700 Environment(void *mem, size_t len, Allocator *a) : arena_(mem, len, a) {
732 upb_arena arena_;