- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for Position (0.18 sec)
-
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/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/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) -
tensorflow/c/experimental/filesystem/filesystem_interface.h
TF_Status* status); /// Returns the current write position in `*file`. /// /// Plugins should ensure that the implementation is idempotent, 2 identical /// calls result in the same answer. /// /// Plugins: /// * Must set `status` to `TF_OK` and return current position if no error. /// * Must set `status` to any other value and return -1 in case of error.
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri May 27 17:36:54 GMT 2022 - 53.1K bytes - Viewed (0) -
RELEASE.md
* Add functionality to SubSlice a tensor. * Add searchsorted (ie lower/upper_bound) op. * Add model explainability to Boosted Trees. * Support negative positions for tf.substr. * There was previously a bug in the bijector_impl where the _reduce_jacobian_det_over_event does not handle scalar ILDJ implementations properly.
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)