Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for files (0.16 sec)

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

                                       TransactionToken* token,
                                       std::vector<Status>* status) {
      if (ops_->paths_exist == nullptr)
        return FileSystem::FilesExist(files, token, status);
    
      std::vector<char*> translated_names;
      translated_names.reserve(files.size());
      for (int i = 0; i < files.size(); i++)
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

      auto posix_file = static_cast<PosixFile*>(file->plugin_file);
      plugin_memory_free(const_cast<char*>(posix_file->filename));
      delete posix_file;
    }
    
    static void Append(const TF_WritableFile* file, const char* buffer, size_t n,
                       TF_Status* status) {
      auto posix_file = static_cast<PosixFile*>(file->plugin_file);
    
      size_t r = fwrite(buffer, 1, n, posix_file->handle);
      if (r != n)
    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)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      EXPECT_TRUE(first_block);
      EXPECT_EQ(out.size(), block_size);
      // Reading at offset file_size + 4 will read the second block (since the read
      // at file_size + 4 = 28 will be aligned to an offset of 16) but will return
      // OutOfRange because the offset is past the end of the 24-byte file.
      Status status = ReadCache(&cache, "", file_size + 4, 4, &out);
      EXPECT_EQ(status.code(), error::OUT_OF_RANGE);
      EXPECT_TRUE(second_block);
    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)
  4. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

        const std::string& filename, int64_t file_signature) {
      absl::MutexLock lock(&mu_);
      auto it = file_signature_map_.find(filename);
      if (it != file_signature_map_.end()) {
        if (it->second == file_signature) {
          return true;
        }
        // Remove the file from cache if the signatures don't match.
        RemoveFile_Locked(filename);
        it->second = file_signature;
        return false;
      }
    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)
  5. tensorflow/c/experimental/filesystem/modular_filesystem_registration.cc

      if (ops->random_access_file_ops != nullptr)
        CheckAPI(ops->random_access_file_ops_api, TF_RANDOM_ACCESS_FILE_OPS_API,
                 "random access file");
    
      if (ops->writable_file_ops != nullptr)
        CheckAPI(ops->writable_file_ops_api, TF_WRITABLE_FILE_OPS_API,
                 "writable file");
    
      if (ops->read_only_memory_region_ops != nullptr)
    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)
  6. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

    void Sync(const TF_WritableFile* file, TF_Status* status) {
      auto gcs_file = static_cast<GCSFile*>(file->plugin_file);
      TF_VLog(3, "Sync: gs://%s/%s", gcs_file->bucket.c_str(),
              gcs_file->object.c_str());
      Flush(file, status);
    }
    
    void Close(const TF_WritableFile* file, TF_Status* status) {
      auto gcs_file = static_cast<GCSFile*>(file->plugin_file);
      TF_VLog(3, "Close: gs://%s/%s", gcs_file->bucket.c_str(),
    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