Skip to content

Commit 459af37

Browse files
Merge pull request tensorflow#52546 from bhack:patch-19
PiperOrigin-RevId: 404902493 Change-Id: I19ac0d99c513cd90582d7d5322b3e3bd0370394d
2 parents abd7efb + c250090 commit 459af37

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

CONTRIBUTING.md

+11-7
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ There are two ways to run TensorFlow unit tests.
185185
Once you have the packages installed, you can run a specific unit test in
186186
bazel by doing as follows:
187187

188+
```bash
189+
export flags="--config=opt -k"
190+
```
191+
188192
If the tests are to be run on GPU, add CUDA paths to LD_LIBRARY_PATH and add
189193
the `cuda` option flag
190194

@@ -212,15 +216,15 @@ There are two ways to run TensorFlow unit tests.
212216
(Requires `python>=3.7`)
213217

214218
```bash
215-
bazel test //tensorflow/python/saved_model:load_test --test_arg=-- --test_arg=-k=*LoadTest.test_capture_variables*
219+
bazel test ${flags} //tensorflow/python/saved_model:load_test --test_filter=*LoadTest.test_capture_variables*
216220
```
217221

218-
**Note:** You can add `--test_sharding_strategy=disabled` to disables the
219-
sharding so that all the test outputs are in one file. However, it may slow
220-
down the tests for not running in parallel and may cause the test to timeout
221-
but it could be useful when you need to execute a single test or more in
222-
general your filtered/selected tests have a very low execution time and the
223-
sharding
222+
**Note:** You can add `--test_sharding_strategy=disabled` to the `flags` to
223+
disable the sharding so that all the test outputs are in one file. However,
224+
it may slow down the tests for not running in parallel and may cause the
225+
test to timeout but it could be useful when you need to execute a single
226+
test or more in general your filtered/selected tests have a very low
227+
execution time and the sharding
224228
[could create an overhead on the test esecution](https://github.com/bazelbuild/bazel/issues/2113#issuecomment-264054799).
225229

226230
2. Using [Docker](https://www.docker.com) and TensorFlow's CI scripts.

tensorflow/workspace2.bzl

+4-4
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,8 @@ def _tf_repositories():
497497

498498
tf_http_archive(
499499
name = "absl_py",
500-
sha256 = "0d37dc61cf29b04e42ed13b5fe3f578c05a1d07c75e5d7df826f0c2dc8dd2f53",
501-
strip_prefix = "abseil-py-pypi-v0.14.1",
500+
sha256 = "0be59b82d65dfa1f995365dcfea2cc57989297b065fda696ef13f30fcc6c8e5b",
501+
strip_prefix = "abseil-py-pypi-v0.15.0",
502502
system_build_file = "//third_party/systemlibs:absl_py.BUILD",
503503
system_link_files = {
504504
"//third_party/systemlibs:absl_py.absl.BUILD": "absl/BUILD",
@@ -507,8 +507,8 @@ def _tf_repositories():
507507
"//third_party/systemlibs:absl_py.absl.logging.BUILD": "absl/logging/BUILD",
508508
},
509509
urls = [
510-
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/abseil/abseil-py/archive/pypi-v0.14.1.tar.gz",
511-
"https://github.com/abseil/abseil-py/archive/pypi-v0.14.1.tar.gz",
510+
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/abseil/abseil-py/archive/pypi-v0.15.0.tar.gz",
511+
"https://github.com/abseil/abseil-py/archive/pypi-v0.15.0.tar.gz",
512512
],
513513
)
514514

0 commit comments

Comments
 (0)