Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for readonly (0.14 sec)

  1. tensorflow/c/experimental/filesystem/modular_filesystem_registration.cc

      if (ops->filesystem_ops->new_read_only_memory_region_from_file != nullptr &&
          ops->read_only_memory_region_ops == nullptr)
        return errors::FailedPrecondition(
            "Filesystem allows creation of readonly memory regions but no "
            "operations on them have been supplied.");
    
      return OkStatus();
    }
    
    // Copies a function table from plugin memory space to core memory space.
    //
    // This has three benefits:
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 07 22:08:43 GMT 2023
    - 12.8K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

    static void NewRandomAccessFile(const TF_Filesystem* filesystem,
                                    const char* path, TF_RandomAccessFile* file,
                                    TF_Status* status) {
      int fd = open(path, O_RDONLY);
      if (fd < 0) {
        TF_SetStatusFromIOError(status, errno, path);
        return;
      }
    
      struct stat st;
      fstat(fd, &st);
      if (S_ISDIR(st.st_mode)) {
    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)
Back to top