- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for directory (0.26 sec)
-
tensorflow/c/c_api.cc
Status LoadDynamicLibrary(const char* library_filename, void** result, const void** buf, size_t* len); // TODO(josh11b,mrry): Change Session to be able to use a Graph* // directly, instead of requiring us to serialize to a GraphDef and // call Session::Extend(). bool ExtendSessionGraphHelper(TF_Session* session, TF_Status* status) { if (session->graph != nullptr) {
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/plugins/posix/posix_filesystem.cc
TF_SetStatus(status, TF_FAILED_PRECONDITION, "target path is a directory"); return; } // We cannot rename directories yet, so prevent this. if (stat(src, &st) != 0) { TF_SetStatusFromIOError(status, errno, src); return; } else if (S_ISDIR(st.st_mode)) { TF_SetStatus(status, TF_FAILED_PRECONDITION, "source path is a directory"); return; }
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/gcs_filesystem_test.cc
EXPECT_TF_OK(status_); TF_FileStatistics stat; tf_gcs_filesystem::Stat(filesystem_, dir.c_str(), &stat, status_); EXPECT_TF_OK(status_); EXPECT_TRUE(stat.is_directory); } TEST_F(GCSFilesystemTest, DeleteDir) { tf_gcs_filesystem::Init(filesystem_, status_); ASSERT_TF_OK(status_); const std::string dir = GetURIForPath("DeleteDir");
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) -
tensorflow/c/experimental/filesystem/modular_filesystem.cc
stat->mtime_nsec = stats.mtime_nsec; stat->is_directory = stats.is_directory; } return StatusFromTF_Status(plugin_status.get()); } Status ModularFileSystem::IsDirectory(const std::string& name, TransactionToken* token) { if (ops_->is_directory == nullptr) return FileSystem::IsDirectory(name, token);
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/env_test.cc
TF_DeleteDir(dirpath.c_str(), s); ASSERT_NE(TF_OK, TF_GetCode(s)) << "TF_DeleteDir unexpectedly succeeded with a non-empty directory " << dirpath; TF_DeleteFile(filepath.c_str(), s); ASSERT_TF_OK(s) << "TF_DeleteFile failed for " << filepath << ": " << TF_Message(s); // Now deleting the directory should work. TF_DeleteDir(dirpath.c_str(), s);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Dec 10 20:52:48 GMT 2018 - 4.2K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/modular_filesystem_test.cc
s = fs->CreateDir(root_dir_); if (!s.ok()) { GTEST_SKIP() << "Cannot create working directory: " << s; } } // Converts path reference to URI reference. // // If URI scheme is empty, URI reference is `path` relative to current test // root directory. Otherwise, we need to add the `<scheme>://` in front of // this path. //
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/eager/parallel_device/parallel_device_testlib.cc
// NOTE(allenl): These tests currently go through TFE_Execute and so are // integration testing rather than purely testing the parallel device. They // correspond fairly well to the implementation, but testing the C++ directly is // another option. namespace tensorflow { namespace parallel_device { Variable* Variable::Create(TFE_Context* context, TF_DataType type, const int64_t* dims, const int num_dims,
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Jun 15 15:44:44 GMT 2021 - 12.5K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device_test.cc
// NOTE(allenl): These tests currently go through TFE_Execute and so are // integration testing rather than purely testing the parallel device. They // correspond fairly well to the implementation, but testing the C++ directly is // another option. namespace tensorflow { namespace parallel_device { using ::testing::HasSubstr; TEST(PARALLEL_DEVICE, TestBasicCPU) { std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Jul 08 23:47:35 GMT 2021 - 29.3K bytes - Viewed (1) -
tensorflow/c/env.cc
::tensorflow::Set_TF_Status_from_Status(status, s); if (s.ok()) { stats->length = cc_stats.length; stats->mtime_nsec = cc_stats.mtime_nsec; stats->is_directory = cc_stats.is_directory; } } void TF_NewWritableFile(const char* filename, TF_WritableFileHandle** handle, TF_Status* status) { std::unique_ptr<::tensorflow::WritableFile> f;
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/plugins/gcs/gcs_filesystem.cc
if (TF_GetCode(status) == TF_OK) ClearFileCaches(gcs_file, path); } // Checks that the directory is empty (i.e no objects with this prefix exist). // Deletes the GCS directory marker if it exists. void DeleteDir(const TF_Filesystem* filesystem, const char* path, TF_Status* status) { // A directory is considered empty either if there are no matching objects
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)