Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for src (0.11 sec)

  1. tensorflow/c/experimental/filesystem/plugins/posix/copy_file_portable.cc

    #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) {
      // Use a copy buffer of 128KB but don't store it on the stack.
      constexpr static size_t kPosixCopyFileBufferSize = 128 * 1024;
    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)
  2. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      std::string translated_src = TranslateName(src);
      std::string translated_target = TranslateName(target);
      ops_->rename_file(filesystem_.get(), translated_src.c_str(),
                        translated_target.c_str(), plugin_status.get());
      return StatusFromTF_Status(plugin_status.get());
    }
    
    Status ModularFileSystem::CopyFile(const std::string& src,
                                       const std::string& target,
    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)
  3. tensorflow/c/c_api_test.cc

      // Check unused input mappings
      int num_unused_input_mappings;
      const char** src_names;
      int* src_indexes;
      TF_ImportGraphDefResultsMissingUnusedInputMappings(
          results, &num_unused_input_mappings, &src_names, &src_indexes);
      ASSERT_EQ(1, num_unused_input_mappings);
      EXPECT_EQ(string("fake"), string(src_names[0]));
      EXPECT_EQ(0, src_indexes[0]);
    
      TF_DeleteImportGraphDefResults(results);
    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)
  4. ci/official/containers/linux_arm64/devel.usertools/aarch64.bazelrc

    build:libtensorflow_build -- //tensorflow/tools/lib_package:libtensorflow.tar.gz //tensorflow/tools/lib_package:libtensorflow_jni.tar.gz //tensorflow/java:libtensorflow.jar //tensorflow/java:libtensorflow-src.jar //tensorflow/tools/lib_package:libtensorflow_proto.zip
    
    # For continuous builds
    test:pycpp_filters --test_tag_filters=-no_oss,-oss_serial,-gpu,-tpu,-benchmark-test,-v1only,-no_aarch64,-no_oss_py38,-no_oss_py39,-no_oss_py310
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Tue Nov 21 12:25:39 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  5. ci/official/containers/linux_arm64/builder.devtoolset/build_devtoolset.sh

    # and extend for future modifications.
    mkdir -p glibc-src
    mkdir -p glibc-build
    cd glibc-src
    wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 --tries=5 "https://vault.centos.org/centos/7/os/Source/SPackages/glibc-2.17-317.el7.src.rpm"
    rpm2cpio "glibc-2.17-317.el7.src.rpm" |cpio -idmv
    tar -xvzf "glibc-2.17-c758a686.tar.gz" --strip 1
    Shell Script
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Fri Sep 29 00:26:34 GMT 2023
    - 6.1K bytes
    - Viewed (1)
  6. tensorflow/c/experimental/filesystem/plugins/gcs/cleanup.h

      Cleanup(Cleanup&& src)  // NOLINT
          : released_(src.is_released()), f_(src.release()) {}
    
      // Implicitly move-constructible from any compatible Cleanup<G>.
      // The source will be released as if src.release() were called.
      // A moved-from Cleanup can be safely destroyed or reassigned.
      template <typename G>
      Cleanup(Cleanup<G>&& src)  // NOLINT
          : released_(src.is_released()), f_(src.release()) {}
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 11:16:00 GMT 2020
    - 3.4K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem_helper.cc

    #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;
    
      // When creating file, use the same permissions as original
      mode_t open_mode = mode & (S_IRWXU | S_IRWXG | S_IRWXO);
    
    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)
  8. tensorflow/c/c_api.cc

      }
    
      // Store results in c_outputs[]
      for (int i = 0; i < noutputs; ++i) {
        const Tensor& src = outputs[i];
        if (!src.IsInitialized() || src.NumElements() == 0) {
          c_outputs[i] =
              EmptyTensor(static_cast<TF_DataType>(src.dtype()), src.shape());
          continue;
        }
        c_outputs[i] = TF_TensorFromTensor(src, &status->status);
        if (!status->status.ok()) return;
      }
    }
    
    extern "C" {
    
    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)
  9. ci/official/containers/linux_arm64/devel.usertools/repack_libtensorflow.sh

    #
    # Arguments:
    #   src_jar - path to the original srcjar
    #   dest_jar - path to the destination
    # Returns:
    #   None
    function cp_normalized_srcjar() {
      src_jar="$1"
      dest_jar="$2"
      tmp_dir=$(mktemp -d)
      cp "${src_jar}" "${tmp_dir}/orig.jar"
      pushd "${tmp_dir}"
      # Extract any src/ files
      jar -xf "${tmp_dir}/orig.jar" src/
      # Extract any org/ files under src/main/java
    Shell Script
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  10. ci/official/containers/linux_arm64/setup.sources.sh

    cat >/etc/apt/sources.list.d/custom.list <<SOURCES
    # More Python versions: Deadsnakes
    deb http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal main
    deb-src http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal main
    
    # LLVM/Clang 17 repository
    deb http://apt.llvm.org/focal/ llvm-toolchain-focal-17 main
    deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-17 main
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 1.7K bytes
    - Viewed (0)
Back to top