- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 381 for kAsync (0.12 sec)
-
tensorflow/compiler/jit/device_compilation_profiler.cc
std::optional<int64_t> compile_threshold; if (compile_mode == DeviceCompileMode::kLazy) { compile_threshold = kDefaultCompilationThreshold; } else if (compile_mode == DeviceCompileMode::kAsync) { compile_threshold = 0; // for now, always compile right away. } if (compile_mode == DeviceCompileMode::kStrict) { // Lazy compilation is disabled. return true; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 06:59:07 UTC 2024 - 8.5K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_compile_util.h
namespace tensorflow { // The number of compiler threads to use for asynchronous device compilation. inline constexpr int64_t kNumAsyncDeviceCompilerThreads = 10; enum class DeviceCompileMode { kLazy, kStrict, kAsync, }; enum class DeviceCompileState { kUncompiled, kCompiling, kCompiled, }; // Creates a single-node graph using the specified `node_def` as the only op
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 21 09:53:30 UTC 2024 - 2.4K bytes - Viewed (0) -
tensorflow/compiler/jit/device_compiler_test.cc
NameAttrList fn; fn.set_name("foo"); // Using a mock here to determine when the async compilation finishes. This is // to avoid using absl::SleepFor(). // `RegisterCompilation` is the last call that happens just before the async // compilation completes. We use the completion of this call to determine when // the compilation finshes to verify expected behavior.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 06:33:33 UTC 2024 - 19.8K bytes - Viewed (0) -
tensorflow/compiler/jit/device_compiler.h
// Explicitly capture all required data by value for async compilation. // Update compilation state in cache. cache_->Store(signature, DeviceCompileState::kCompiling, std::nullopt, std::nullopt, std::nullopt); profiler->IncrementOngoingAsyncCompilations(); // Don't move the above code into the thread function as it synchronously // updates the async compilation state!
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 22.1K bytes - Viewed (0) -
tensorflow/compiler/jit/kernels/xla_ops.cc
} DeviceCompileMode compile_mode = [&] { if (must_compile_) { return DeviceCompileMode::kStrict; } return GetXlaOpsCommonFlags()->tf_xla_async_compilation ? DeviceCompileMode::kAsync : DeviceCompileMode::kLazy; }(); bool use_pjrt = GetXlaOpsCommonFlags() ->tf_xla_use_device_api.IsEnabledInXlaCompileAndRunForDevice(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 22:46:36 UTC 2024 - 41.4K bytes - Viewed (0) -
docs/en/docs/async.md
```Python hl_lines="2-3" @app.get('/burgers') async def read_burgers(): burgers = await get_burgers(2) return burgers ``` ### More technical details You might have noticed that `await` can only be used inside of functions defined with `async def`.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Mon May 20 00:24:48 UTC 2024 - 23K bytes - Viewed (0) -
docs/pt/docs/async.md
```Python hl_lines="2 3" @app.get('/burgers') async def read_burgers(): burgers = await get_burgers(2) return burgers ``` ### Mais detalhes técnicos Você deve ter observado que `await` pode ser usado somente dentro de funções definidas com `async def`.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 22.2K bytes - Viewed (0) -
docs/ru/docs/async.md
``` В этом случае *функции обработки пути* необходимо объявлять с использованием синтаксиса `async def`: ```Python hl_lines="2" @app.get('/') async def read_results(): results = await some_library() return results ``` !!! note `await` можно использовать только внутри функций, объявленных с использованием `async def`. --- Если вы обращаетесь к сторонней библиотеке, которая с чем-то взаимодействует
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 39.9K bytes - Viewed (0) -
docs/tr/docs/async.md
`await` in yalnızca `async def` ile tanımlanan fonksıyonların içinde kullanılabileceğini fark etmişsinizdir. Ama aynı zamanda, `async def` ile tanımlanan fonksiyonların "await" ile beklenmesi gerekir. Bu nedenle, "`async def` içeren fonksiyonlar yalnızca "`async def` ile tanımlanan fonksiyonların içinde çağrılabilir. Yani yumurta mı tavukdan, tavuk mu yumurtadan gibi ilk `async` fonksiyonu nasıl çağırılır?
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 21.9K bytes - Viewed (0) -
docs/es/docs/async.md
```Python hl_lines="2" @app.get('/') async def read_results(): results = await some_library() return results ``` !!! note "Nota" Solo puedes usar `await` dentro de funciones creadas con `async def`. ---
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 24.9K bytes - Viewed (0)