- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for TF_DefaultThreadOptions (0.23 sec)
-
tensorflow/c/env_test.cc
::tensorflow::mutex_lock l(real_data->mu); real_data->did_work = true; } } // namespace TEST(TestEnv, TestThreads) { TF_ThreadOptions options; TF_DefaultThreadOptions(&options); SomeThreadData data; TF_Thread* thread = TF_StartThread(&options, "SomeThreadName", &SomeThreadFunc, &data); TF_JoinThread(thread); ::tensorflow::mutex_lock l(data.mu);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Dec 10 20:52:48 GMT 2018 - 4.2K bytes - Viewed (0) -
tensorflow/c/env.h
// Returns the number of seconds since the Unix epoch. TF_CAPI_EXPORT extern uint64_t TF_NowSeconds(void); // Populates a TF_ThreadOptions struct with system-default values. TF_CAPI_EXPORT extern void TF_DefaultThreadOptions(TF_ThreadOptions* options); // Returns a new thread that is running work_func and is identified // (for debugging/performance-analysis) by thread_name. //
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Sat Jan 09 02:53:27 GMT 2021 - 9.6K bytes - Viewed (0) -
tensorflow/c/env.cc
} // Returns the number of seconds since the Unix epoch. TF_CAPI_EXPORT extern uint64_t TF_NowSeconds(void) { return ::tensorflow::Env::Default()->NowSeconds(); } void TF_DefaultThreadOptions(TF_ThreadOptions* options) { options->stack_size = 0; options->guard_size = 0; options->numa_node = -1; } TF_Thread* TF_StartThread(const TF_ThreadOptions* options,
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Aug 11 01:20:50 GMT 2021 - 7K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.h
pruning_thread_(nullptr, [](TF_Thread* thread) { TF_JoinThread(thread); }) { if (max_staleness_ > 0) { TF_ThreadOptions thread_options; TF_DefaultThreadOptions(&thread_options); pruning_thread_.reset( TF_StartThread(&thread_options, "TF_prune_FBC", PruneThread, this)); } TF_VLog(1, "GCS file block cache is %s.\n",
C - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Mon Aug 31 04:46:34 GMT 2020 - 10.6K bytes - Viewed (0)