Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for thread_pool_ (0.54 sec)

  1. tensorflow/cc/training/queue_runner.cc

    Status QueueRunner::Start(Session* sess, int wait_for) {
      counter_.reset(new BlockingCounter(runs_));
      for (const string& enqueue_op : enqueue_op_names_) {
        thread_pool_->Schedule(
            std::bind(&QueueRunner::Run, this, sess, enqueue_op));
      }
      if (coord_) {
        thread_pool_->Schedule(std::bind(&QueueRunner::Stop, this, sess));
      }
      // Wait for up to 'wait_for' milliseconds.
      if (wait_for > 0) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:30:37 UTC 2024
    - 7K bytes
    - Viewed (0)
  2. tensorflow/cc/training/coordinator_test.cc

                         Notification* start = nullptr) {
        thread_pool_->Schedule(
            std::bind(&MockQueueRunner::CountThread, this, counter, until, start));
      }
    
      void StartSettingStatus(const Status& status, BlockingCounter* counter,
                              Notification* start) {
        thread_pool_->Schedule(std::bind(&MockQueueRunner::SetStatusThread, this,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 23 09:10:43 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/xla_device_context.h

      xla::TransferManager* transfer_manager_;
    
      XlaShapeLayoutHelpers::ShapeDeterminationFns shape_determination_fns_;
    
      // Thread pool used for running closures
      thread::ThreadPool* thread_pool_;
    
      absl::Mutex mu_;
      int next_stream_ TF_GUARDED_BY(mu_) = 0;
    };
    
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  4. tensorflow/cc/training/queue_runner.h

      string close_op_name_;
      string cancel_op_name_;
      // code::Code casted to int to avoid a hash function.
      std::unordered_set<int> queue_closed_exception_types_;
    
      std::unique_ptr<thread::ThreadPool> thread_pool_;
      mutex mu_;
      int runs_ = 0;
      Status status_ TF_GUARDED_BY(mu_);
      Status enqueue_status_ TF_GUARDED_BY(mu_);
      std::unique_ptr<BlockingCounter> counter_;
    
      Coordinator* coord_;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 31 18:27:00 UTC 2022
    - 5K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/xla_device_context.cc

          client_(client),
          transfer_manager_(client->backend().transfer_manager()),
          shape_determination_fns_(std::move(shape_determination_fns)),
          thread_pool_(thread_pool) {
      CHECK(host_to_device_stream_ != nullptr);
      CHECK(stream_ != nullptr);
    }
    
    void XlaDeviceContext::CopyTensorInSameDevice(const Tensor* input_tensor,
                                                  Device* device,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/xla_device.cc

      VLOG(1) << "XlaDevice options: use_multiple_streams: "
              << options.use_multiple_streams << " use_global_compute_stream: "
              << options.use_global_compute_stream;
      thread_pool_.reset(new thread::ThreadPool(session_options.env, "xla_device",
                                                /*num_threads=*/1));
    
      // We have multiple device to device streams to allow for some concurrency
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 21:05:42 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/xla_device.h

      std::unique_ptr<DeviceBase::AcceleratorDeviceInfo> accelerator_device_info_
          TF_GUARDED_BY(mu_);
    
      // Thread pool used for running closures
      std::unique_ptr<thread::ThreadPool> thread_pool_;
    
      // True if the device allows XlaDevice::Sync to be called on completion
      // regardless of status.
      bool sync_on_completion_ TF_GUARDED_BY(mu_) = true;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  8. tensorflow/cc/client/client_session_test.cc

      {
        thread::ThreadPool thread_pool(Env::Default(), "pool", 2);
        thread_pool.Schedule([&session, a]() {
          std::vector<Tensor> outputs;
          TF_EXPECT_OK(session.Run({a}, &outputs));
          test::ExpectTensorEqual<int>(outputs[0],
                                       test::AsTensor<int>({4, 6}, {2}));
        });
        thread_pool.Schedule([&session, b]() {
          std::vector<Tensor> outputs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/SuggesterBuilder.java

        }
    
        public SuggesterBuilder analyzer(final SuggestAnalyzer analyzer) {
            this.analyzer = analyzer;
            return this;
        }
    
        public SuggesterBuilder threadPool(final ExecutorService threadPool) {
            this.threadPool = threadPool;
            return this;
        }
    
        public SuggesterBuilder threadPoolSize(final int threadPoolSize) {
            this.threadPoolSize = threadPoolSize;
            return this;
        }
    
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/QueuesTest.java

       * be a SynchronousQueue.
       */
      private ExecutorService threadPool;
    
      @Override
      public void setUp() {
        threadPool = newCachedThreadPool();
      }
    
      @Override
      public void tearDown() throws InterruptedException {
        threadPool.shutdown();
        assertTrue("Some worker didn't finish in time", threadPool.awaitTermination(10, SECONDS));
      }
    
      private static <T> int drain(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 12K bytes
    - Viewed (0)
Back to top