Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for timeout (0.22 sec)

  1. tensorflow/c/eager/c_api_cluster_test.cc

      TestRemoteExecuteUpdateServerDefResourceAccess(true);
    }
    
    void TestRemoteExecuteUpdateServerDefWithFailures(bool async) {
      // Fail fast on GetStatus requests so we can get errors instead of timeout
      // when updating cluster with non-exsitent worker
      tensorflow::setenv("GRPC_FAIL_FAST", "TRUE", /*overwrite=*/1);
    
      tensorflow::ServerDef server_def = GetServerDef(2);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/next_pluggable_device/c_api.cc

    TF_Buffer* TF_CoordinationServiceGetKeyValueWithTimeout(
        const char* key, int64_t key_size, int64_t timeout_seconds,
        TF_CoordinationServiceAgent* agent, TF_Status* status) {
      if (timeout_seconds <= 0) {
        status->status = absl::InvalidArgumentError(
            "TF_CoordinationServiceGetKeyValueWithTimeout invoked with invalid "
            "timeout_seconds <= 0.");
        return nullptr;
      }
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jan 09 00:52:04 GMT 2024
    - 13.9K bytes
    - Viewed (1)
  3. tensorflow/c/c_api_experimental.cc

        TFE_Context* ctx, const char* task, int64_t timeout_in_ms,
        TF_Status* status) {
      tensorflow::EagerContext* context =
          tensorflow::ContextFromInterface(tensorflow::unwrap(ctx));
      auto collective_executor_handle = context->GetCollectiveExecutorHandle();
      tensorflow::Notification done;
      collective_executor_handle->get()->remote_access()->CheckPeerHealth(
          task, timeout_in_ms, [&done, status](const Status& s) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_experimental_test.cc

      // Create two contexts.
      int32_t init_timeout_in_ms = 300000;
      TFE_Context* ctx_0 =
          CreateContext(serialized_server_def_0,
                        /*isolate_session_state=*/false, init_timeout_in_ms);
      TFE_Context* ctx_1 =
          CreateContext(serialized_server_def_1,
                        /*isolate_session_state=*/false, init_timeout_in_ms);
    
      // Remote device on `worker2`.
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  5. tensorflow/c/eager/c_api_test.cc

                                         /*isolate_session_state=*/false,
                                         /*init_timeout_in_ms=*/0);
      TFE_Context* ctx_1 = CreateContext(serialized_server_def_1,
                                         /*isolate_session_state=*/false,
                                         /*init_timeout_in_ms=*/0);
    
      // Remote device on `worker1`.
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  6. tensorflow/c/eager/c_api_experimental.cc

            "Coordination service is not enabled.");
        return;
      }
      absl::Duration timeout;
      if (timeout_in_ms > 0) {
        timeout = absl::Milliseconds(timeout_in_ms);
      } else {
        // Block until the key-value is set or the worker shuts down.
        timeout = absl::InfiniteDuration();
      }
      auto status_or_value = coord_agent->GetKeyValue(key, timeout);
      status->status = status_or_value.status();
      if (!status_or_value.ok()) return;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
  7. tensorflow/c/eager/c_api.cc

          ctx, keep_alive_secs, proto, proto_len, /*init_timeout_in_ms=*/0,
          /*retries=*/0, status, /*clear_existing_contexts=*/false);
    }
    
    // Set server def with timeout.
    TF_CAPI_EXPORT extern void TFE_ContextSetServerDefWithTimeout(
        TFE_Context* ctx, int keep_alive_secs, const void* proto, size_t proto_len,
        int64_t init_timeout_in_ms, TF_Status* status,
        bool clear_existing_contexts) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
  8. tensorflow/c/eager/c_api_test_util.cc

      TF_DeleteStatus(status);
      return var_handle;
    }
    
    TFE_Context* CreateContext(const std::string& serialized_server_def,
                               bool isolate_session_state,
                               int64_t init_timeout_in_ms) {
      TF_Status* status = TF_NewStatus();
      TFE_ContextOptions* opts = TFE_NewContextOptions();
      opts->session_options.options.config.set_isolate_session_state(
          isolate_session_state);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 23.5K bytes
    - Viewed (2)
Back to top