Skip to content

Commit c5c04b0

Browse files
Remove pinning protobuf version since 3.20.3 is old and not supported by Tensorflow
Install `tf_nightly[and_cuda]` for Keras GPU builds. PiperOrigin-RevId: 728362609
1 parent eaa4052 commit c5c04b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ scipy
88
# with both new and old protobuf stubs. This is needed to resolve
99
# Keras-TensorFlow circular dependency issue, when one of them gets a dependency
1010
# incompatible with another one (protobuf in this specific case).
11-
protobuf==3.20.3
12-
tf-nightly
11+
protobuf==4.21.6
12+
tf-nightly[and_cuda]
1313
portpicker
1414
pyyaml
1515
Pillow

tf_keras/kokoro/github/ubuntu/gpu/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pip uninstall -y keras-nightly
4242

4343
# LD Library Path needs to be same as TensorFlow Ubuntu Docker build -
4444
# https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/tf_sig_build_dockerfiles/
45-
export LD_LIBRARY_PATH="/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/tensorrt/lib"
45+
# export LD_LIBRARY_PATH="/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/tensorrt/lib"
4646
CUDA_TOOLKIT_PATH="/usr/local/cuda-11.8"
4747
TF_CUDA_CONFIG_REPO="@ubuntu20.04-gcc9_manylinux2014-cuda11.8-cudnn8.6-tensorrt8.4_config_cuda"
4848
TF_CUDA_COMPUTE_CAPABILITIES="sm_35,sm_50,sm_60,sm_70,sm_75,compute_80"

0 commit comments

Comments
 (0)