- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for Below (0.18 sec)
-
tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem_helper.cc
if (dst_fd < 0) { close(src_fd); return -1; } // Both files have been opened, do the transfer. // Since errno would be overridden by `close` below, save it here. int error_code = 0; if (CopyFileContents(dst_fd, src_fd, size) < 0) error_code = errno; close(src_fd); close(dst_fd); if (error_code != 0) { errno = error_code; return -1;
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Thu Jan 16 05:36:52 GMT 2020 - 2.1K bytes - Viewed (1) -
tensorflow/c/c_api.cc
#include "tensorflow/core/platform/thread_annotations.h" #include "tensorflow/core/platform/types.h" #include "tensorflow/core/public/session.h" #include "tensorflow/core/public/version.h" // The implementation below is at the top level instead of the // brain namespace because we are defining 'extern "C"' functions. using tensorflow::AttrValueMap; using tensorflow::DataType; using tensorflow::ExtendSessionGraphHelper;
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/c_api_experimental.cc
// Update the vector with information from `input_tensors` if provided. if (input_tensors != nullptr) { // Note that we take the address of the elements in `all_input_tensors` // below. Allocate enough space so that no reallocation happens, which will // make the pointers invalid. all_input_tensors.reserve(num_inputs); for (int i = 0; i < num_inputs; ++i) {
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/modular_filesystem_test.cc
Status status = env_->CreateDir(dirpath); if (!status.ok()) GTEST_SKIP() << "CreateDir() not supported: " << status; // If updating, make sure to update expected_children below. const std::vector<std::string> filenames = { GetURIForPath("dir/a_file"), GetURIForPath("dir/another_file"), }; for (const auto& filename : filenames) {
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/next_pluggable_device/c_api.cc
struct TF_VariableInfo { TF_VariableInfo() = delete; // TF_VariableInfo is constructed here by TensorFlow, and will be passed to // plugin as a opaque pointer. Plugin will need to call C APIs below to // operate on TF_VariableInfo (such as allocate temp tensor for the `var` held // by the underlying tensorflow::VariableInfo. TF_VariableInfo(int index, const std::string& name, tensorflow::Var* var) {
C++ - Registered: Tue Feb 27 12:39:08 GMT 2024 - Last Modified: Tue Jan 09 00:52:04 GMT 2024 - 13.9K bytes - Viewed (1) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc
EXPECT_TF_OK(status_); auto result = ReadAll(dst); EXPECT_TF_OK(status_); EXPECT_EQ("test_old", result); } // These tests below are ported from // `//tensorflow/core/platform/cloud:gcs_file_system_test` TEST_F(GCSFilesystemTest, NewRandomAccessFile_NoBlockCache) { tf_gcs_filesystem::InitTest(filesystem_, false, 0, 0, 0, 0, 0, status_);
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Mon Aug 31 12:04:23 GMT 2020 - 24.9K bytes - Viewed (0)