Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for tf (0.14 sec)

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

    set -euxo pipefail
    
    # 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
    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)
  2. ci/official/utilities/get_versions.sh

    export TF_VER_SUFFIX=$(awk -F\" '/#define TF_VERSION_SUFFIX/ {print $2}' tensorflow/core/public/version.h)
    export TF_VER_PYTHON=$(awk -F\' '/_VERSION =/ {print $2}' tensorflow/tools/pip_package/setup.py)
    
    # Derived helper variables.
    export TF_VER_SHORT="${TF_VER_MAJOR}.${TF_VER_MINOR}"
    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)
  3. ci/official/bisect.sh

    # script:
    #
    #   TF_BISECT_GOOD: Last known good commit (e.g. commit from the last passing job)
    #   TF_BISECT_BAD: First bad commit (e.g. commit from the first failing job)
    #   TF_BISECT_SCRIPT: The build script path relative to the TF root dir, e.g.
    #     ci/official/wheel.sh
    #   TFCI: The env config path, relative to the TF root dir, e.g.
    #     ci/official/envs/an_env_config
    #
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 01 03:21:19 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  4. ci/official/any.sh

    if [[ -n "${TF_ANY_EXTRA_ENV:-}" ]]; then
      export TFCI="$TFCI,$TF_ANY_EXTRA_ENV"
    fi
    if [[ -n "${TF_ANY_SCRIPT:-}" ]]; then
      "$TF_ANY_SCRIPT"
    elif [[ -n "${TF_ANY_TARGETS:-}" ]]; then
      source "${BASH_SOURCE%/*}/utilities/setup.sh"
      tfrun bazel "${TF_ANY_MODE:-test}" $TFCI_BAZEL_COMMON_ARGS $TF_ANY_TARGETS
    else
      echo 'Looks like $TF_ANY_TARGETS are $TF_ANY_SCRIPT are both empty. That is an error.'
      exit 1
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 01 03:21:19 GMT 2024
    - 2.1K bytes
    - Viewed (1)
  5. ci/official/upload.sh

      gcloud auth activate-service-account --key-file="$TFCI_ARTIFACT_FINAL_GCS_SA_PATH"
    
      # $TF_VER_FULL will resolve to e.g. "2.15.0-rc2". Since $TF_VER_FULL comes
      # from get_versions.sh, which must be run *after* update_version.py, FINAL_URI
      # can't be set inside the rest of the _upload envs.
      FINAL_URI="$TFCI_ARTIFACT_FINAL_GCS_URI/$TF_VER_FULL"
      gsutil -m rsync -d -r "$DOWNLOADS" "$FINAL_URI"
    
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Jan 24 20:52:12 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  6. ci/official/utilities/setup_docker.sh

      fi
    fi
    
    # Keep the existing "tf" container if it's already present.
    # The container is not cleaned up automatically! Remove it with:
    # docker rm tf
    if ! docker container inspect tf >/dev/null 2>&1 ; then
      # Pass all existing TFCI_ variables into the Docker container
      env_file=$(mktemp)
      env | grep ^TFCI_ > "$env_file"
      docker run $TFCI_DOCKER_ARGS --name tf -w "$TFCI_GIT_DIR" -itd --rm \
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Jan 26 15:27:59 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  7. ci/official/containers/linux_arm64/build.sh

      else
        TAG="pr-${KOKORO_GITHUB_PULL_REQUEST_NUMBER}"
      fi
    fi
    
    # Build for both JAX and TF usage.  We do these in one place because they share
    # almost all of the same cache layers
    export DOCKER_BUILDKIT=1
    for target in jax tf; do
      IMAGE="gcr.io/tensorflow-sigs/build-arm64:$target-$TAG"
      docker pull "$IMAGE" || true
    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)
  8. ci/official/utilities/rename_and_verify_wheels.sh

    "$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)'
      "$python" -c 'import sys; import tensorflow as tf; sys.exit(0 if "keras" in tf.keras.__name__ else 1)'
    fi
    # VERY basic check to ensure the [and-cuda] package variant is installable.
    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/wheel.sh

    if [[ "$TFCI_NIGHTLY_UPDATE_VERSION_ENABLE" == 1 ]]; then
      tfrun python3 tensorflow/tools/ci_build/update_version.py --nightly
      # replace tensorflow to tf_nightly in the wheel name
      export TFCI_BUILD_PIP_PACKAGE_ARGS="$(echo $TFCI_BUILD_PIP_PACKAGE_ARGS | sed 's/tensorflow/tf_nightly/')"
    fi
    
    tfrun bazel build $TFCI_BAZEL_COMMON_ARGS //tensorflow/tools/pip_package:wheel $TFCI_BUILD_PIP_PACKAGE_ARGS
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 06 21:54:13 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  10. ci/official/containers/linux_arm64/devel.usertools/rename_and_verify_wheels.sh

    # "manylinux_xyz" into the wheel filename.
    set -euxo pipefail
    
    for wheel in /tf/pkg/*.whl; do
      echo "Checking and renaming $wheel..."
      time python3 -m auditwheel repair --plat manylinux2014_aarch64 "$wheel" --wheel-dir /tf/pkg 2>&1 | tee check.txt
    
      # We don't need the original wheel if it was renamed
      new_wheel=$(grep --extended-regexp --only-matching '/tf/pkg/\S+.whl' check.txt)
      if [[ "$new_wheel" != "$wheel" ]]; then
        rm "$wheel"
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 19:00:37 GMT 2023
    - 1.3K bytes
    - Viewed (0)
Back to top