Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Phread (0.18 sec)

  1. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache.h

    #include <memory>
    #include <string>
    
    #include "absl/base/thread_annotations.h"
    #include "absl/synchronization/mutex.h"
    #include "tensorflow/c/env.h"
    #include "tensorflow/c/tf_status.h"
    
    namespace tf_gcs_filesystem {
    
    /// \brief An LRU cache of string keys and arbitrary values, with configurable
    /// max item age (in seconds) and max entries.
    ///
    /// This class is thread safe.
    template <typename T>
    class ExpiringLRUCache {
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 19:31:22 GMT 2020
    - 6.3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_experimental.h

    // Sets a custom Executor for the current thread. All nodes created by this
    // thread will be added to this Executor. It will override the current executor.
    TF_CAPI_EXPORT extern void TFE_ContextSetExecutorForThread(TFE_Context*,
                                                               TFE_Executor*);
    
    // Returns the Executor for the current thread.
    TF_CAPI_EXPORT extern TFE_Executor* TFE_ContextGetExecutorForThread(
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 39.5K bytes
    - Viewed (0)
  3. tensorflow/c/eager/parallel_device/parallel_device_lib.h

      const std::vector<std::string> underlying_devices_;
      // A sequence of thread wrappers, one per device, for executing operations in
      // parallel.
      //
      // Conceptually this is a thread pool with one thread per device. It requires
      // less synchronization than a thread pool would for this task, since Execute
      // acquires each thread in order (and so only one Execute will schedule
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Apr 25 15:21:13 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  4. tensorflow/c/env.h

    TF_CAPI_EXPORT extern TF_Thread* TF_StartThread(const TF_ThreadOptions* options,
                                                    const char* thread_name,
                                                    void (*work_func)(void*),
                                                    void* param);
    
    // Waits for the given thread to finish execution, then deletes it.
    TF_CAPI_EXPORT extern void TF_JoinThread(TF_Thread* thread);
    
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sat Jan 09 02:53:27 GMT 2021
    - 9.6K bytes
    - Viewed (0)
  5. tensorflow/c/c_api.h

    // --------------------------------------------------------------------------
    // The new graph construction API, still under development.
    
    // Represents a computation graph.  Graphs may be shared between sessions.
    // Graphs are thread-safe when used as directed below.
    typedef struct TF_Graph TF_Graph;
    
    // Return a new graph object.
    TF_CAPI_EXPORT extern TF_Graph* TF_NewGraph(void);
    
    // Destroy an options object. Graph will be deleted once no more
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
  6. tensorflow/c/eager/c_api.h

    // ops.
    TF_CAPI_EXPORT extern void TFE_ContextClearCaches(TFE_Context* ctx);
    
    // Sets a thread-local device placement policy. After this call, other calls to
    // TFE_Execute in the same thread will use the device policy specified here
    // instead of the device policy used to construct the context. This has no
    // effect on the device policy used by other program threads.
    TF_CAPI_EXPORT extern void TFE_ContextSetThreadLocalDevicePlacementPolicy(
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 22.8K bytes
    - Viewed (1)
  7. src/cmd/cgo/internal/test/cthread_windows.c

    	return 0;
    }
    
    void
    doAdd(int max, int nthread)
    {
    	enum { MaxThread = 20 };
    	int i;
    	uintptr_t thread_id[MaxThread];
    	
    	if(nthread > MaxThread)
    		nthread = MaxThread;
    	for(i=0; i<nthread; i++)
    		thread_id[i] = _beginthreadex(0, 0, addThread, &max, 0, 0);
    	for(i=0; i<nthread; i++) {
    		WaitForSingleObject((HANDLE)thread_id[i], INFINITE);
    		CloseHandle((HANDLE)thread_id[i]);
    	}
    }
    
    __stdcall
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed May 17 21:53:11 GMT 2023
    - 1.1K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.h

            block_fetcher_(block_fetcher),
            timer_seconds_(timer_seconds),
            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));
        }
    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)
  9. tensorflow/c/eager/immediate_execution_context.h

      virtual void SetJitCompileRewrite(bool enable) = 0;
    
      // Sets the device placement policy for the current thread.
      virtual void SetThreadLocalDevicePlacementPolicy(
          ContextDevicePlacementPolicy policy) = 0;
      // Returns the device placement policy for the current thread.
      virtual ContextDevicePlacementPolicy GetDevicePlacementPolicy() const = 0;
    
      // Configure graph collection in RunMetadata.
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 06 08:34:00 GMT 2023
    - 12.3K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/filesystem_interface.h

      ops->writable_file_ops_api = TF_WRITABLE_FILE_OPS_API;
      ops->writable_file_ops_size = TF_WRITABLE_FILE_OPS_SIZE;
      ops->read_only_memory_region_ops_abi = TF_READ_ONLY_MEMORY_REGION_OPS_ABI;
      ops->read_only_memory_region_ops_api = TF_READ_ONLY_MEMORY_REGION_OPS_API;
      ops->read_only_memory_region_ops_size = TF_READ_ONLY_MEMORY_REGION_OPS_SIZE;
    }
    
    /// Initializes a TensorFlow plugin.
    ///
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri May 27 17:36:54 GMT 2022
    - 53.1K bytes
    - Viewed (0)
Back to top