/external/tensorflow/tensorflow/core/lib/gtl/ |
D | cleanup_test.cc | 37 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 …]
|
D | cleanup.h | 106 TF_MUST_USE_RESULT Cleanup<DecayF> MakeCleanup(F&& f) { in MakeCleanup() function
|
/external/angle/third_party/abseil-cpp/absl/cleanup/ |
D | cleanup_test.cc | 97 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 …]
|
D | cleanup.h | 127 absl::Cleanup<cleanup_internal::Tag, Callback> MakeCleanup(Callback callback) { in MakeCleanup() function
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/ |
D | eval_util.cc | 39 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/ |
D | noreturn-call-win64.ll | 3 %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/ |
D | tpu_compilation_cache_rpc_support.cc | 49 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()
|
D | tpu_pod_state.cc | 75 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()
|
D | tpu_configuration_ops.cc | 204 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()
|
D | tpu_program_group.cc | 252 auto cleanup = gtl::MakeCleanup([serialized_compilation_request] { in CompileAndBuild() 286 auto cleanup = gtl::MakeCleanup([serialized_compilation_request] { in CompileAndBuild()
|
D | tpu_op_util.cc | 139 auto buffer_cleanup = gtl::MakeCleanup([result]() { in CreateCompilationCacheKey()
|
/external/tensorflow/tensorflow/stream_executor/gpu/ |
D | asm_compiler.cc | 216 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/ |
D | transfer_manager.cc | 57 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/ |
D | tpu_on_demand_compiler.cc | 223 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/ |
D | cleanup.h | 103 Cleanup<DecayF> MakeCleanup(F&& f) { in MakeCleanup() function
|
/external/tensorflow/tensorflow/c/eager/ |
D | tape.h | 699 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()
|
D | custom_device_test.cc | 128 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/ |
D | remote_device.cc | 96 auto cleanup = gtl::MakeCleanup( in NewRemoteDevices()
|
/external/tensorflow/tensorflow/core/framework/ |
D | model_test.cc | 46 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/ |
D | gif_io.cc | 65 const auto cleanup = gtl::MakeCleanup([gif_file]() { in Decode()
|
/external/tensorflow/tensorflow/compiler/xrt/kernels/ |
D | tpu_compile_ops.cc | 150 auto cancellation_cleanup = xla::MakeCleanup([ctx, token, done] { in Compute()
|
/external/tensorflow/tensorflow/core/kernels/data/ |
D | parallel_batch_dataset_op.cc | 221 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/ |
D | kernel_benchmark_testlib.cc | 53 auto cleanup = gtl::MakeCleanup([g, init]() { in Benchmark()
|
/external/tensorflow/tensorflow/compiler/xla/service/cpu/ |
D | cpu_transfer_manager.cc | 115 auto cleanup = tensorflow::gtl::MakeCleanup([&buffers]() { in TransferLiteralToInfeed()
|
/external/tensorflow/tensorflow/core/data/service/ |
D | task_runner.cc | 181 auto cleanup = gtl::MakeCleanup([&]() TF_EXCLUSIVE_LOCKS_REQUIRED(mu_) { in PrepareRound()
|