Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for fullname (0.54 sec)

  1. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      TF_EXPECT_OK(ReadCache(&cache, filename, 0, 16, &out));
      EXPECT_EQ(calls, 1);
    
      // Second read. Hit cache.
      EXPECT_TRUE(cache.ValidateAndUpdateFileSignature(filename, 123));
      TF_EXPECT_OK(ReadCache(&cache, filename, 0, 16, &out));
      EXPECT_EQ(calls, 1);
    
      // Third read. File signatures are different.
      EXPECT_FALSE(cache.ValidateAndUpdateFileSignature(filename, 321));
    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)
  2. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

    }
    
    void RamFileBlockCache::RemoveFile(const std::string& filename) {
      absl::MutexLock lock(&mu_);
      RemoveFile_Locked(filename);
    }
    
    void RamFileBlockCache::RemoveFile_Locked(const std::string& filename) {
      Key begin = std::make_pair(filename, 0);
      auto it = block_map_.lower_bound(begin);
      while (it != block_map_.end() && it->first.first == filename) {
        auto next = std::next(it);
        RemoveBlock(it);
    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)
  3. tensorflow/c/checkpoint_reader.cc

    CheckpointReader::CheckpointReader(const string& filename, TF_Status* status)
        : reader_(nullptr),
          v2_reader_(nullptr),
          var_to_shape_map_(nullptr),
          var_to_data_type_map_(nullptr) {
      // Depending on whether this is a V2 ckpt, initializes "reader_" or
      // "v2_reader_".
      std::vector<string> v2_path;
      if (Env::Default()->GetMatchingPaths(MetaFilename(filename), &v2_path).ok() &&
          !v2_path.empty()) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Aug 25 21:29:12 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

          GetURIForPath("yet_another_file"),
      };
    
      for (const auto& filename : matching_filenames) {
        std::unique_ptr<WritableFile> file;
        Status status = env_->NewWritableFile(filename, &file);
        if (!status.ok())
          GTEST_SKIP() << "NewWritableFile() not supported: " << status;
      }
    
      for (const auto& filename : other_filenames) {
        std::unique_ptr<WritableFile> file;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/filesystem/modular_filesystem.cc

    }
    
    Status ModularRandomAccessFile::Name(StringPiece* result) const {
      *result = filename_;
      return OkStatus();
    }
    
    Status ModularWritableFile::Append(StringPiece data) {
      if (ops_->append == nullptr)
        return errors::Unimplemented(tensorflow::strings::StrCat(
            "Append() not implemented for ", filename_));
    
      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)
  6. tensorflow/c/checkpoint_reader.h

    // other languages.
    //
    // The class currently only interacts with single-slice (i.e., non-partitioned)
    // variables.
    class CheckpointReader {
     public:
      CheckpointReader(const string& filename, TF_Status* status);
    
      bool HasTensor(const string& name) const;
      const string DebugString() const;
    
      // Returns a map from variable names to their shapes.  Slices of a partitioned
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 12 08:49:52 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

    typedef struct PosixFile {
      const char* filename;
      int fd;
    } PosixFile;
    
    static void Cleanup(TF_RandomAccessFile* file) {
      auto posix_file = static_cast<PosixFile*>(file->plugin_file);
      close(posix_file->fd);
      // This would be safe to free using `free` directly as it is only opaque.
      // However, it is better to be consistent everywhere.
      plugin_memory_free(const_cast<char*>(posix_file->filename));
      delete posix_file;
    }
    
    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)
  8. tensorflow/c/c_api_experimental.cc

      std::vector<std::string> variable_list;
    };
    
    TF_CheckpointReader* TF_NewCheckpointReader(const char* filename,
                                                TF_Status* status) {
      TF_CheckpointReader* reader = new TF_CheckpointReader(filename, status);
      if (!status->status.ok()) {
        TF_DeleteCheckpointReader(reader);
        return nullptr;
      }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  9. tensorflow/c/c_api_experimental.h

        TF_ImportGraphDefOptions* opts, unsigned char enable);
    
    // Load the library specified by library_filename and register the pluggable
    // device and related kernels present in that library. This function is not
    // supported on embedded on mobile and embedded platforms and will fail if
    // called.
    //
    // Pass "library_filename" to a platform-specific mechanism for dynamically
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 15.1K bytes
    - Viewed (0)
  10. tensorflow/c/env.cc

      *undeleted_file_count = f;
      *undeleted_dir_count = d;
    }
    
    void TF_FileStat(const char* filename, TF_FileStatistics* stats,
                     TF_Status* status) {
      ::tensorflow::FileStatistics cc_stats;
      TF_SetStatus(status, TF_OK, "");
      ::tensorflow::Status s =
          ::tensorflow::Env::Default()->Stat(filename, &cc_stats);
      ::tensorflow::Set_TF_Status_from_Status(status, s);
      if (s.ok()) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 11 01:20:50 GMT 2021
    - 7K bytes
    - Viewed (0)
Back to top