Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tensorflow] Update to version 2.5.0 #7141

Merged
merged 3 commits into from Jul 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion bazel-3.7.0-patches.patch
@@ -1,5 +1,5 @@
diff --git a/src/main/java/com/google/devtools/build/lib/starlarkbuildapi/StarlarkActionFactoryApi.java b/src/main/java/com/google/devtools/build/lib/starlarkbuildapi/StarlarkActionFactoryApi.java
index 0ea30a9..8df189f 100644
index 0ea30a9..8df189f 100755
--- a/src/main/java/com/google/devtools/build/lib/starlarkbuildapi/StarlarkActionFactoryApi.java
+++ b/src/main/java/com/google/devtools/build/lib/starlarkbuildapi/StarlarkActionFactoryApi.java
@@ -359,7 +359,7 @@ public interface StarlarkActionFactoryApi extends StarlarkValue {
Expand Down
4 changes: 2 additions & 2 deletions bazel.spec
@@ -1,4 +1,4 @@
### RPM external bazel 3.7.0
### RPM external bazel 3.7.2

Source: https://github.com/bazelbuild/bazel/releases/download/%{realversion}/bazel-%{realversion}-dist.zip

Expand Down Expand Up @@ -28,7 +28,7 @@ Patch0: bazel-3.7.0-patches

%build

export EXTRA_BAZEL_ARGS="--host_javabase=@local_jdk//:jdk"
export EXTRA_BAZEL_ARGS="--host_javabase=@local_jdk//:jdk --jobs %{compiling_processes}"
bash ./compile.sh

%install
Expand Down
4 changes: 2 additions & 2 deletions eigen.spec
@@ -1,7 +1,7 @@
### RPM external eigen 011e0db31d1bed8b7f73662be6d57d9f30fa457a
### RPM external eigen f612df273689a19d25b45ca4f8269463207c4fee
## INITENV +PATH PKG_CONFIG_PATH %{i}/share/pkgconfig
## NOCOMPILER
%define tag 14ec43b998505b1294e300b1d1717cee901d5f02
%define tag 4fc3872b0dc7540aeaea8de04835508bbd90aae3
%define branch cms/master/%{realversion}
%define github_user cms-externals
Source: git+https://github.com/%{github_user}/eigen-git-mirror.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}-%{tag}.tgz
Expand Down
1 change: 1 addition & 0 deletions pip/keras-nightly.file
@@ -0,0 +1 @@
%define PipDownloadSourceType none
10 changes: 6 additions & 4 deletions pip/requirements.txt
Expand Up @@ -130,6 +130,7 @@ jupyter==1.0.0 ; python_version>'3.0'
jupyterlab-widgets==1.0.0 ; python_version>'3.0'
Keras==2.4.3; python_version>'3.0'
keras-applications==1.0.8; python_version>'3.0'
keras-nightly==2.7.0.dev2021071300; python_version>'3.0'
keras-preprocessing==1.1.2; python_version>'3.0'
keras2onnx==1.7.0 ; python_version>'3.0'
keyring==22.3.0 ; python_version>'3.0'
Expand Down Expand Up @@ -276,11 +277,12 @@ stevedore==1.32.0; python_version>'3.0'
subprocess32==3.5.4; python_version>'3.0'
sympy==1.7.1 ; python_version>'3.0'
tables==3.6.1 ; python_version>'3.0'
#NO_AUTO_UPDATE:2: Force to use tensorflow 2.4.1; this should match the version in tensorflow-sources.spec
tensorboard==2.4.1 ; python_version>'3.0'
#NO_AUTO_UPDATE:3: Force to use tensorflow 2.5.0; this should match the version in tensorflow-sources.spec
tensorboard==2.5.0 ; python_version>'3.0'
tensorflow==2.5.0 ; python_version>'3.0'
tensorflow-estimator==2.5.0; python_version>'3.0'
tensorboard-data-server==0.6.1; python_version>'3.0'
tensorboard-plugin-wit==1.8.0 ; python_version>'3.0'
tensorflow==2.4.1 ; python_version>'3.0'
tensorflow-estimator==2.4.0; python_version>'3.0'
termcolor==1.1.0; python_version>'3.0'
terminado==0.8.3; python_version>'3.0'
testpath==0.4.4 ; python_version>'3.0'
Expand Down
3 changes: 3 additions & 0 deletions pip/tensorboard-data-server.file
@@ -0,0 +1,3 @@
BuildRequires: py3-wheel
Provides: libc.so.6(GLIBC_2.18)(64bit)
%define PipDownloadSourceType none
1 change: 1 addition & 0 deletions pip/tensorboard.file
@@ -1,2 +1,3 @@
Requires: py3-Markdown py3-Werkzeug py3-protobuf py3-html5lib py3-six py3-wheel py3-bleach
Requires: py3-tensorboard-data-server
%define PipDownloadSourceType none
2 changes: 1 addition & 1 deletion pip/tensorflow.file
@@ -1,5 +1,5 @@
## INCLUDE tensorflow-requires
Requires: py3-funcsigs py3-pbr py3-packaging py3-appdirs py3-pyparsing py3-mock py3-Werkzeug
Requires: py3-grpcio py3-astunparse
Requires: py3-grpcio py3-astunparse py3-keras-nightly
%define source0 none
%define source_file none
2 changes: 1 addition & 1 deletion tensorflow-requires.file
Expand Up @@ -2,4 +2,4 @@ Requires: python3 py3-numpy py3-mock py3-wheel py3-typing py3-typing_extensions
Requires: py3-keras-applications py3-keras-preprocessing py3-future py3-wrapt py3-gast py3-setuptools
Requires: py3-cython py3-googlePackages py3-astor py3-six py3-termcolor py3-absl-py
Requires: py3-opt-einsum py3-flatbuffers
Requires: eigen protobuf zlib libpng libjpeg-turbo curl pcre giflib sqlite grpc flatbuffers
Requires: eigen protobuf zlib libpng libjpeg-turbo curl pcre giflib sqlite grpc flatbuffers py3-pybind11
3 changes: 2 additions & 1 deletion tensorflow-sources.file
Expand Up @@ -14,7 +14,7 @@ BuildRequires: bazel java-env git
## INCLUDE tensorflow-requires
## INCLUDE compilation_flags

%define tag 050756d3ddbf0692b74451f6ba3d75d54d345d9e
%define tag 9b69eda15062cfec1b9c2d6f78c0fecbf9e67a34
%define branch cms/v%{realversion}
%define github_user cms-externals
Source: git+https://github.com/%{github_user}/tensorflow.git?obj=%{branch}/%{tag}&export=tensorflow-%{realversion}&output=/tensorflow-%{realversion}.tgz
Expand Down Expand Up @@ -87,6 +87,7 @@ echo "gif:${GIFLIB_ROOT}" >> ${TF_CMS_EXTERNALS}
echo "org_sqlite:${SQLITE_ROOT}" >> ${TF_CMS_EXTERNALS}
echo "cython:" >> ${TF_CMS_EXTERNALS}
echo "flatbuffers:${FLATBUFFERS_ROOT}" >> ${TF_CMS_EXTERNALS}
echo "pybind11:${PY3_PYBIND11_ROOT}" >> ${TF_CMS_EXTERNALS}
echo "functools32_archive:" >> ${TF_CMS_EXTERNALS}
echo "enum34_archive:" >> ${TF_CMS_EXTERNALS}
echo "astor_archive:" >> ${TF_CMS_EXTERNALS}
Expand Down
2 changes: 1 addition & 1 deletion tensorflow-sources.spec
@@ -1,4 +1,4 @@
### RPM external tensorflow-sources 2.4.1
### RPM external tensorflow-sources 2.5.0
%define python_cmd python3
%define python_env PYTHON3PATH
%define build_type opt
Expand Down
2 changes: 1 addition & 1 deletion tensorflow.spec
@@ -1,4 +1,4 @@
### RPM external tensorflow 2.4.1
### RPM external tensorflow 2.5.0
%if "%{?vectorized_package:set}" != "set"
%define source_package tensorflow-sources
%else
Expand Down