Home
last modified time | relevance | path

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

12

/external/tensorflow/tensorflow/core/lib/gtl/
Dcleanup_test.cc37 auto s_cleaner = gtl::MakeCleanup([&s] { s.assign("cleaned"); }); in TEST()
49 auto s_cleaner = gtl::MakeCleanup([] { s.append(" clean"); }); in TEST()
58 auto s_cleaner = gtl::MakeCleanup([&s] { s.assign("cleaned"); }); in TEST()
84 auto c = gtl::MakeCleanup(Appender(&s, " cleaned")); in TEST()
94 auto clean1 = gtl::MakeCleanup(Appender(&s, " 1")); in TEST()
95 auto clean2 = gtl::MakeCleanup(Appender(&s, " 2")); in TEST()
107 auto clean1 = gtl::MakeCleanup(Appender(&s, " 1")); in TEST()
108 AnyCleanup clean2 = gtl::MakeCleanup(Appender(&s, " 2")); in TEST()
119 auto clean1 = gtl::MakeCleanup(Appender(&s, " 1")); in TEST()
120 auto clean2 = gtl::MakeCleanup(Appender(&s, " 2")); in TEST()
[all …]
Dcleanup.h106 TF_MUST_USE_RESULT Cleanup<DecayF> MakeCleanup(F&& f) { in MakeCleanup() function
/external/tensorflow/tensorflow/compiler/xla/service/
Dtransfer_manager.cc54 auto cleanup = tensorflow::gtl::MakeCleanup( in TransferLiteralFromDevice()
79 auto cleanup = tensorflow::gtl::MakeCleanup( in TransferLiteralFromDevice()
104 auto cleanup = tensorflow::gtl::MakeCleanup( in TransferLiteralToDevice()
119 auto cleanup = tensorflow::gtl::MakeCleanup( in TransferArrayFromDevice()
147 auto cleanup = tensorflow::gtl::MakeCleanup( in TransferArrayToDevice()
/external/tensorflow/tensorflow/core/framework/
Dmodel.cc83 auto cleanup = gtl::MakeCleanup( in OutputTimeLocked()
138 gtl::MakeCleanup([input_times]() { input_times->pop_back(); }); in OutputTimeLocked()
185 auto cleanup = gtl::MakeCleanup([input_times, old_input_time]() { in OutputTimeLocked()
238 gtl::MakeCleanup([input_times]() { input_times->pop_back(); }); in OutputTimeLocked()
279 auto cleanup = gtl::MakeCleanup([input_times, old_input_time]() { in OutputTimeLocked()
Dmodel_test.cc43 auto cleanup_meta = gtl::MakeCleanup([async_interleave_many, meta_source]() { in TEST_P()
49 auto cleanup1 = gtl::MakeCleanup([async_interleave_many, source1]() { in TEST_P()
55 auto cleanup2 = gtl::MakeCleanup([async_interleave_many, source2]() { in TEST_P()
/external/tensorflow/tensorflow/contrib/ignite/kernels/dataset/
Dignite_dataset_iterator.cc173 auto clean = gtl::MakeCleanup([err_msg_c] { delete[] err_msg_c; }); in CloseConnection()
252 auto clean = gtl::MakeCleanup([err_msg_c] { delete[] err_msg_c; }); in Handshake()
310 auto clean = gtl::MakeCleanup([err_msg_c] { delete[] err_msg_c; }); in ScanQuery()
362 auto clean = gtl::MakeCleanup([err_msg_c] { delete[] err_msg_c; }); in LoadNextPage()
/external/tensorflow/tensorflow/core/distributed_runtime/
Dremote_device.cc74 auto cleanup = gtl::MakeCleanup( in NewRemoteDevices()
Dmaster_session.cc1254 auto cleanup = gtl::MakeCleanup([&workers, worker_cache] { in CreateWorkerSessions()
1336 auto cleanup = gtl::MakeCleanup([&workers, worker_cache] { in DeleteWorkerSessions()
1623 auto cleanup = gtl::MakeCleanup([this] { MarkRunCompletion(); }); in DoPartialRun()
1858 auto cleanup = gtl::MakeCleanup([this] { MarkRunCompletion(); }); in DoRunWithLocalExecution()
1941 auto cleanup = gtl::MakeCleanup([this] { MarkRunCompletion(); }); in DoRunCallable()
/external/tensorflow/tensorflow/contrib/ignite/kernels/client/
Dignite_plain_client_windows.cc62 auto clean = gtl::MakeCleanup([result] { freeaddrinfo(result); }); in Connect()
/external/tensorflow/tensorflow/core/lib/gif/
Dgif_io.cc63 const auto cleanup = gtl::MakeCleanup([gif_file]() { in Decode()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dfunctionalize_control_flow.cc107 auto cleanup_handle = gtl::MakeCleanup([&]() { in FunctionalizeControlFlowForFunction()
Dgraph_compiler.cc112 auto output_registry_cleanup = gtl::MakeCleanup([&output_registry] { in Compile()
/external/tensorflow/tensorflow/core/kernels/data/
Dparallel_interleave_dataset_op.cc435 auto cleanup = gtl::MakeCleanup([this, ctx] { RecordStop(ctx.get()); }); in CurrentElementsManager()
537 auto cleanup = gtl::MakeCleanup([this, ctx] { RecordStop(ctx.get()); }); in FetchResults()
580 auto cleanup = gtl::MakeCleanup([this, ctx] { RecordStop(ctx.get()); }); in FutureElementsManager()
Ddataset_utils.cc32 auto cleanup = gtl::MakeCleanup([ctx, fn_handle]() { in ComputeShortCircuitIndices()
Dprefetch_dataset_op.cc283 auto cleanup = gtl::MakeCleanup([this, ctx] { RecordStop(ctx.get()); }); in PrefetchThread()
Dparallel_map_iterator.cc273 auto cleanup = gtl::MakeCleanup([this, ctx] { RecordStop(ctx.get()); }); in RunnerThread()
Diterator_ops.cc596 auto cleanup = gtl::MakeCleanup([raw_iterator, done] { in ComputeAsync()
692 auto cleanup = gtl::MakeCleanup([raw_iterator, done] { in ComputeAsync()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dnvptx_compiler.cc562 auto ptx_cleaner = tensorflow::gtl::MakeCleanup([&ptx_path] { in CompilePtx()
574 auto cubin_cleaner = tensorflow::gtl::MakeCleanup([&cubin_path] { in CompilePtx()
/external/tensorflow/tensorflow/core/kernels/data/experimental/
Dnuma_map_and_batch_dataset_op.cc236 auto cleanup = gtl::MakeCleanup( in GetNextInternal()
967 auto cleanup = gtl::MakeCleanup([this, &ctx] { in RunnerThread()
1029 gtl::MakeCleanup([this, numa_node, thread_num, &ctx]() { in WorkerThread()
Dindexed_dataset_op.cc355 auto cleanup = gtl::MakeCleanup([materialized_resource] { in Compute()
/external/tensorflow/tensorflow/compiler/xrt/kernels/
Dxrt_execute_op.cc177 auto buffer_releaser = gtl::MakeCleanup([&input_tuples]() { in DoWork()
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dcpu_transfer_manager.cc115 auto cleanup = tensorflow::gtl::MakeCleanup([&buffers]() { in TransferLiteralToInfeed()
/external/tensorflow/tensorflow/core/platform/cloud/
Dram_file_block_cache.cc100 gtl::MakeCleanup([this, &downloaded_block, &key, &block] { in MaybeFetch()
/external/tensorflow/tensorflow/core/kernels/
Dbatch_kernels.cc497 gtl::MakeCleanup([&cleanup_fn, &status] { cleanup_fn(status); }); in ProcessFuncBatch()
533 auto run_finally = gtl::MakeCleanup([&]() { in ProcessFuncBatch()
/external/tensorflow/tensorflow/core/common_runtime/
Dconstant_folding.cc627 auto delete_tensors = gtl::MakeCleanup([&graph_runner, &outputs] { in ConstantFold()

12