- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for mutex_lock (0.21 sec)
-
tensorflow/cc/training/coordinator.cc
{ mutex_lock l(mu_); if (should_stop_) { return Status(absl::StatusCode::kFailedPrecondition, "The coordinator has been stopped."); } } mutex_lock l(runners_lock_); runners_.push_back(std::move(runner)); return absl::OkStatus(); } bool Coordinator::AllRunnersStopped() { mutex_lock l(runners_lock_); for (const auto& runner : runners_) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 08:30:37 UTC 2024 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.h
// purpose is to catch bug on `tensorflow::mutex_lock`. We don't use // `tensorflow::mutex_lock` here but we have ops (`tf.MutexLock` and // `tf.ConsumeMutexLock`) with getter methods named as `mutex_lock()`. Need to // undefine here to avoid expanding the getter symbol as macro when including // both mutex.h and this header file. #undef mutex_lock #define GET_OP_FWD_DEFINES
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 22 14:25:57 UTC 2022 - 3K bytes - Viewed (0) -
tensorflow/cc/training/queue_runner.cc
Status QueueRunner::Join() { thread_pool_.reset(); mutex_lock l(mu_); return status_; } void QueueRunner::UpdateStatus(const Status& status) { { mutex_lock l(mu_); if (!status_.ok() || status.ok() || IsQueueClosed(status)) { return; } status_ = status; } if (coord_) { coord_->ReportStatus(status); } mutex_lock l(cb_mu_); for (auto& cb : callbacks_) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 08:30:37 UTC 2024 - 7K bytes - Viewed (0) -
tensorflow/compiler/jit/device_compilation_profiler.cc
} void DeviceCompilationProfiler::IncrementOngoingAsyncCompilations() { mutex_lock lock(mu_); num_ongoing_compilations_++; } void DeviceCompilationProfiler::DecrementOngoingAsyncCompilations() { mutex_lock lock(mu_); num_ongoing_compilations_--; } int64_t DeviceCompilationProfiler::GetNumOngoingAsyncCompilations() const { mutex_lock lock(mu_); return num_ongoing_compilations_; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 06:59:07 UTC 2024 - 8.5K bytes - Viewed (0) -
tensorflow/compiler/jit/device_compilation_cache.h
// protect the contents of the cache entry. Entry* entry; { mutex_lock lock(compile_cache_mu_); // Find cache entry. auto it = cache_.find(key); if (it == cache_.cend()) { return std::nullopt; } entry = it->second.get(); } mutex_lock lock(entry->mu); Value value = {/*compile_state=*/entry->compile_state,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Oct 12 08:49:52 UTC 2023 - 8.9K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_tensor.cc
} void XlaTensor::ResetDefinitionEvent(std::shared_ptr<se::Event> event, se::Stream* stream) { mutex_lock lock(mu_); definition_event_ = std::move(event); streams_defined_on_ = {stream}; } Status XlaTensor::RefreshStatusOfStreams() { mutex_lock lock(mu_); Status status; for (se::Stream* stream : streams_defined_on_) { status.Update(stream->RefreshStatus()); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 4.5K bytes - Viewed (0) -
tensorflow/c/env_test.cc
namespace { struct SomeThreadData { ::tensorflow::mutex mu; bool did_work = false; }; void SomeThreadFunc(void* data) { auto* real_data = static_cast<SomeThreadData*>(data); ::tensorflow::mutex_lock l(real_data->mu); real_data->did_work = true; } } // namespace TEST(TestEnv, TestThreads) { TF_ThreadOptions options; TF_DefaultThreadOptions(&options); SomeThreadData data;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Dec 10 20:52:48 UTC 2018 - 4.2K bytes - Viewed (0) -
tensorflow/c/python_api.cc
// Do not delete. Do not use. void ExportRecordMutation( // NOLINT: Intentionally unused function. TF_Graph* graph, const TF_Operation& op, const char* mutation_type) { mutex_lock l(graph->mu); RecordMutation(graph, op, mutation_type); } void AddControlInput(TF_Graph* graph, TF_Operation* op, TF_Operation* input) { TF_AddOperationControlInput(graph, op, input); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jul 12 18:48:56 UTC 2023 - 3.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc
#include "tensorflow/core/public/session.h" namespace mlir { namespace tf_saved_model { using llvm::SmallSet; using ::tensorflow::Device; using ::tensorflow::DeviceMgr; using ::tensorflow::mutex_lock; using ::tensorflow::ResourceHandle; using ::tensorflow::Session; using ::tensorflow::Status; using ::tensorflow::StatusOr; using ::tensorflow::Tensor; using ::tensorflow::Var; namespace {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 7.9K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_device_ops.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 3K bytes - Viewed (0)