Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for Python (0.36 sec)

  1. ci/official/containers/linux_arm64/setup.python.sh

    #
    # setup.python.sh: Install a specific Python version and packages for it.
    # Usage: setup.python.sh <pyversion> <requirements.txt>
    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
    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)
  2. ci/official/containers/linux_arm64/devel.usertools/setup_venv_test.sh

    # 
    # 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
    ln -s $(ls /$1/lib) /$1/lib/python3
    ln -s ../tensorflow $1/tensorflow
    # extglob is necessary for @(a|b) pattern matching
    # see "extglob" in the bash manual page ($ man bash)
    bash -O extglob -c "/$1/bin/pip install $2"
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  3. configure

    #!/usr/bin/env bash
    
    set -e
    set -o pipefail
    
    if [ -z "$PYTHON_BIN_PATH" ]; then
      PYTHON_BIN_PATH=$(which python3 || which python || true)
    fi
    
    # Set all env variables
    CONFIGURE_DIR=$(dirname "$0")
    "$PYTHON_BIN_PATH" "${CONFIGURE_DIR}/configure.py" "$@"
    
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sun Apr 12 14:04:24 GMT 2020
    - 285 bytes
    - Viewed (1)
  4. ci/official/utilities/get_versions.sh

    #
    # These variables aren't available by default. Scripts must source this file
    # explicitly, *after* checking if update_version.py needs to be run for a
    # nightly job. update_version.py affects TF_VER_SUFFIX, TF_VER_PYTHON, and
    # TF_VER_FULL.
    
    # Note: in awk, the command '/search/ {commands}' applies the commands to any line that
    # matches the /search/ regular expression. "print $N" prints the Nth "field",
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Jan 10 19:39:41 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  5. scripts/build-docs.sh

    #!/usr/bin/env bash
    
    set -e
    set -x
    
    # Check README.md is up to date
    python ./scripts/docs.py verify-docs
    Shell Script
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Jan 22 19:26:14 GMT 2024
    - 140 bytes
    - Viewed (0)
  6. .github/hub_scripts/pr_ci.sh

    # This script must be executed from the branch associated with the PR to issue the command on.
    #
    
    PR_NUMBER=$(hub pr show -f '%I')
    Shell Script
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Jan 22 15:25:21 GMT 2021
    - 1K bytes
    - Viewed (0)
  7. common/scripts/kind_provisioner.sh

    }
    
    function cidr_to_ips() {
        CIDR="$1"
        # cidr_to_ips returns a list of single IPs from a CIDR. We skip 1000 (since they are likely to be allocated
        # already to other services), then pick the next 100.
        python3 - <<EOF
    from ipaddress import ip_network, IPv6Network;
    from itertools import islice;
    
    net = ip_network('$CIDR')
    net_bits = 128 if type(net) == IPv6Network else 32;
    net_len = pow(2, net_bits - net.prefixlen)
    Shell Script
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Apr 08 19:12:55 GMT 2024
    - 17.3K bytes
    - Viewed (1)
  8. ci/official/utilities/rename_and_verify_wheels.sh

      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
      "$python" -c 'import tensorflow as tf; t1=tf.constant([1,2,3,4]); t2=tf.constant([5,6,7,8]); print(tf.add(t1,t2).shape)'
    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)
  9. ci/official/utilities/setup_macos.sh

      # Install the necessary Python, unless it's already present
      pyenv install -s "$TFCI_PYTHON_VERSION"
      pyenv local "$TFCI_PYTHON_VERSION"
      # Do a sanity check to make sure that we using the correct Python version
      python --version
    fi
    
    # TFCI Mac VM images do not have twine installed by default so we need to
    # install it manually. We use Twine in nightly builds to upload Python packages
    # to PyPI.
    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/containers/linux_arm64/build.sh

    # Builds the following Docker images for Linux ARM64. See the accompanying
    # Dockerfile for more details:
    # - gcr.io/tensorflow-sigs/build-arm64:jax-latest-multi-python
    # - gcr.io/tensorflow-sigs/build-arm64:tf-latest-multi-python
    
    set -exo pipefail
    
    function is_continuous_or_release() {
      [[ "$KOKORO_JOB_TYPE" == "CONTINUOUS_INTEGRATION" ]] || [[ "$KOKORO_JOB_TYPE" == "RELEASE" ]]
    }
    
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Nov 03 13:38:49 GMT 2023
    - 2.3K bytes
    - Viewed (0)
Back to top