Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for threadPool (0.21 sec)

  1. fastapi/datastructures.py

            To be awaitable, compatible with async, this is run in threadpool.
            """
            return await super().seek(offset)
    
        async def close(self) -> None:
            """
            Close the file.
    
            To be awaitable, compatible with async, this is run in threadpool.
            """
            return await super().close()
    
        @classmethod
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 5.6K bytes
    - Viewed (1)
  2. tensorflow/compiler/mlir/tfrt/runtime_fallback/runtime_fallback_executor.cc

    #include "tensorflow/compiler/mlir/tfrt/transforms/passes.h"
    #include "tensorflow/compiler/mlir/tfrt/utils/host_context.h"
    #include "tensorflow/core/framework/tensor.h"
    #include "tensorflow/core/platform/threadpool.h"
    #include "tensorflow/core/platform/threadpool_interface.h"
    #include "tensorflow/core/runtime_fallback/kernel/kernel_fallback_execute_compat_eager.h"
    #include "tensorflow/core/runtime_fallback/runtime/kernel_utils.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 00:18:59 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. docs/fr/docs/async.md

    ### Fonctions de chemin
    
    Quand vous déclarez une *fonction de chemin* avec un `def` normal et non `async def`, elle est exécutée dans un groupe de threads (threadpool) externe qui est ensuite attendu, plutôt que d'être appelée directement (car cela bloquerait le serveur).
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Mar 31 23:52:53 UTC 2024
    - 24K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_experimental.cc

      // TODO(b/113217601): This is needed for EagerContext::runner_ to use a
      // threadpool, so that we avoid the possibility of running the runner_ in the
      // threadpool of GPU event mgr, as that can trigger more callbacks to be
      // scheduled on that same threadpool, causing a deadlock in cases where the
      // caller of event_mgr->ThenExecute() blocks on the completion of the callback
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  5. tensorflow/cc/training/queue_runner.cc

        }
      }
    
      int nthreads = runs_;
      if (coord_) {
        // One more thread to call Stop()
        nthreads++;
      }
      thread_pool_.reset(new thread::ThreadPool(
          Env::Default(), SanitizeThreadSuffix(queue_name_), nthreads));
    
      return absl::OkStatus();
    }
    
    QueueRunner::~QueueRunner() {
      // Cannot run Stop() here because the session might already be closed or
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:30:37 UTC 2024
    - 7K bytes
    - Viewed (0)
  6. docs/de/docs/async.md

    ### Pfadoperation-Funktionen
    
    Wenn Sie eine *Pfadoperation-Funktion* mit normalem `def` anstelle von `async def` deklarieren, wird sie in einem externen Threadpool ausgeführt, der dann `await`et wird, anstatt direkt aufgerufen zu werden (da dies den Server blockieren würde).
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 18:06:16 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  7. docs/en/docs/async.md

    ### Path operation functions
    
    When you declare a *path operation function* with normal `def` instead of `async def`, it is run in an external threadpool that is then awaited, instead of being called directly (as it would block the server).
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 00:24:48 UTC 2024
    - 23K bytes
    - Viewed (0)
  8. docs/es/docs/async.md

    ### Path operation functions
    
    Cuando declaras una *path operation function* con `def` normal en lugar de `async def`, se ejecuta en un threadpool externo que luego es "<abbr title="En español: esperado. Usando await.">awaited</abbr>", en lugar de ser llamado directamente (ya que bloquearía el servidor).
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  9. docs/pt/docs/async.md

    ### Funções de operação de rota
    
    Quando você declara uma *função de operação de rota* com `def` normal ao invés de `async def`, ela é rodada em uma threadpool externa que então é aguardada, ao invés de ser chamada diretamente (ela poderia bloquear o servidor).
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/xla_device_context.cc

        std::vector<std::shared_ptr<se::Stream>> device_to_device_streams,
        xla::LocalClient* client,
        XlaShapeLayoutHelpers::ShapeDeterminationFns shape_determination_fns,
        thread::ThreadPool* thread_pool)
        : stream_(std::move(compute_stream)),
          host_to_device_stream_(std::move(host_to_device_stream)),
          device_to_host_stream_(std::move(device_to_host_stream)),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top