Skip to content

Commit

Permalink
fix nano UT (intel-analytics#5650)
Browse files Browse the repository at this point in the history
  • Loading branch information
MeouSker77 authored and ForJadeForest committed Sep 20, 2022
1 parent 236e595 commit 2301603
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/nano_unit_tests_pytorch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ jobs:
$CONDA/bin/conda info
bash python/nano/dev/build_and_install.sh linux default false pytorch
pip install pytest
# fix issue, see https://github.com/intel-analytics/BigDL/blob/main/docs/readthedocs/source/doc/Nano/Overview/known_issues.md#ray-issues
pip install google-api-core==2.8.2
pip install ray[default]==1.11.0 prometheus_client==0.13.0
if [ ! -z "${{matrix.pytorch-version}}" ]; then
pip install ${{matrix.pytorch-version}} -f https://download.pytorch.org/whl/torch_stable.html
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/nano_unit_tests_tensorflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ jobs:
$CONDA/bin/conda info
bash python/nano/dev/build_and_install.sh linux default false tensorflow
pip install pytest
# fix issue, see https://github.com/intel-analytics/BigDL/blob/main/docs/readthedocs/source/doc/Nano/Overview/known_issues.md#ray-issues
pip install google-api-core==2.8.2
pip install ray[default]==1.11.0 prometheus_client==0.13.0
source bigdl-nano-init
bash python/nano/test/run-nano-tf-ray-tests.sh
Expand Down
8 changes: 7 additions & 1 deletion docs/readthedocs/source/doc/Nano/Overview/known_issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,10 @@ spec:
### **Nano keras multi-instance training currently does not suport tensorflow dataset.from_generators, numpy_function, py_function**
Nano keras multi-instance training will serialize TensorFlow dataset object into a `graph.pb` file, which does not work with `dataset.from_generators`, `dataset.numpy_function`, `dataset.py_function` due to limitations in TensorFlow.
Nano keras multi-instance training will serialize TensorFlow dataset object into a `graph.pb` file, which does not work with `dataset.from_generators`, `dataset.numpy_function`, `dataset.py_function` due to limitations in TensorFlow.

## **Ray Issues**

### **protobuf version error**

Now `pip install ray[default]==1.11.0` will install `google-api-core==2.10.0`, which depends on `protobuf>=3.20.1`. However, nano depends on `protobuf==3.19.4`, so if we install `ray` after installing `bigdl-nano`, pip will reinstall `protobuf==4.21.5`, which causes error.

0 comments on commit 2301603

Please sign in to comment.