Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for thread_pool_ (0.17 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/main/java/org/codelibs/fess/suggest/Suggester.java

        protected final String index;
    
        protected final ExecutorService threadPool;
    
        public Suggester(final Client client, final SuggestSettings settings, final ReadingConverter readingConverter,
                final ReadingConverter contentsReadingConverter, final Normalizer normalizer, final SuggestAnalyzer analyzer,
                final ExecutorService threadPool) {
            this.client = client;
            this.suggestSettings = settings;
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/aot/tests/tfcompile_test.cc

    TEST(TFCompileTest, VariableReadonly) {
      Eigen::ThreadPool tp(1);
      Eigen::ThreadPoolDevice device(&tp, tp.NumThreads());
    
      VariableReadonlyComp fn;
      float x = 23;
      fn.set_var_x_data(&x);
    
      fn.set_thread_pool(&device);
      fn.Run();
      EXPECT_EQ(fn.result0(), 65);
      EXPECT_EQ(fn.var_x(), 23);
    }
    
    TEST(TFCompileTest, Variable) {
      Eigen::ThreadPool tp(1);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 26.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

        ExecutorService threadPool = Executors.newFixedThreadPool(nThreads);
        final CountDownLatch tasksFinished = new CountDownLatch(nTasks);
        for (int i = 0; i < nTasks; i++) {
          final String s = "a" + i;
          @SuppressWarnings("unused") // https://errorprone.info/bugpattern/FutureReturnValueIgnored
          Future<?> possiblyIgnoredError =
              threadPool.submit(
                  new Runnable() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Oct 03 20:10:02 UTC 2023
    - 23.2K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

        protected SuggestWriter suggestWriter;
    
        protected ExecutorService threadPool;
    
        public SuggestIndexer(final Client client, final String index, final ReadingConverter readingConverter,
                final ReadingConverter contentsReadingConverter, final Normalizer normalizer, final SuggestAnalyzer analyzer,
                final SuggestSettings settings, final ExecutorService threadPool) {
            this.client = client;
            this.index = index;
    
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  10. fess-crawler-es/src/main/java/org/codelibs/fess/crawler/client/FesenClient.java

                }
                logger.info("Disconnected to {}", address);
            }
            connected = false;
        }
    
        @Override
        public ThreadPool threadPool() {
            return client.threadPool();
        }
    
        @Override
        public AdminClient admin() {
            return client.admin();
        }
    
        @Override
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 19.8K bytes
    - Viewed (0)
Back to top