You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update TF versions and scripts to allow consistently building against tf-nightly.
Currently the master branch contains a patch and other changes
that is needed to build against a later version of TF than the
2.13 release (and even the 2.14 rc0). Bumped up the default
commit in the WORKSPACE file to allow a build, and bumped up
the release version to 2.13 for now (was previously 2.12).
Sometimes the tf-nightly build reports a `tf.__git_version__` of
"unknown" (occasionally on intel, frequently on ARM), causing the
build scripts to fail and abort. Modified the `prepare_tf_dep.sh`
to account for this, defaulting to the latest tf-nightly source in
such a case.
Fixes#1202, #1195.
PiperOrigin-RevId: 559233072
sed -E -i $ext"s/strip_prefix = \"tensorflow-2.+\",/strip_prefix = \"tensorflow-${commit_sha}\",/" WORKSPACE
35
-
sed -E -i $ext"s|\"https://github.com/tensorflow/tensorflow/archive/v.+\.zip\"|\"https://github.com/tensorflow/tensorflow/archive/${commit_sha}.zip\"|" WORKSPACE
41
+
# Update TF dependency to installed tensorflow.
42
+
echo"Updating WORKSPACE file to use TensorFlow commit $commit_slug"
43
+
sed -E -i $ext"s/strip_prefix = \"tensorflow-.+\",/strip_prefix = \"tensorflow-${commit_slug}\",/" WORKSPACE
44
+
sed -E -i $ext"s|\"https://github.com/tensorflow/tensorflow/archive/.+\.zip\"|\"https://github.com/tensorflow/tensorflow/archive/${commit_slug}.zip\"|" WORKSPACE
0 commit comments