Home
last modified time | relevance | path

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

123

/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/angle/third_party/abseil-cpp/absl/cleanup/
Dcleanup_test.cc97 auto cleanup = absl::MakeCleanup(std::move(callback)); in TYPED_TEST()
105 auto cleanup = absl::MakeCleanup(&FnPtrFunction); in TYPED_TEST()
112 auto cleanup = absl::MakeCleanup(FnPtrFunction); in TYPED_TEST()
148 auto factory_cleanup = absl::MakeCleanup(callback); in TYPED_TEST()
157 absl::MakeCleanup(FunctorClassFactory::AsCallback([] {})); in TYPED_TEST()
166 absl::MakeCleanup(StdFunctionFactory::AsCallback([] {})); in TYPED_TEST()
174 auto factory_cleanup = absl::MakeCleanup(&FnPtrFunction); in TYPED_TEST()
182 auto factory_cleanup = absl::MakeCleanup(FnPtrFunction); in TYPED_TEST()
196 absl::MakeCleanup(TypeParam::AsCallback([&called] { called = true; })); in TYPED_TEST()
207 auto cleanup = absl::MakeCleanup(TypeParam::AsCallback(&FnPtrFunction)); in TYPED_TEST()
[all …]
Dcleanup.h127 absl::Cleanup<cleanup_internal::Tag, Callback> MakeCleanup(Callback callback) { in MakeCleanup() function
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Deval_util.cc39 using gtl::MakeCleanup;
75 auto clean_status = MakeCleanup([status] { TF_DeleteStatus(status); }); in EvaluateOperation()
89 auto clean_op = MakeCleanup([op] { TFE_DeleteOp(op); }); in EvaluateOperation()
112 MakeCleanup([tf_tensor] { TF_DeleteTensor(tf_tensor); }); in EvaluateOperation()
116 MakeCleanup([input_handle] { TFE_DeleteTensorHandle(input_handle); }); in EvaluateOperation()
126 auto clean_outputs = MakeCleanup([&outputs] { in EvaluateOperation()
138 MakeCleanup([tf_tensor] { TF_DeleteTensor(tf_tensor); }); in EvaluateOperation()
/external/llvm-project/llvm/test/CodeGen/X86/
Dnoreturn-call-win64.ll3 %struct.MakeCleanup = type { i8 }
60 %o = alloca %struct.MakeCleanup, align 1
85 call void @"??1MakeCleanup@@QEAA@XZ"(%struct.MakeCleanup* nonnull %o)
90 call void @"??1MakeCleanup@@QEAA@XZ"(%struct.MakeCleanup* nonnull %o) [ "funclet"(token %cp) ]
99 declare dso_local void @"??1MakeCleanup@@QEAA@XZ"(%struct.MakeCleanup*)
/external/tensorflow/tensorflow/core/tpu/kernels/
Dtpu_compilation_cache_rpc_support.cc49 auto cleanup = xla::MakeCleanup([&serialized_response_proto]() { in DeserializeRpcResponseToCacheEntry()
95 auto cleanup_executable = xla::MakeCleanup([&executable]() { in SerializeCacheEntryToBufferSlices()
120 auto cleanup_compiler_metadata = xla::MakeCleanup([&compiler_metadata]() { in SerializeCacheEntryToBufferSlices()
Dtpu_pod_state.cc75 auto cleanup = xla::MakeCleanup([&status, &server_address_output]() { in GetServerAddressAndPort()
151 xla::MakeCleanup([&status]() { TF_DeleteStatus(status); }); in ConstructTpuPodState()
158 auto host_config_cleanup = xla::MakeCleanup([&host_config_output]() { in ConstructTpuPodState()
Dtpu_configuration_ops.cc204 auto cleanup = xla::MakeCleanup([&status, &tpu_topology_output]() { in Compute()
293 auto cleanup = xla::MakeCleanup([&status, &device_id_output]() { in Compute()
327 auto cleanup_server_address = xla::MakeCleanup([&server_address_output]() { in Compute()
Dtpu_program_group.cc252 auto cleanup = gtl::MakeCleanup([serialized_compilation_request] { in CompileAndBuild()
286 auto cleanup = gtl::MakeCleanup([serialized_compilation_request] { in CompileAndBuild()
Dtpu_op_util.cc139 auto buffer_cleanup = gtl::MakeCleanup([result]() { in CreateCompilationCacheKey()
/external/tensorflow/tensorflow/stream_executor/gpu/
Dasm_compiler.cc216 auto ptx_cleaner = tensorflow::gtl::MakeCleanup([&ptx_path] { in CompileGpuAsm()
225 auto cubin_cleaner = tensorflow::gtl::MakeCleanup([&cubin_path] { in CompileGpuAsm()
304 auto image_files_cleaner = tensorflow::gtl::MakeCleanup([&image_paths] { in BundleGpuAsm()
316 auto result_file_cleaner = tensorflow::gtl::MakeCleanup([&result_path] { in BundleGpuAsm()
401 auto image_files_cleaner = tensorflow::gtl::MakeCleanup([&image_paths] { in BundleGpuAsm()
413 auto result_file_cleaner = tensorflow::gtl::MakeCleanup([&result_path] { in BundleGpuAsm()
/external/tensorflow/tensorflow/compiler/xla/service/
Dtransfer_manager.cc57 auto cleanup = tensorflow::gtl::MakeCleanup( in TransferLiteralFromDevice()
82 auto cleanup = tensorflow::gtl::MakeCleanup( in TransferLiteralFromDevice()
107 auto cleanup = tensorflow::gtl::MakeCleanup( in TransferLiteralToDevice()
122 auto cleanup = tensorflow::gtl::MakeCleanup( in TransferArrayFromDevice()
150 auto cleanup = tensorflow::gtl::MakeCleanup( in TransferArrayToDevice()
/external/tensorflow/tensorflow/core/tpu/
Dtpu_on_demand_compiler.cc223 auto cleanup = xla::MakeCleanup([&hlo_module]() { in RunHloPasses()
251 auto cleanup = xla::MakeCleanup([&hlo_module]() { in RunBackend()
286 xla::MakeCleanup([&se_module_group, module_group_size]() { in Compile()
334 xla::MakeCleanup([&c_module]() { ApiConverter::Free(&c_module); }); in Compile()
/external/tensorflow/tensorflow/c/experimental/filesystem/plugins/gcs/
Dcleanup.h103 Cleanup<DecayF> MakeCleanup(F&& f) { in MakeCleanup() function
/external/tensorflow/tensorflow/c/eager/
Dtape.h699 auto cleanup = gtl::MakeCleanup([this, &state]() { in ComputeGradient()
943 gtl::MakeCleanup([&call_state] { call_state.backward_tape = nullptr; }); in ForwardpropFromTape()
973 auto delete_grad = gtl::MakeCleanup([&grad, this] { in ForwardpropFromTape()
1053 auto delete_new_zeros = gtl::MakeCleanup([&new_zeros, this] { in Accumulate()
1082 auto pop_call_state = gtl::MakeCleanup([this] { this->call_state_.pop(); }); in Accumulate()
Dcustom_device_test.cc128 auto handle_cleaner = tensorflow::gtl::MakeCleanup( in TEST()
158 auto value_cleaner = tensorflow::gtl::MakeCleanup( in TEST()
213 auto handle_cleaner = tensorflow::gtl::MakeCleanup( in TEST()
/external/tensorflow/tensorflow/core/distributed_runtime/
Dremote_device.cc96 auto cleanup = gtl::MakeCleanup( in NewRemoteDevices()
/external/tensorflow/tensorflow/core/framework/
Dmodel_test.cc46 auto cleanup_meta = gtl::MakeCleanup([async_interleave_many, meta_source]() { in TEST_P()
52 auto cleanup1 = gtl::MakeCleanup([async_interleave_many, source1]() { in TEST_P()
58 auto cleanup2 = gtl::MakeCleanup([async_interleave_many, source2]() { in TEST_P()
607 auto cleanup_meta = gtl::MakeCleanup([async_interleave_many, meta_source]() { in TEST()
618 auto cleanup1 = gtl::MakeCleanup([async_interleave_many, source1]() { in TEST()
624 auto cleanup2 = gtl::MakeCleanup([async_interleave_many, source2]() { in TEST()
/external/tensorflow/tensorflow/core/lib/gif/
Dgif_io.cc65 const auto cleanup = gtl::MakeCleanup([gif_file]() { in Decode()
/external/tensorflow/tensorflow/compiler/xrt/kernels/
Dtpu_compile_ops.cc150 auto cancellation_cleanup = xla::MakeCleanup([ctx, token, done] { in Compute()
/external/tensorflow/tensorflow/core/kernels/data/
Dparallel_batch_dataset_op.cc221 gtl::MakeCleanup([result]() TF_EXCLUSIVE_LOCKS_REQUIRED( in GetNextInternal()
403 gtl::MakeCleanup([this, &ctx]() { RecordStop(ctx.get()); }); in RunnerThread()
/external/tensorflow/tensorflow/core/common_runtime/
Dkernel_benchmark_testlib.cc53 auto cleanup = gtl::MakeCleanup([g, init]() { in Benchmark()
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dcpu_transfer_manager.cc115 auto cleanup = tensorflow::gtl::MakeCleanup([&buffers]() { in TransferLiteralToInfeed()
/external/tensorflow/tensorflow/core/data/service/
Dtask_runner.cc181 auto cleanup = gtl::MakeCleanup([&]() TF_EXCLUSIVE_LOCKS_REQUIRED(mu_) { in PrepareRound()

123