Liqun/ort package name2 (#7337)

This commit is contained in:
liqunfu 2021-04-13 20:36:24 -07:00 committed by GitHub
parent f62db1a09c
commit 75d8319286
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -251,7 +251,7 @@ if enable_training:
# this is needed immediately by pytorch/ort so that the user is able to
# install an onnxruntime training package with matching torch cuda version.
package_name = 'onnxruntime-training'
if cuda_version and not nightly_build:
if cuda_version:
# removing '.' to make Cuda version number in the same form as Pytorch.
cuda_version = cuda_version.replace('.', '')
local_version = '+cu' + cuda_version