Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for tmp_dir (0.23 sec)

  1. ci/official/containers/linux_arm64/devel.usertools/repack_libtensorflow.sh

      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
      (mkdir -p src/main/java && cd src/main/java && jar -xf "${tmp_dir}/orig.jar" org/)
      # Repackage src/
      jar -cMf "${tmp_dir}/new.jar" src
      popd
      cp "${tmp_dir}/new.jar" "${dest_jar}"
      rm -rf "${tmp_dir}"
    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)
  2. ci/official/utilities/repack_libtensorflow.sh

      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
      (mkdir -p src/main/java && cd src/main/java && jar -xf "${tmp_dir}/orig.jar" org/)
      # Repackage src/
      jar -cMf "${tmp_dir}/new.jar" src
      popd
      cp "${tmp_dir}/new.jar" "${dest_jar}"
      rm -rf "${tmp_dir}"
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Jul 12 19:47:53 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

      }
    
      static void SetTmpDir(const std::string& tmp_dir) {
        tmp_dir_ = tmp_dir.empty() ? ::testing::TempDir() : tmp_dir;
      }
    
     protected:
      Env* env_;
    
     private:
      std::string root_dir_;
      static int rng_val_;
      static std::string cloud_path_;
      static std::string tmp_dir_;
    };
    
    int ModularFileSystemTest::rng_val_;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

        return tensorflow::io::JoinPath(std::string(test_dir), rng_val);
      } else {
        return "";
      }
    }
    
    static std::string* GetTmpDir() {
      static std::string tmp_dir = InitializeTmpDir();
      if (tmp_dir == "")
        return nullptr;
      else
        return &tmp_dir;
    }
    
    namespace tensorflow {
    namespace {
    
    // TODO(vnvo2409): Refactor `gcs_filesystem_test` to remove unnecessary tests
    // after porting all tests from
    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)
  5. ci/official/utilities/code_check_changed_files.bats

        echo "============================="
        grep -e '\.h$' -e '\.cc$' $BATS_FILE_TMPDIR/changed_files > $BATS_TEST_TMPDIR/files || true
        if [[ ! -s $BATS_TEST_TMPDIR/files ]]; then return 0; fi
        xargs -a $BATS_TEST_TMPDIR/files -i -n1 -P $(nproc --all) \
            bash -c 'clang-format-12 --style=Google {} | git diff --no-index {} -' \
            | tee $BATS_TEST_TMPDIR/needs_help.txt
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Jan 10 19:39:41 GMT 2024
    - 4K bytes
    - Viewed (0)
  6. ci/official/containers/linux_arm64/devel.usertools/code_check_full.bats

      comm -2 -3 $BATS_TEST_TMPDIR/expected_licenses $BATS_TEST_TMPDIR/actual_licenses | grep -v -f $BATS_TEST_TMPDIR/allowed_to_be_missing > $BATS_TEST_TMPDIR/actual_missing_licenses || true
    
      if [[ -s $BATS_TEST_TMPDIR/actual_extra_licenses ]]; then
        echo "Please remove the following extra licenses from $LICENSES_TARGET:"
        cat $BATS_TEST_TMPDIR/actual_extra_licenses
      fi
    
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  7. tensorflow/c/env_test.cc

    TEST(TestEnv, TestDirHandling) {
      TF_StringStream* tempdirs = TF_GetLocalTempDirectories();
      const char* tempdir;
      bool found = false;
      while (TF_StringStreamNext(tempdirs, &tempdir)) {
        found = true;
    
        TF_Status* s = TF_NewStatus();
    
        ::tensorflow::string dirpath =
            ::tensorflow::io::JoinPath(tempdir, "somedir");
        TF_CreateDir(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)
  8. tensorflow/c/env.cc

      list->position = 0;
      return list;
    }
    
    TF_StringStream* TF_GetLocalTempDirectories() {
      auto* tmpdirs = new std::vector<::tensorflow::string>;
    
      ::tensorflow::Env::Default()->GetLocalTempDirectories(tmpdirs);
    
      auto* list = new TF_StringStream;
      list->list = tmpdirs;
      list->position = 0;
      return list;
    }
    
    char* TF_GetTempFileName(const char* extension) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 11 01:20:50 GMT 2021
    - 7K bytes
    - Viewed (0)
  9. ci/official/utilities/setup_macos.sh

    # use the output base directory to run tests.
    if [[ "${TFCI_MACOS_BAZEL_TEST_DIR_ENABLE}" == 1 ]]; then
      mkdir -p "${TFCI_MACOS_BAZEL_TEST_DIR_PATH}"
      export TEST_TMPDIR="${TFCI_MACOS_BAZEL_TEST_DIR_PATH}"
    fi
    
    # "TFCI_MACOS_INSTALL_BAZELISK_ENABLE" is used to decide if we need to install
    # Bazelisk manually. We enable this for macOS x86 builds as those VMs do not
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 15:23:28 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  10. ci/official/utilities/code_check_full.bats

      comm -2 -3 $BATS_TEST_TMPDIR/expected_licenses $BATS_TEST_TMPDIR/actual_licenses | grep -v -f $BATS_TEST_TMPDIR/allowed_to_be_missing > $BATS_TEST_TMPDIR/actual_missing_licenses || true
    
      if [[ -s $BATS_TEST_TMPDIR/actual_extra_licenses ]]; then
        echo "Please remove the following extra licenses from $LICENSES_TARGET:"
        cat $BATS_TEST_TMPDIR/actual_extra_licenses
      fi
    
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 06 21:54:13 GMT 2024
    - 13.2K bytes
    - Viewed (0)
Back to top