Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 72 for venv (0.14 sec)

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

    # Run this from inside the tensorflow github directory.
    # Usage: setup_venv_test.sh venv_and_symlink_name "glob pattern for one wheel file"
    # Example: setup_venv_test.sh bazel_pip "/tf/pkg/*.whl"
    # 
    # This will create a venv with that wheel file installed in it, and a symlink
    # in ./venv_and_symlink_name/tensorflow to ./tensorflow. We use this for the
    # "pip" tests.
    
    python -m venv /$1
    mkdir -p $1
    rm -f ./$1/tensorflow
    Shell Script
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  2. ci/official/containers/linux_arm64/devel.usertools/aarch64.bazelrc

    # the folder instead of the venv package.
    # 
    # Pass --config=pip to run the same suite of tests. If you want to run just one
    # test for investigation, you'll need --config=pip_venv instead, and then you
    # can specify whichever target you want.
    test:pip_venv --action_env PYTHON_BIN_PATH="/bazel_pip/bin/python3"
    test:pip_venv --action_env PYTHON_LIB_PATH="/bazel_pip/lib/python3/site-packages"
    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)
  3. ci/official/utilities/rename_and_verify_wheels.sh

      echo '(search for TFCI_WHL_SIZE_LIMIT to change it)'
      ls -sh *.whl
      exit 2
    fi
    
    # Quick install checks
    venv=$(mktemp -d)
    "python${TFCI_PYTHON_VERSION}" -m venv "$venv"
    python="$venv/bin/python3"
    "$python" -m pip install *.whl $TFCI_PYTHON_VERIFY_PIP_INSTALL_ARGS
    if [[ "$TFCI_WHL_IMPORT_TEST_ENABLE" == "1" ]]; then
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 27 21:16:27 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  4. ci/official/containers/linux_arm64/devel.usertools/aarch64_clang.bazelrc

    # the folder instead of the venv package.
    # 
    # Pass --config=pip to run the same suite of tests. If you want to run just one
    # test for investigation, you'll need --config=pip_venv instead, and then you
    # can specify whichever target you want.
    test:pip_venv --action_env PYTHON_BIN_PATH="/bazel_pip/bin/python3"
    test:pip_venv --action_env PYTHON_LIB_PATH="/bazel_pip/lib/python3/site-packages"
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Tue Nov 21 12:25:39 GMT 2023
    - 6.3K bytes
    - Viewed (0)
  5. ci/official/containers/linux_arm64/devel.usertools/wheel_verification.bats

    # the venv and the venv is active when those tests run. The venv gets cleaned
    # up in teardown_file() above.
    @test "Wheel is installable" {
        python3 -m venv /tf/venv
        source /tf/venv/bin/activate
        python3 -m pip install --upgrade setuptools wheel
        python3 -m pip install "$TF_WHEEL"
    }
    
    @test "TensorFlow is importable" {
        source /tf/venv/bin/activate
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Tue Jan 23 02:14:00 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  6. ci/official/containers/linux_arm64/setup.python.sh

    set -xe
    
    source ~/.bashrc
    VERSION=$1
    REQUIREMENTS=$2
    
    add-apt-repository ppa:deadsnakes/ppa
    # Install Python packages for this container's version
    cat >pythons.txt <<EOF
    $VERSION
    $VERSION-dev
    $VERSION-venv
    $VERSION-distutils
    EOF
    /setup.packages.sh pythons.txt
    
    # Re-link pyconfig.h from aarch64-linux-gnu into the devtoolset directory
    # for any Python version present
    pushd /usr/include/aarch64-linux-gnu
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Sep 29 00:26:34 GMT 2023
    - 2.1K bytes
    - Viewed (0)
  7. ci/official/containers/linux_arm64/Dockerfile

    RUN groupadd -g 1001 buildslave && useradd -m -u 1001 -g buildslave buildslave
    RUN mkdir -p /tf/venv
    RUN chown -R buildslave:buildslave /tf
    RUN dpkg -i /patchelf/patchelf_0.14.3-1_arm64.deb
    
    # All lines past this point are reset when $CACHEBUSTER is set. We need this
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Mon Jan 08 09:32:19 GMT 2024
    - 4.1K bytes
    - Viewed (1)
  8. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

          root_dir_ = tensorflow::strings::StrCat(GetParam(), "://", cloud_path_,
                                                  root_dir_);
        }
        env_ = Env::Default();
      }
    
      void SetUp() override {
        FileSystem* fs = nullptr;
        Status s = env_->GetFileSystemForFile(root_dir_, &fs);
        if (fs == nullptr || !s.ok())
          GTEST_SKIP() << "No filesystem registered: " << s;
    
        s = fs->CreateDir(root_dir_);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      // Our fake environment is initialized with the current timestamp.
      std::unique_ptr<NowSecondsEnv> env(new NowSecondsEnv);
      uint64 now = Env::Default()->NowSeconds();
      env->SetNowSeconds(now);
      tf_gcs_filesystem::RamFileBlockCache cache(
          8, 32, 1 /* max staleness */, fetcher,
          [&env]() { return env->NowSeconds(); });
      // Read three blocks into the cache, and advance the timestamp by one second
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:57 GMT 2021
    - 23.2K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc

    #include "tensorflow/core/platform/cloud/now_seconds_env.h"
    #include "tensorflow/core/platform/test.h"
    
    namespace tensorflow {
    namespace {
    
    TEST(ExpiringLRUCacheTest, MaxAge) {
      const string key = "a";
      std::unique_ptr<NowSecondsEnv> env(new NowSecondsEnv);
      tf_gcs_filesystem::ExpiringLRUCache<int> cache(
          1, 0, [&env]() { return env->NowSeconds(); });
      env->SetNowSeconds(1);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 19:31:22 GMT 2020
    - 7.1K bytes
    - Viewed (0)
Back to top