Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for FileExists (0.17 sec)

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

      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::OK);
      if (!status.ok()) GTEST_SKIP() << "RenameFile() not supported: " << status;
    
      status = env_->FileExists(filepath);
      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::NOT_FOUND);
      status = env_->FileExists(new_filepath);
      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::OK);
    }
    
    TEST_P(ModularFileSystemTest, TestRenameFileOverwrite) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      return StatusFromTF_Status(plugin_status.get());
    }
    
    Status ModularFileSystem::FileExists(const std::string& fname,
                                         TransactionToken* token) {
      if (ops_->path_exists == nullptr)
        return errors::Unimplemented(tensorflow::strings::StrCat(
            "Filesystem for ", fname, " does not support FileExists()"));
    
      UniquePtrTo_TF_Status plugin_status(TF_NewStatus(), TF_DeleteStatus);
    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)
  3. tensorflow/c/experimental/filesystem/modular_filesystem.h

      Status NewReadOnlyMemoryRegionFromFile(
          const std::string& fname, TransactionToken* token,
          std::unique_ptr<ReadOnlyMemoryRegion>* result) override;
      Status FileExists(const std::string& fname, TransactionToken* token) override;
      bool FilesExist(const std::vector<std::string>& files,
                      TransactionToken* token,
                      std::vector<Status>* status) override;
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 12 08:49:52 GMT 2023
    - 8.9K bytes
    - Viewed (0)
  4. RELEASE.md

    *   `BusAdjacency` enum replaced with a protocol buffer `DeviceLocality`. PCI
        bus indexing now starts from 1 instead of 0, and `bus_id==0` is used where
        previously `BUS_ANY` was used.
    *   `Env::FileExists` and `FileSystem::FileExists` now return a
        tensorflow::Status instead of a bool. Any callers to this function can be
        converted to a bool by adding .ok() to the call.
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Mon Apr 29 19:17:57 GMT 2024
    - 727.7K bytes
    - Viewed (8)
Back to top