Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,077 for kAsync (0.1 sec)

  1. tensorflow/compiler/jit/device_compilation_profiler_test.cc

      EXPECT_TRUE(
          profiler->ShouldCompileCluster(function, DeviceCompileMode::kAsync, 0));
    
      // Should not allow compilation since this is not the first execution and
      // we've already reached the maximum number of ongoing compilations allowed.
      profiler->RegisterExecution(function);
      EXPECT_FALSE(
          profiler->ShouldCompileCluster(function, DeviceCompileMode::kAsync, 0));
    
      profiler->DecrementOngoingAsyncCompilations();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Dec 22 21:06:33 UTC 2022
    - 8.7K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. tensorflow/compiler/jit/device_compiler_disable_test.cc

      EXPECT_FALSE(status.ok());
      EXPECT_TRUE(absl::StrContains(status.message(), "XLA compilation disabled"));
    
      // Check that async compilation is disallowed.
      status = xla_device_compiler->CompileIfNeeded(
          XlaCompiler::Options{}, fn, args, XlaCompiler::CompileOptions{},
          DeviceCompileMode::kAsync, profiler, &compilation_result, &executable);
      EXPECT_FALSE(status.ok());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. test/fixedbugs/issue19467.dir/mysync.go

    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package mysync
    
    import "runtime"
    
    type WaitGroup struct {
    	Callers []uintptr
    }
    
    func (wg *WaitGroup) Add(x int) {
    	wg.Callers = make([]uintptr, 32)
    	n := runtime.Callers(1, wg.Callers)
    	wg.Callers = wg.Callers[:n]
    }
    
    func (wg *WaitGroup) Done() {
    	wg.Add(-1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 29 17:27:49 UTC 2017
    - 421 bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top