- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for Position (0.19 sec)
-
tensorflow/c/env.cc
status, ::tensorflow::Env::Default()->DeleteFile(filename)); } bool TF_StringStreamNext(TF_StringStream* list, const char** result) { if (list->position >= list->list->size()) { *result = nullptr; return false; } *result = list->list->at(list->position++).c_str(); return true; } void TF_StringStreamDone(TF_StringStream* list) { delete list->list; delete list; }
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
*result = filename_; return OkStatus(); } Status ModularWritableFile::Tell(int64_t* position) { if (ops_->tell == nullptr) return errors::Unimplemented( tensorflow::strings::StrCat("Tell() not implemented for ", filename_)); UniquePtrTo_TF_Status plugin_status(TF_NewStatus(), TF_DeleteStatus); *position = ops_->tell(file_.get(), plugin_status.get()); return StatusFromTF_Status(plugin_status.get()); }
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/modular_filesystem_test.cc
if (!status.ok()) GTEST_SKIP() << "NewWritableFile() not supported: " << status; int64_t position; status = file->Tell(&position); EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::OK); if (!status.ok()) GTEST_SKIP() << "Tell() not supported: " << status; EXPECT_EQ(position, 0); const std::string test_data("asdf"); status = file->Append(test_data);
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/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc
TF_EXPECT_OK(ReadCache(&cache, "", block_size, block_size, &out)); EXPECT_EQ(out.size(), 1); // Now read the first block; this should yield an INTERNAL error because we // had already cached a partial block at a later position. Status status = ReadCache(&cache, "", 0, block_size, &out); EXPECT_EQ(status.code(), error::INTERNAL); } TEST(RamFileBlockCacheTest, LRU) { const size_t block_size = 16; std::list<size_t> calls;
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
// block in the file, which does not extend all the way out to `offset`. std::stringstream os; os << "EOF at offset " << offset << " in file " << filename << " at position " << pos << " with data size " << data.size(); TF_SetStatus(status, TF_OUT_OF_RANGE, std::move(os).str().c_str()); return total_bytes_transferred; } auto begin = data.begin(); if (offset > pos) {
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/experimental/filesystem/plugins/gcs/ram_file_block_cache.h
/// mu_. struct Block { /// The block data. std::vector<char> data; /// A list iterator pointing to the block's position in the LRU list. std::list<Key>::iterator lru_iterator; /// A list iterator pointing to the block's position in the LRA list. std::list<Key>::iterator lra_iterator; /// The timestamp (seconds since epoch) at which the block was cached. uint64_t timestamp;
C - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Mon Aug 31 04:46:34 GMT 2020 - 10.6K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc
// POSIX's `ftell` returns `long`, do a manual cast. int64_t position = int64_t{ftell(posix_file->handle)}; if (position < 0) TF_SetStatusFromIOError(status, errno, posix_file->filename); else TF_SetStatus(status, TF_OK, ""); return position; } static void Flush(const TF_WritableFile* file, TF_Status* status) {
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/experimental/filesystem/plugins/gcs/expiring_lru_cache.h
struct Entry { /// The timestamp (seconds) at which the entry was added to the cache. uint64_t timestamp; /// The entry's value. T value; /// A list iterator pointing to the entry's position in the LRU list. std::list<std::string>::iterator lru_iterator; }; bool LookupLocked(const std::string& key, T* value) ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_) { auto it = cache_.find(key);
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Jul 09 19:31:22 GMT 2020 - 6.3K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/modular_filesystem.h
Status Append(StringPiece data) override; Status Close() override; Status Flush() override; Status Sync() override; Status Name(StringPiece* result) const override; Status Tell(int64_t* position) override; private: std::string filename_; std::unique_ptr<TF_WritableFile> file_; const TF_WritableFileOps* ops_; // not owned ModularWritableFile(const ModularWritableFile&) = delete;
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) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc
auto gcs_file = static_cast<GCSFile*>(file->plugin_file); int64_t position = int64_t(gcs_file->outfile.tellp()); if (position == -1) TF_SetStatus(status, TF_INTERNAL, "tellp on the internal temporary file failed"); else TF_SetStatus(status, TF_OK, ""); return position == -1 ? -1 : position + (gcs_file->offset == -1 ? 0 : gcs_file->offset); }
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)