Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 587 for kAsync (0.24 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. docs/en/docs/advanced/async-tests.md

    Let's look at how we can make that work.
    
    ## pytest.mark.anyio
    
    If we want to call asynchronous functions in our tests, our test functions have to be asynchronous. AnyIO provides a neat plugin for this, that allows us to specify that some test functions are to be called asynchronously.
    
    ## HTTPX
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Jan 13 12:07:15 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. docs/de/docs/advanced/async-tests.md

    ## HTTPX
    
    Auch wenn Ihre **FastAPI**-Anwendung normale `def`-Funktionen anstelle von `async def` verwendet, handelt es sich darunter immer noch um eine `async`hrone Anwendung.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 20:25:57 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. docs/em/docs/advanced/async-tests.md

    βž– πŸ’ͺ βš™οΈ πŸ” πŸ”’ πŸ‘† πŸ’― πŸ’ͺ ⚠, πŸ–Ό, πŸ•β” πŸ‘† πŸ”¬ πŸ‘† πŸ’½ πŸ”. 🌈 πŸ‘† πŸ’š πŸ’― πŸ“¨ πŸ“¨ πŸ‘† FastAPI 🈸 &amp; ‴️ βœ” πŸ‘ˆ πŸ‘† πŸ‘©β€πŸ’» βͺ ✍ β˜‘ πŸ’½ πŸ’½, βͺ βš™οΈ πŸ” πŸ’½ πŸ—ƒ.
    
    ➑️ πŸ‘€ ❔ πŸ‘₯ πŸ’ͺ βš’ πŸ‘ˆ πŸ‘·.
    
    ## pytest.mark.anyio
    
    πŸš₯ πŸ‘₯ πŸ’š πŸ€™ πŸ” πŸ”’ πŸ‘† πŸ’―, πŸ‘† πŸ’― πŸ”’ βœ”οΈ πŸ”. AnyIO 🚚 πŸ‘Œ πŸ“ πŸ‘‰, πŸ‘ˆ βœ” πŸ‘₯ βœ” πŸ‘ˆ πŸ’― πŸ”’ πŸ€™ πŸ”.
    
    ## πŸ‡ΈπŸ‡²
    
    πŸš₯ πŸ‘† **FastAPI** 🈸 βš™οΈ 😐 `def` πŸ”’ ↩️ `async def`, ⚫️ `async` 🈸 πŸ”˜.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Apr 01 09:26:04 UTC 2023
    - 3K bytes
    - Viewed (0)
  8. internal/dsync/dsync-server_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package dsync
    
    import (
    	"fmt"
    	"io"
    	"net/http"
    	"net/http/httptest"
    	"sync"
    	"sync/atomic"
    	"time"
    
    	"github.com/minio/mux"
    )
    
    const numberOfNodes = 5
    
    var (
    	ds          *Dsync
    	nodes       = make([]*httptest.Server, numberOfNodes) // list of node IP addrs or hostname with ports.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jan 23 16:46:37 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  9. internal/dsync/dsync-client_test.go

    // GNU Affero General Public License for more details.
    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package dsync
    
    import (
    	"bytes"
    	"context"
    	"errors"
    	"net/http"
    	"net/url"
    	"time"
    
    	xhttp "github.com/minio/minio/internal/http"
    	"github.com/minio/minio/internal/rest"
    )
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 20 17:36:09 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  10. internal/dsync/dsync.go

    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package dsync
    
    // Dsync represents dsync client object which is initialized with
    // authenticated clients, used to initiate lock REST calls.
    type Dsync struct {
    	// List of rest client objects, one per lock server.
    	GetLockers func() ([]NetLocker, string)
    
    	// Timeouts to apply.
    	Timeouts Timeouts
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Mar 01 19:14:28 UTC 2022
    - 1K bytes
    - Viewed (0)
Back to top