Commit Graph

1583 Commits

Author SHA1 Message Date
Pankaj Kanwar
a98039c09e Upgrade to CUDA 11.2 and cuDNN 8.1 versions.
PiperOrigin-RevId: 358236420
Change-Id: I2d5d078b86f6197be1d546d11aeddc11e79ef8fb
2021-02-18 12:35:37 -08:00
Laura Pak
55367cfc7d Add python<x.x> -m in front of twine commands in nightly_release/ubuntu
PiperOrigin-RevId: 358192739
Change-Id: I84cc373c1745c257a0731f13c4cadae356beb05d
2021-02-18 09:21:02 -08:00
TensorFlower Gardener
1aa2aafaad Merge pull request from ROCmSoftwarePlatform:google_upstream_rocm_container_pip_install_fix
PiperOrigin-RevId: 357723262
Change-Id: I0463258f44fc97781b100bb684ba370cc74e2e76
2021-02-16 08:29:36 -08:00
Geeta Chavan
eae8b1ab30 Increase the threshold for MAC_CPU_MAX_WHL_SIZE to 185M
PiperOrigin-RevId: 356787183
Change-Id: I913af04ce7a238897efb0bb62a4a9a7386bcafda
2021-02-10 11:49:27 -08:00
Terry Heo
e54a4e3aea Build tflite_runtime Python wheel with CMake
[Normal build for Python 3.7]
$ PYTHON=python3.7 tensorflow/lite/tools/pip_package/build_pip_package_with_cmake.sh

[armhf cross build for Python 3.7]
$ tensorflow/tools/ci_build/ci_build.sh PI-PYTHON37 tensorflow/lite/tools/pip_package/build_pip_package_with_cmake.sh armhf

- lite/tools/cmake/download_toolchains.sh is added to download ARM toolchains
- tools/ci_build/Dockerfile.pi* are updated to use cmake 3.16.8

PiperOrigin-RevId: 356621208
Change-Id: I7f1cb0c8389b5a5e637036b52b33e5da0afa2b77
2021-02-09 16:44:50 -08:00
Deven Desai
171076bb74 Dropping Python2x references from install_pip_packages.sh
This commit is in reponse to the reviewer feedback for PR https://github.com/tensorflow/tensorflow/pull/46691

Instead of updating to work correctly with Python2.x (i.e. what the PR is currently trying to do), this commit removes all Python2.x references from it (since TF stopped supporting Python2.x a while ago). This should also serve the orignial purpose of unblocking ROCm CI builds.
2021-02-09 22:12:40 +00:00
Laura Pak
66d484447f Enable py39 for TF
PiperOrigin-RevId: 355738998
Change-Id: I1c96ca7fa8b9b37258ecd57b2a98a685cea42ca4
2021-02-04 16:46:28 -08:00
Amit Patankar
b3c18d40cb Internal change for MacOS libtensorflow.
PiperOrigin-RevId: 355660829
Change-Id: Idd99ce0a9fffc71cb1e16a2083e16c1aea0d96fc
2021-02-04 11:14:17 -08:00
Deven Desai
42ca44080f Removing deprecated CI scripts 2021-02-03 08:57:05 -08:00
Deven Desai
b2e175a6e2 Switch ROCm CI scripts to use ROCM 4.0.1 2021-02-03 08:53:22 -08:00
Deven Desai
dc6baf66c1 Switch Dockerfile.rocm to use ROCm 4.0.1 2021-02-03 08:53:08 -08:00
Amit Patankar
8e3464ea15 Fix Python typo.
PiperOrigin-RevId: 355281495
Change-Id: Iced6c14c6239ba44ccbafaa521e9f435f944f5ae
2021-02-02 17:00:25 -08:00
Mihai Maruseac
e63a25656b Fix bad copy-paste from 0e84e1a598
PiperOrigin-RevId: 355184963
Change-Id: Ib14673bc2a674bdc02b755e33f00736b8b1a908e
2021-02-02 09:38:13 -08:00
Mihai Maruseac
7d7c5a29a7 Remove --force-reinstall from tb and tfe. Update tfe to latest.
Having `--force-reinstall` brings in `numpy-1.20` which has a backwards incompatible change. This is a stop gap to fix broken builds but we should convert to installing from a requirements file instead of expliclty listing dependencies (in 6 different places!!!!!)

Also, update estimator to the latest release. It seems we forgot this step after last release.

PiperOrigin-RevId: 355173614
Change-Id: Ia5b235d3df34631a80dcae9b4a101fdd17575295
2021-02-02 08:45:42 -08:00
Mihai Maruseac
0e84e1a598 Fix numpy and setuptools pinning.
Somehow, we got the same stanza replicated in 4 different places.

PiperOrigin-RevId: 355049284
Change-Id: Iee35d15f4c721cd05fcdd3d25869a60470908f38
2021-02-01 16:22:45 -08:00
Mihai Maruseac
784ea35c01 Handle breakage caused by new numpy and setuptools.
PiperOrigin-RevId: 355019618
Change-Id: Ie3f6df6cb88dd4f6b995f31474266cc9d8c281da
2021-02-01 14:15:14 -08:00
Mihai Maruseac
8178455c11 Allow 2 more pylint errors.
PiperOrigin-RevId: 355015282
Change-Id: Iaae3d808e859bcbf3acbdbe024b439a7f561a2cf
2021-02-01 13:48:30 -08:00
Kibeom Kim
acea35d1f8 Upgrade NumPy to resolve CI breakage.
PiperOrigin-RevId: 355004400
Change-Id: I1d388b054964664254f3a0c318b781542d9d5764
2021-02-01 13:15:41 -08:00
Advait Jain
c21a146b96 Fix clang-format installation on the TFLM Docker container.
The TFLM CI is currently failing with the following error message:
```
The following packages have unmet dependencies:
 clang : Depends: clang-12 (>= 12~) but it is not installable
 clang-format : Depends: clang-format-12 (>= 12~) but it is not installable
E: Unable to correct problems, you have held broken packages.
The command '/bin/sh -c apt-get install -y clang clang-format' returned a non-zero code: 100
```

This changes ensures that we download a specific version of clang. We can still
upgrade if there is a new release, but that should be deliberate instead of
breaking the CI.

PiperOrigin-RevId: 354953821
Change-Id: I693ffef2975a116ffac8f27c409cd5ca7f527790
2021-02-01 09:21:49 -08:00
Kibeom Kim
f183e6ff69 Upgrade NumPy to resolve CI breakage.
PiperOrigin-RevId: 354949493
Change-Id: I5f3d857ae951fd0c6aee4540a92766ac681917aa
2021-02-01 09:00:15 -08:00
Kibeom Kim
e216b1f61c Upgrade NumPy to resolve CI breakage.
PiperOrigin-RevId: 354945194
Change-Id: Ie9486e6b234003ecaa61e11066c0beed113b7075
2021-02-01 08:38:35 -08:00
Mihai Maruseac
b2bf15ef4a Fix sanity build
PiperOrigin-RevId: 354942070
Change-Id: Icfb7f7d2dd3cf201a68cdb6ddcc2465c15e195ea
2021-02-01 08:22:57 -08:00
Amit Patankar
f58ded4736 Run configure for libtensorflow with Python3.8.
PiperOrigin-RevId: 354380970
Change-Id: Iae582a84b8eabcbfe9f64b0e7f4fb624560f5ae4
2021-01-28 13:33:37 -08:00
Amit Patankar
828d3611aa MacOS libtensorflow fix.
PiperOrigin-RevId: 354374100
Change-Id: I2ae1464dd370e43d3d54d0844b8f02199e8f0f0c
2021-01-28 12:58:12 -08:00
Amit Patankar
9d7088c351 Install twine for MacOS nightly releases.
PiperOrigin-RevId: 354337564
Change-Id: Ib3709f2b6499d9427262076890c7da2399770a77
2021-01-28 10:17:06 -08:00
Amit Patankar
7a988beda6 Internal change fix.
PiperOrigin-RevId: 354198792
Change-Id: Iba9653846bfc028c3bcd4572c9a60d669897ba4d
2021-01-27 16:33:51 -08:00
Amit Patankar
f40e2d37c5 Internal change to libtensorflow builds.
PiperOrigin-RevId: 354160743
Change-Id: Id79e0dace9bca393ef135db14df713bf20c74d96
2021-01-27 13:36:29 -08:00
Amit Patankar
24435ee292 Another virtualenv environment adjustment.
PiperOrigin-RevId: 354139066
Change-Id: Ie9687c3d5cc8bdb3cbba6312f5de5a102c140a2d
2021-01-27 12:01:40 -08:00
Amit Patankar
a4bc5e835e Attempt 2 at fixing virtualenvs.
PiperOrigin-RevId: 354008813
Change-Id: I7370446a447e52127bd49765c6f6d99e9c6fb7d1
2021-01-26 20:10:40 -08:00
Amit Patankar
9c2bafc235 Fix MacOS venv issue.
PiperOrigin-RevId: 353986703
Change-Id: Ia190e0ea4c524f5147e153ece0467cca2bed0fb2
2021-01-26 17:44:26 -08:00
Mihai Maruseac
e17e9d81a6 Allow 2 more pylint errors.
They are caused by https://github.com/PyCQA/pylint/issues/3686

Ping 

PiperOrigin-RevId: 353980227
Change-Id: I7a33be622a752f0be514da495782cf04dd8010a3
2021-01-26 16:53:50 -08:00
Amit Patankar
943640598d Revamp the libtensorflow release process.
PiperOrigin-RevId: 353977254
Change-Id: Ie3c789192ecb78971c664268209de3b1a4db44dd
2021-01-26 16:40:09 -08:00
Amit Patankar
abdb1cb4bd Fix the MacOS nightly test issues.
PiperOrigin-RevId: 353962259
Change-Id: I6c3fbd1c00d20433ea7c9358337ea39a1dcb41ce
2021-01-26 15:24:49 -08:00
Amit Patankar
2cec383bf0 Update the nightly release smoke test to assume it's already in a virtualenv.
PiperOrigin-RevId: 353947089
Change-Id: Iacbab0b21daef12acc2e33c3ab5b1ba9cac3bbeb
2021-01-26 14:27:47 -08:00
Mihai Maruseac
8ad4669252 Allow one more pylint error
PiperOrigin-RevId: 353906872
Change-Id: I3fc62eb7a922e653bf671559bda023ef166adfe3
2021-01-26 11:44:13 -08:00
Deven Desai
5a3ac7eea0 [ROCm] Update script install_pip_packages.sh for Python 2.7
Currently ROCm TF cotnainers use the `install_pip_packages.sh` script to install the Python pip package-manager.
* https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/ci_build/Dockerfile.rocm#L102
* https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/ci_build/install/install_pip_packages.sh#L20-L23

Starting 01/23/2021, we started getting the following error while building TF containers for ROCM CI (when calling `get-pip.py` for Python2)

```
Traceback (most recent call last):
  File "get-pip.py", line 24226, in <module>
    main()
  File "get-pip.py", line 199, in main
    bootstrap(tmpdir=tmpdir)
  File "get-pip.py", line 82, in bootstrap
    from pip._internal.cli.main import main as pip_entry_point
  File "/tmp/tmpWkL0gn/pip.zip/pip/_internal/cli/main.py", line 60
    sys.stderr.write(f"ERROR: {exc}")
```

The cause seems to be an update to the `get-pip.py` script, which now picks the version `pip-21.0` (previously it was `pip-20.3.4`).
`pip-21.0` drops support for Python2.7 (as indicated by the following warning message)
```
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020.
Please upgrade your Python as Python 2.7 is no longer maintained.
pip 21.0 will drop support for Python 2.7 in January 2021.
More details about Python 2 support in pip can be found at
https://pip.pypa.io/en/latest/development/release-process/#python-2-support
pip 21.0 will remove support for this functionality.
```

It seems that there is now a Python 2.7 specific version of the `get-pip.py` script that we need to use, and that is what this commit does
2021-01-26 05:56:47 -08:00
Mihai Maruseac
903d9e6fac Force sanity configure step to use python3.8
It currently attempts to use python3.5. So build breaks.

Should fully unblock 

PiperOrigin-RevId: 353753493
Change-Id: Iab2d204d8b6ff299942a8748f53d1cee46cb65a8
2021-01-25 16:26:35 -08:00
Amit Patankar
002669bb99 Convert MacOS builds to use virtualenvs for Python.
PiperOrigin-RevId: 353750028
Change-Id: Ibfacf4f599450b3b228ffd9d850e2fb5c50b798f
2021-01-25 16:05:26 -08:00
Mihai Maruseac
9729442a35 Update pylint to the same version as used internally.
Will update to newer version later, after testing that this works and only if needed. Might be rolled back if continuous builds fail after merging.

Added a lot of errors to allow-list, will organize fix-it to remove them.

Removes the `W9015:missing-param-doc` warning type added in  as TF is not ready for that yet.

Part of the work for , . Unblocks 

PiperOrigin-RevId: 353741692
Change-Id: I542e3f28253afada12b595863e571c058f7228b9
2021-01-25 15:21:42 -08:00
Mihai Maruseac
fbf6fed2c7 Refactor and speed up pylint code by ~15%.
Speed up from 177s to 152s.

Remove loop that was checking each error individually against allowlist regexps one by one. This is slow and also results in the same line being reported multiple times (e.g., for a total of 254 pylint reports, there are 1356 matches printed).

Furthermore, loop seems to have matched real errors against the approved list (because it takes regexps as words, not as lines! -- see below), thus allowing linting errors to pass through. Fixing them in this change too.

```
Found an allowlisted error:
  tensorflow/security/fuzzing/raggedCountSparseOutput_fuzz.py:36: [C0330(bad-continuation), ] Wrong hanging indentation (remove 6 spaces).
  via space
      ^^^^^ (this is a word in a allowlist line, taken as a regexp to match)
```

Display proper statistics about the errors at the end of the step.

Part of the work for , . Unblocks 

PiperOrigin-RevId: 353679614
Change-Id: I0de07755e754364dc34f4fd1575e4dc59233cdec
2021-01-25 10:46:27 -08:00
Mihai Maruseac
83ba6a37b2 Updating TensorFlow's bazel version 4.0.0 (the first LTS release).
https://blog.bazel.build/2021/01/19/bazel-4-0.html

PiperOrigin-RevId: 353139694
Change-Id: If2c4516b5d7fa59d032e9c74fb2a0716b2a4f618
2021-01-21 17:37:25 -08:00
Mihai Maruseac
85e9e574dd Update pylint to 2.4.4
This is the same as used internally. Will update to newer version later, after testing that this works and only if needed. Might be rolled back if continuous builds fail after merging.

Part of the work for , . Unblocks 

PiperOrigin-RevId: 353132925
Change-Id: I82388ca6b92cc5d903d04e538e4ffa6dbcabe34e
2021-01-21 16:54:07 -08:00
Mihai Maruseac
a7d6c05bd6 Update pylint to 2.4.4
This is the same as used internally. Will update to newer version later, after testing that this works and only if needed. Might be rolled back if continuous builds fail after merging.

Part of the work for , . Unblocks 

PiperOrigin-RevId: 353119640
Change-Id: Iabdf9822fcc2e2e1d788b533bcba21a0183d1131
2021-01-21 15:48:55 -08:00
Amit Patankar
033cd6d4cc Update the Python certificate for MacOS builds.
https://stackoverflow.com/questions/52805115/certificate-verify-failed-unable-to-get-local-issuer-certificate

PiperOrigin-RevId: 353067706
Change-Id: I6969a34ecf811e325f07be292f272476a7a232c3
2021-01-21 11:58:41 -08:00
Christian Sigg
0b47d35322 Updating TensorFlow's bazel version 4.0.0 (the first LTS release).
https://blog.bazel.build/2021/01/19/bazel-4-0.html

PiperOrigin-RevId: 353029642
Change-Id: I0a8650767f3a69428dcd37badf9a1b1c128d8baf
2021-01-21 09:15:40 -08:00
Mihai Maruseac
3229483cb1 Don't use $HOME, use ~.
Should fix `gpu_on_cpu` Docker build.

PiperOrigin-RevId: 352055331
Change-Id: I964f2cbca39d126b5043bd621b38fa288dddc416
2021-01-15 12:03:21 -08:00
Mihai Maruseac
21ee78c7c9 Excise remaining python2 and python3.5 names.
We already deprecated them, so they should no longer be used at all. We have CI failing as it picks a py3.5 default. Subsequent changes will fix broken CI jobs.

PiperOrigin-RevId: 352044870
Change-Id: I50a62d322ec05781beea78a27704ee7849c277e1
2021-01-15 11:14:00 -08:00
A. Unique TensorFlower
1059e04b92 Update clang in RBE dockerfile to the latest release.
PiperOrigin-RevId: 351971567
Change-Id: I775e3be354f896c9ccefc3339fd9737f479ceeaf
2021-01-15 02:49:56 -08:00
Mihai Maruseac
754034e5de Install bazelisk in docker_cpu_pip.sh
Since caller scripts use Bazelisk, the docker job is broken if we want to use a bazel that is no longer the default one.

PiperOrigin-RevId: 351891433
Change-Id: I6caf0b5940934a3a90737f7fae288c42953a23f1
2021-01-14 15:44:53 -08:00
A. Unique TensorFlower
7e6ea327fe Update MLCompass scripts, a TF CI release script, and a Kokoro benchmark to install pip deps with python<x.x> instead of pip<x.x>.
PiperOrigin-RevId: 351862450
Change-Id: I44e20c77454face9e8f8c1fd9d43eb7a65a49055
2021-01-14 13:21:32 -08:00