Skip to content

Commit

Permalink
Fix docker tag value removing +cu124 like words from torch version
Browse files Browse the repository at this point in the history
  • Loading branch information
vfdev-5 authored Nov 7, 2024
1 parent b9f0b17 commit cd7cc11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ echo "opt_build_args: ${opt_build_args}"

retry "docker build --build-arg PTH_VERSION=${pth_version} ${opt_build_args} -t pytorchignite/${image_name}:latest -f Dockerfile.${image_name} ." "\nBuild failed: ${image_name}"
if [ -z $image_tag ]; then
image_tag=`docker run --rm -i pytorchignite/${image_name}:latest python -c "import torch; import ignite; print(torch.__version__ + \"-\" + ignite.__version__, end=\"\")"`
image_tag=`docker run --rm -i pytorchignite/${image_name}:latest python -c "import torch; import ignite; print(torch.__version__.split('+')[0] + \"-\" + ignite.__version__, end=\"\")"`
fi
docker tag pytorchignite/${image_name}:latest pytorchignite/${image_name}:${image_tag}

Expand Down

0 comments on commit cd7cc11

Please sign in to comment.