Skip to content

Commit

Permalink
Merge pull request tensorflow#52546 from bhack:patch-19
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 404902493
Change-Id: I19ac0d99c513cd90582d7d5322b3e3bd0370394d
  • Loading branch information
tensorflower-gardener committed Oct 21, 2021
2 parents abd7efb + c250090 commit 459af37
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
18 changes: 11 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ There are two ways to run TensorFlow unit tests.
Once you have the packages installed, you can run a specific unit test in
bazel by doing as follows:

```bash
export flags="--config=opt -k"
```

If the tests are to be run on GPU, add CUDA paths to LD_LIBRARY_PATH and add
the `cuda` option flag

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

```bash
bazel test //tensorflow/python/saved_model:load_test --test_arg=-- --test_arg=-k=*LoadTest.test_capture_variables*
bazel test ${flags} //tensorflow/python/saved_model:load_test --test_filter=*LoadTest.test_capture_variables*
```

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

2. Using [Docker](https://www.docker.com) and TensorFlow's CI scripts.
Expand Down
8 changes: 4 additions & 4 deletions tensorflow/workspace2.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,8 @@ def _tf_repositories():

tf_http_archive(
name = "absl_py",
sha256 = "0d37dc61cf29b04e42ed13b5fe3f578c05a1d07c75e5d7df826f0c2dc8dd2f53",
strip_prefix = "abseil-py-pypi-v0.14.1",
sha256 = "0be59b82d65dfa1f995365dcfea2cc57989297b065fda696ef13f30fcc6c8e5b",
strip_prefix = "abseil-py-pypi-v0.15.0",
system_build_file = "//third_party/systemlibs:absl_py.BUILD",
system_link_files = {
"//third_party/systemlibs:absl_py.absl.BUILD": "absl/BUILD",
Expand All @@ -507,8 +507,8 @@ def _tf_repositories():
"//third_party/systemlibs:absl_py.absl.logging.BUILD": "absl/logging/BUILD",
},
urls = [
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/abseil/abseil-py/archive/pypi-v0.14.1.tar.gz",
"https://github.com/abseil/abseil-py/archive/pypi-v0.14.1.tar.gz",
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/abseil/abseil-py/archive/pypi-v0.15.0.tar.gz",
"https://github.com/abseil/abseil-py/archive/pypi-v0.15.0.tar.gz",
],
)

Expand Down

0 comments on commit 459af37

Please sign in to comment.