Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for NewReadOnlyMemoryRegionFromFile (0.25 sec)

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

        TF_SetStatusFromIOError(status, errno, path);
        return;
      }
    
      file->plugin_file = new tf_writable_file::PosixFile({strdup(path), f});
      TF_SetStatus(status, TF_OK, "");
    }
    
    static void NewReadOnlyMemoryRegionFromFile(const TF_Filesystem* filesystem,
                                                const char* path,
                                                TF_ReadOnlyMemoryRegion* region,
    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/experimental/filesystem/plugins/gcs/gcs_filesystem.h

                         TF_WritableFile* file, TF_Status* status);
    void NewAppendableFile(const TF_Filesystem* filesystem, const char* path,
                           TF_WritableFile* file, TF_Status* status);
    void NewReadOnlyMemoryRegionFromFile(const TF_Filesystem* filesystem,
                                         const char* path,
                                         TF_ReadOnlyMemoryRegion* region,
                                         TF_Status* status);
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 04:37:41 GMT 2020
    - 5.2K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

      Status status = env_->NewReadOnlyMemoryRegionFromFile(filepath, &region);
      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::NOT_FOUND);
    }
    
    TEST_P(ModularFileSystemTest, TestCreateMemoryRegionNonExisting) {
      const std::string filepath = GetURIForPath("dir_not_found/a_file");
      std::unique_ptr<ReadOnlyMemoryRegion> region;
      Status status = env_->NewReadOnlyMemoryRegionFromFile(filepath, &region);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/modular_filesystem.cc

    }
    
    Status ModularFileSystem::NewReadOnlyMemoryRegionFromFile(
        const std::string& fname, TransactionToken* token,
        std::unique_ptr<ReadOnlyMemoryRegion>* result) {
      if (ops_->new_read_only_memory_region_from_file == nullptr)
        return errors::Unimplemented(tensorflow::strings::StrCat(
            "Filesystem for ", fname,
            " does not support NewReadOnlyMemoryRegionFromFile()"));
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/filesystem/modular_filesystem.h

      Status NewAppendableFile(const std::string& fname, TransactionToken* token,
                               std::unique_ptr<WritableFile>* result) override;
      Status NewReadOnlyMemoryRegionFromFile(
          const std::string& fname, TransactionToken* token,
          std::unique_ptr<ReadOnlyMemoryRegion>* result) override;
      Status FileExists(const std::string& fname, TransactionToken* token) override;
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Oct 12 08:49:52 GMT 2023
    - 8.9K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

      ASSERT_TRUE(WriteToServer(path, 0, 0, &gcs_file->gcs_client, status_));
      TF_ReadOnlyMemoryRegion* region = new TF_ReadOnlyMemoryRegion;
      tf_gcs_filesystem::NewReadOnlyMemoryRegionFromFile(filesystem_, path.c_str(),
                                                         region, status_);
      ASSERT_EQ(TF_GetCode(status_), TF_INVALID_ARGUMENT) << TF_Message(status_);
    
      TF_SetStatus(status_, TF_OK, "");
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 12:04:23 GMT 2020
    - 24.9K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

              temp_file_name.c_str());
      TF_SetStatus(status, TF_OK, "");
    }
    
    // TODO(vnvo2409): We could download into a local temporary file and use
    // memory-mapping.
    void NewReadOnlyMemoryRegionFromFile(const TF_Filesystem* filesystem,
                                         const char* path,
                                         TF_ReadOnlyMemoryRegion* region,
                                         TF_Status* status) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
Back to top