- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 32 for exists (0.16 sec)
-
tensorflow/c/experimental/filesystem/modular_filesystem.cc
if (ops_->path_exists == nullptr) return errors::Unimplemented(tensorflow::strings::StrCat( "Filesystem for ", fname, " does not support FileExists()")); UniquePtrTo_TF_Status plugin_status(TF_NewStatus(), TF_DeleteStatus); const std::string translated_name = TranslateName(fname); ops_->path_exists(filesystem_.get(), translated_name.c_str(),
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/filesystem_interface.h
/// /// Plugins: /// * Must set `status` to `TF_OK` if directory was created. /// * Must set `status` to `TF_NOT_FOUND` if one of the parents entries in /// `path` doesn't exist. /// * Must set `status` to `TF_FAILED_PRECONDITION` if `path` is invalid. /// * Must set `status` to `TF_ALREADY_EXISTS` if `path` already exists.
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) -
tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem_helper.cc
// When creating file, use the same permissions as original mode_t open_mode = mode & (S_IRWXU | S_IRWXG | S_IRWXO); // O_WRONLY | O_CREAT | O_TRUNC: // Open file for write and if file does not exist, create the file. // If file exists, truncate its size to 0. int dst_fd = open(dst, O_WRONLY | O_CREAT | O_TRUNC, open_mode); if (dst_fd < 0) { close(src_fd); 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/api_template.__init__.py
_kernel_dir = _os.path.join(_tf_dir, "core", "kernels") if _os.path.exists(_kernel_dir): _ll.load_library(_kernel_dir) # Load third party dynamic kernels. for _s in _site_packages_dirs: _plugin_dir = _os.path.join(_s, "tensorflow-plugins") if _os.path.exists(_plugin_dir): _ll.load_library(_plugin_dir) # Load Pluggable Device Library
Python - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Mar 05 06:27:59 GMT 2024 - 6.7K bytes - Viewed (3) -
configure.py
else: default_sdk_path = '%s/Android/Sdk' % environ_cp['HOME'] def valid_sdk_path(path): return (os.path.exists(path) and os.path.exists(os.path.join(path, 'platforms')) and os.path.exists(os.path.join(path, 'build-tools'))) android_sdk_home_path = prompt_loop_or_load_from_env( environ_cp, var_name='ANDROID_SDK_HOME',
Python - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 18:25:36 GMT 2024 - 53.8K bytes - Viewed (1) -
tensorflow/api_template_v1.__init__.py
_kernel_dir = _os.path.join(_tf_dir, "core", "kernels") if _os.path.exists(_kernel_dir): _ll.load_library(_kernel_dir) # Load third party dynamic kernels. for _s in _site_packages_dirs: _plugin_dir = _os.path.join(_s, "tensorflow-plugins") if _os.path.exists(_plugin_dir): _ll.load_library(_plugin_dir) # Load Pluggable Device Library
Python - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Jan 23 02:14:00 GMT 2024 - 7.4K bytes - Viewed (0) -
tensorflow/c/eager/immediate_execution_operation.h
virtual void AddAttrs(const AbstractOpAttrs* op_attrs) = 0; virtual void SetCancellationManager( CancellationManager* cancellation_manager) = 0; // Returns the stack trace set by `SetStackTrace` if exists. virtual absl::optional<ManagedStackTrace> GetStackTrace() = 0; virtual void SetStepId(int64_t step_id) = 0; // For LLVM style RTTI. static bool classof(const AbstractOperation* ptr) {
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Sep 26 22:40:32 GMT 2022 - 3.6K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/modular_filesystem_test.cc
} TEST_P(ModularFileSystemTest, TestCreateDirTwice) { const std::string dirpath = GetURIForPath("a_dir"); Status status = env_->CreateDir(dirpath); if (!status.ok()) GTEST_SKIP() << "CreateDir() not supported: " << status; status = env_->CreateDir(dirpath); EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::ALREADY_EXISTS); }
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/gcs_filesystem.cc
TF_VLog(3, "CreateDir: directory already exists, not uploading %s", path); return TF_SetStatus(status, TF_ALREADY_EXISTS, path); } auto metadata = gcs_file->gcs_client.InsertObject( bucket, object, "", // Adding this parameter means HTTP_CODE_PRECONDITION_FAILED // will be returned if the object already exists, so avoid reuploading. gcs::IfGenerationMatch(0), gcs::Fields(""));
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/c_api_test.cc
static_cast<TF_Code>(tensorflow::error::DEADLINE_EXCEEDED)); EXPECT_EQ(TF_NOT_FOUND, static_cast<TF_Code>(tensorflow::error::NOT_FOUND)); EXPECT_EQ(TF_ALREADY_EXISTS, static_cast<TF_Code>(tensorflow::error::ALREADY_EXISTS)); EXPECT_EQ(TF_PERMISSION_DENIED, static_cast<TF_Code>(tensorflow::error::PERMISSION_DENIED)); EXPECT_EQ(TF_UNAUTHENTICATED,
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 96.9K bytes - Viewed (3)