Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for copy_file (0.29 sec)

  1. tensorflow/c/experimental/filesystem/plugins/posix/copy_file.h

    limitations under the License.
    ==============================================================================*/
    #ifndef TENSORFLOW_C_EXPERIMENTAL_FILESYSTEM_PLUGINS_POSIX_COPY_FILE_H_
    #define TENSORFLOW_C_EXPERIMENTAL_FILESYSTEM_PLUGINS_POSIX_COPY_FILE_H_
    
    #include <sys/stat.h>
    
    namespace tf_posix_filesystem {
    
    // Transfers up to `size` bytes from `dst_fd` to `src_fd`.
    //
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Nov 22 21:23:55 GMT 2019
    - 1.2K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/posix/copy_file_linux.cc

    ==============================================================================*/
    #include <limits.h>
    #include <stdint.h>
    #include <sys/sendfile.h>
    
    #include "tensorflow/c/experimental/filesystem/plugins/posix/copy_file.h"
    
    namespace tf_posix_filesystem {
    
    // Transfers up to `size` bytes from `dst_fd` to `src_fd`.
    //
    // This method uses `sendfile` specific to linux after 2.6.33.
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Nov 22 21:23:55 GMT 2019
    - 1.5K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/posix/copy_file_portable.cc

    ==============================================================================*/
    #include <stdint.h>
    #include <unistd.h>
    
    #include <memory>
    
    #include "tensorflow/c/experimental/filesystem/plugins/posix/copy_file.h"
    
    namespace tf_posix_filesystem {
    
    // Transfers up to `size` bytes from `dst_fd` to `src_fd`.
    //
    // This method uses a temporary buffer to hold contents.
    int CopyFileContents(int dst_fd, int src_fd, off_t size) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Nov 22 21:23:55 GMT 2019
    - 1.9K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/plugins/posix/BUILD

        hdrs = ["posix_filesystem_helper.h"],
        deps = [":copy_file"],
    )
    
    # On Linux, we can copy files faster using `sendfile`. But not elsewhere.
    # Hence, this private library to select which implementation to use.
    cc_library(
        name = "copy_file",
        srcs = select({
            "//tensorflow:linux_x86_64": ["copy_file_linux.cc"],
            "//conditions:default": ["copy_file_portable.cc"],
        }),
        hdrs = ["copy_file.h"],
    Plain Text
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      return StatusFromTF_Status(plugin_status.get());
    }
    
    Status ModularFileSystem::CopyFile(const std::string& src,
                                       const std::string& target,
                                       TransactionToken* token) {
      if (ops_->copy_file == nullptr)
        return FileSystem::CopyFile(src, target, token);
    
      UniquePtrTo_TF_Status plugin_status(TF_NewStatus(), TF_DeleteStatus);
    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)
  6. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem_helper.cc

    #include <errno.h>
    #include <fcntl.h>
    #include <limits.h>
    #include <stdint.h>
    #include <stdlib.h>
    #include <string.h>
    #include <unistd.h>
    
    #include "tensorflow/c/experimental/filesystem/plugins/posix/copy_file.h"
    
    namespace tf_posix_filesystem {
    
    int TransferFileContents(const char* src, const char* dst, mode_t mode,
                             off_t size) {
      int src_fd = open(src, O_RDONLY);
      if (src_fd < 0) 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)
  7. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

      ops->filesystem_ops->delete_dir = tf_posix_filesystem::DeleteDir;
      ops->filesystem_ops->rename_file = tf_posix_filesystem::RenameFile;
      ops->filesystem_ops->copy_file = tf_posix_filesystem::CopyFile;
      ops->filesystem_ops->path_exists = tf_posix_filesystem::PathExists;
      ops->filesystem_ops->stat = tf_posix_filesystem::Stat;
      ops->filesystem_ops->get_children = tf_posix_filesystem::GetChildren;
    }
    
    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)
  8. tensorflow/BUILD

    # load("@rules_license//rules:license.bzl", "license")
    # # buildifier: enable=out-of-order-load
    # copybara:uncomment_end
    
    # copybara:comment_begin(oss-only)
    load("@bazel_skylib//rules:copy_file.bzl", "copy_file")
    load(
        "//tensorflow/python/tools/api/generator:api_gen.bzl",
        "get_compat_files",
        "get_nested_compat_files",
    )
    load(
        "//tensorflow/python/tools/api/generator:api_init_files.bzl",
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 09 18:15:11 GMT 2024
    - 53.4K bytes
    - Viewed (8)
  9. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

      ops->filesystem_ops->delete_dir = tf_gcs_filesystem::DeleteDir;
      ops->filesystem_ops->delete_recursively =
          tf_gcs_filesystem::DeleteRecursively;
      ops->filesystem_ops->copy_file = tf_gcs_filesystem::CopyFile;
      ops->filesystem_ops->path_exists = tf_gcs_filesystem::PathExists;
      ops->filesystem_ops->is_directory = tf_gcs_filesystem::IsDirectory;
      ops->filesystem_ops->stat = tf_gcs_filesystem::Stat;
    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)
  10. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

        GTEST_SKIP() << "NewWritableFile() not supported: " << status;
    
      const std::string new_filepath = GetURIForPath("a_new_file");
      status = env_->CopyFile(filepath, new_filepath);
      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::OK);
      if (!status.ok()) GTEST_SKIP() << "CopyFile() not supported: " << status;
    
      status = env_->FileExists(filepath);
      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::OK);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
Back to top