Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

        // more than fits in a 32-bit integer.
        size_t requested_read_length;
        if (n > INT32_MAX)
          requested_read_length = INT32_MAX;
        else
          requested_read_length = n;
    
        // `pread` returns a `ssize_t` on POSIX, but due to interface being
        // cross-platform, return type of `Read` is `int64_t`.
        int64_t r = int64_t{pread(posix_file->fd, dst, requested_read_length,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_cluster_test.cc

    TEST(CAPI, TestRemoteExecuteUpdateServerDefResourceAccessAsync) {
      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)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

            block->lra_iterator = lra_list_.begin();
            block->timestamp = timer_seconds_();
          }
        }
      });
      // Loop until either block content is successfully fetched, or our request
      // encounters an error.
      absl::MutexLock l(&block->mu);
      TF_SetStatus(status, TF_OK, "");
      while (true) {
        switch (block->state) {
          case FetchState::ERROR:
            // TF_FALLTHROUGH_INTENDED
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 16 01:39:09 GMT 2020
    - 11.1K bytes
    - Viewed (0)
  4. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

            thread_(tensorflow::Env::Default()->StartThread(
                tensorflow::ThreadOptions(), "parallel_device_execute",
                std::bind(&DeviceThread::Run, this))) {}
      ~DeviceThread();
    
      // Requests that the worker thread execute the specified operation. Blocks
      // until the previously pending operation (a StartExecute without a Join) has
      // finished, if any.
      //
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
  5. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      const size_t block_size = 16;
      int num_requests = 0;
      Notification notification;
      auto fetcher = [&num_requests, &notification, block_size](
                         const string& filename, size_t offset, size_t n,
                         char* buffer, TF_Status* status) -> int64_t {
        EXPECT_EQ(n, block_size);
        EXPECT_EQ(offset, 0);
        num_requests++;
        memset(buffer, 'x', n);
        notification.Notify();
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:57 GMT 2021
    - 23.2K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

        if (!user_schemes->empty()) {
          auto is_requested_scheme = [user_schemes](const auto& scheme) {
            return std::find(user_schemes->begin(), user_schemes->end(), scheme) ==
                   user_schemes->end();
          };
          auto end = std::remove_if(all_schemes->begin(), all_schemes->end(),
                                    is_requested_scheme);
          all_schemes->erase(end, all_schemes->end());
        }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_remote_test_util.cc

      TFE_TensorHandle* h1_task0 = TestMatrixTensorHandle(ctx);
      std::vector<TFE_TensorHandle*> handles_task0;
      if (heavy_load_on_streaming_rpc) {
        // Send 50 tensor copy requests to simulate that there have been some RPC
        // requests been enqueued.
        for (int i = 0; i < 50; ++i) {
          handles_task0.push_back(TestMatrixTensorHandle(ctx));
        }
      }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Dec 11 22:56:03 GMT 2020
    - 9.1K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

          // Forget the end-of-file flag to allow for clients that poll on the
          // same file.
          gcs_file->buffer_end_is_past_eof = false;
          TF_SetStatus(status, TF_OUT_OF_RANGE, "Read less bytes than requested");
          return copy_size;
        }
        TF_SetStatus(status, TF_OK, "");
        return copy_size;
      }
    }
    
    }  // namespace tf_random_access_file
    
    // SECTION 2. Implementation for `TF_WritableFile`
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
Back to top