Commit 1a309fa9 authored by A. Unique TensorFlower's avatar A. Unique TensorFlower
Browse files

Removing tensorflow recommenders library from requirement.txt.

PiperOrigin-RevId: 375826079
parent df044b9c
...@@ -25,16 +25,30 @@ library, while input pipeline, configuration and training loop is here. ...@@ -25,16 +25,30 @@ library, while input pipeline, configuration and training loop is here.
## Prerequisites ## Prerequisites
To get started, download the code from TensorFlow models GitHub repository or To get started, download the code from TensorFlow models GitHub repository or
use the pre-installed Google Cloud VM. We also need to install [TensorFlow use the pre-installed Google Cloud VM.
Recommenders](https://www.tensorflow.org/recommenders) library.
```bash ```bash
git clone https://github.com/tensorflow/models.git git clone https://github.com/tensorflow/models.git
pip install tensorflow-recommenders
export PYTHONPATH=$PYTHONPATH:$(pwd)/models export PYTHONPATH=$PYTHONPATH:$(pwd)/models
``` ```
Make sure to use TensorFlow 2.4+. We also need to install
[TensorFlow Recommenders](https://www.tensorflow.org/recommenders) library.
If you are using [tf-nightly](https://pypi.org/project/tf-nightly/) make
sure to install
[tensorflow-recommenders](https://pypi.org/project/tensorflow-recommenders/)
without its dependancies by passing `--no-deps` argument.
For tf-nightly:
```bash
pip install tensorflow-recommenders --no-deps
```
For stable TensorFlow 2.4+ [releases](https://pypi.org/project/tensorflow/):
```bash
pip install tensorflow-recommenders
```
## Dataset ## Dataset
......
...@@ -12,7 +12,6 @@ tensorflow-hub>=0.6.0 ...@@ -12,7 +12,6 @@ tensorflow-hub>=0.6.0
tensorflow-model-optimization>=0.4.1 tensorflow-model-optimization>=0.4.1
tensorflow-datasets tensorflow-datasets
tensorflow-addons tensorflow-addons
tensorflow-recommenders>=0.5.0
dataclasses;python_version<"3.7" dataclasses;python_version<"3.7"
gin-config gin-config
tf_slim>=1.1.0 tf_slim>=1.1.0
......
...@@ -31,8 +31,8 @@ py_test() { ...@@ -31,8 +31,8 @@ py_test() {
local exit_code=0 local exit_code=0
echo "===========Running Python test============" echo "===========Running Python test============"
# Skipping Ranking tests, TODO(b/189265753) remove it once the issue is fixed.
for test_file in `find official/ -name '*test.py' -print` for test_file in `find official/ -name '*test.py' -print | grep -v 'official/recommendation/ranking'`
do do
echo "####=======Testing ${test_file}=======####" echo "####=======Testing ${test_file}=======####"
${PY_BINARY} "${test_file}" ${PY_BINARY} "${test_file}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment