- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for fileName (0.19 sec)
-
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) -
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) -
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) -
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) -
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) -
tensorflow/c/c_api.cc
c_outputs, target_oper_names, nullptr, status); } TF_Library* TF_LoadLibrary(const char* library_filename, TF_Status* status) { TF_Library* lib_handle = new TF_Library; status->status = tensorflow::LoadDynamicLibrary( library_filename, &lib_handle->lib_handle, &lib_handle->op_list.data, &lib_handle->op_list.length); if (!status->status.ok()) { delete lib_handle;
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 102.3K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/modular_filesystem_test.cc
if (!status.ok()) GTEST_SKIP() << "NewWritableFile() not supported: " << status; } for (const auto& filename : other_filenames) { std::unique_ptr<WritableFile> file; Status status = env_->NewWritableFile(filename, &file); if (!status.ok()) GTEST_SKIP() << "NewWritableFile() not supported: " << status; } std::vector<std::string> results;
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri May 27 20:25:58 GMT 2022 - 71K bytes - Viewed (0) -
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) -
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) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc
file_block_cache = std::make_unique<RamFileBlockCache>( block_size, max_bytes, max_staleness, [this](const std::string& filename, size_t offset, size_t buffer_size, char* buffer, TF_Status* status) { return LoadBufferFromGCS(filename, offset, buffer_size, buffer, this, status); }); uint64_t stat_cache_max_age = kStatCacheDefaultMaxAge;
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)