Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for let (0.2 sec)

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

      std::unique_ptr<char[]> buffer(new char[kPosixCopyFileBufferSize]);
    
      off_t offset = 0;
      int bytes_transferred = 0;
      int rc = 1;
      // When `sendfile` returns 0 we stop copying and let callers handle this.
      while (offset < size && rc > 0) {
        size_t chunk = size - offset;
        if (chunk > kPosixCopyFileBufferSize) chunk = kPosixCopyFileBufferSize;
    
        rc = read(src_fd, buffer.get(), chunk);
    C++
    - Registered: Tue Apr 09 12:39:09 GMT 2024
    - Last Modified: Fri Nov 22 21:23:55 GMT 2019
    - 1.9K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/posix/copy_file_linux.cc

    int CopyFileContents(int dst_fd, int src_fd, off_t size) {
      off_t offset = 0;
      int bytes_transferred = 0;
      int rc = 1;
      // When `sendfile` returns 0 we stop copying and let callers handle this.
      while (offset < size && rc > 0) {
        // Use uint64 for safe compare SSIZE_MAX
        uint64_t chunk = size - offset;
        if (chunk > SSIZE_MAX) chunk = SSIZE_MAX;
    
    C++
    - Registered: Tue Apr 09 12:39:09 GMT 2024
    - Last Modified: Fri Nov 22 21:23:55 GMT 2019
    - 1.5K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_experimental.cc

            tensorflow::unwrap(handles[i]);
        if (tensorflow::CustomDeviceTensorHandle::classof(unwrapped_handle)) {
          // One of the inputs we're trying to pack is on a custom device. We'll let
          // the first custom device we see handle all of the packing.
          auto* custom_device_handle =
              tensorflow::down_cast<tensorflow::CustomDeviceTensorHandle*>(
                  unwrapped_handle);
    C++
    - Registered: Tue Apr 16 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
  4. tensorflow/c/eager/c_api.cc

        return status.status;
      }
    
      absl::StatusOr<bool> ShallPinToThisDevice(
          const ImmediateExecutionOperation* op) override {
        TF_Status status;
        // Let this custom device choose the device to pin this op on if it
        // implements the pinning function.
        if (device_.shall_pin_to_this_device != nullptr) {
    C++
    - Registered: Tue Apr 16 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
Back to top