Skip to content

Commit 79f082d

Browse files
authored
Fixed torch version in docker push_all.sh (#3300)
* Updated pytorch version in CI and docker * Fix docker tag * Fix docker tag value removing +cu124 like words from torch version * Fix version compare in test_image * Fixed torch version in docker push_all.sh
1 parent 8a34587 commit 79f082d

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

docker/push_all.sh

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,9 @@ echo $DOCKER_TOKEN | docker login --username=$DOCKER_USER --password-stdin
2626

2727
set -xeu
2828

29-
3029
if [ ${push_selected_image} == "all" ]; then
31-
3230
image_name="base"
33-
image_tag=`docker run --rm -i pytorchignite/${image_name}:latest python -c "import torch; import ignite; print(torch.__version__ + \"-\" + ignite.__version__, end=\"\")"`
31+
image_tag=`docker run --rm -i pytorchignite/${image_name}:latest python -c "import torch; import ignite; print(torch.__version__.split('+')[0] + \"-\" + ignite.__version__, end=\"\")"`
3432

3533
for image_name in "base" "vision" "nlp" "apex" "apex-vision" "apex-nlp"
3634
do
@@ -40,9 +38,6 @@ if [ ${push_selected_image} == "all" ]; then
4038

4139
done
4240

43-
image_name="hvd-base"
44-
image_tag=`docker run --rm -i pytorchignite/${image_name}:latest python -c "import torch; import ignite; print(torch.__version__ + \"-\" + ignite.__version__, end=\"\")"`
45-
4641
for image_name in "hvd-base" "hvd-vision" "hvd-nlp" "hvd-apex" "hvd-apex-vision" "hvd-apex-nlp"
4742
do
4843

@@ -52,9 +47,6 @@ if [ ${push_selected_image} == "all" ]; then
5247
done
5348

5449
# DEPRECATED due to no activity
55-
# image_name="msdp-apex"
56-
# image_tag=`docker run --rm -i pytorchignite/${image_name}:latest python -c "import torch; import ignite; print(torch.__version__ + \"-\" + ignite.__version__, end=\"\")"`
57-
5850
# for image_name in "msdp-apex" "msdp-apex-vision" "msdp-apex-nlp"
5951
# do
6052

@@ -66,7 +58,7 @@ if [ ${push_selected_image} == "all" ]; then
6658
else
6759

6860
image_name=${push_selected_image}
69-
image_tag=`docker run --rm -i pytorchignite/${image_name}:latest python -c "import torch; import ignite; print(torch.__version__ + \"-\" + ignite.__version__, end=\"\")"`
61+
image_tag=`docker run --rm -i pytorchignite/${image_name}:latest python -c "import torch; import ignite; print(torch.__version__.split('+')[0] + \"-\" + ignite.__version__, end=\"\")"`
7062

7163
docker push pytorchignite/${image_name}:latest
7264
docker push pytorchignite/${image_name}:${image_tag}

0 commit comments

Comments
 (0)