File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -ex
4
4
5
+ # Skip pytorch-nightly installation in docker images
6
+ # Installation of pytorch-nightly is needed to prefetch mobilenet_v2 avd v3 models for some tests.
7
+ # Came from https://github.com/ROCm/pytorch/commit/85bd6bc0105162293fa0bbfb7b661f85ec67f85a
8
+ # Models are downloaded on first use to the folder /root/.cache/torch/hub
9
+ # But pytorch-nightly installation also overrides .ci/docker/requirements-ci.txt settings
10
+ # and upgrades some of python packages (sympy from 1.12.0 to 1.13.0)
11
+ # which causes several 'dynamic_shapes' tests to fail
12
+ # Skip prefetching models affects these tests without any errors:
13
+ # python test/mobile/model_test/gen_test_model.py mobilenet_v2
14
+ # python test/quantization/eager/test_numeric_suite_eager.py -k test_mobilenet_v3
15
+ # Issue https://github.com/ROCm/frameworks-internal/issues/8772
16
+ echo " Skip torch-nightly installation"
17
+ exit 0
18
+
5
19
source " $( dirname " ${BASH_SOURCE[0]} " ) /common_utils.sh"
6
20
7
21
# Cache the test models at ~/.cache/torch/hub/
Original file line number Diff line number Diff line change @@ -15,6 +15,12 @@ click==8.1.7
15
15
#Pinned versions: 8.1.7
16
16
#test that import:
17
17
18
+ sympy==1.12.1
19
+ #Description: Python library for symbolic mathematics
20
+ # installed before coremltools to avoid installation of greater sympy version
21
+ #Pinned versions: 1.12.1
22
+ #test that import:
23
+
18
24
coremltools==5.0b5
19
25
#Description: Apple framework for ML integration
20
26
#Pinned versions: 5.0b5
You can’t perform that action at this time.
0 commit comments