mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
create the onnx_root in local, and link it
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/12294 Reviewed By: BIT-silence Differential Revision: D10178208 Pulled By: houseroad fbshipit-source-id: 6105b88ea5f3ce9164961cf13b356d85178c374d
This commit is contained in:
committed by
Facebook Github Bot
parent
3db9738b30
commit
2217c0b408
@ -20,9 +20,10 @@ alias with_proxy="HTTPS_PROXY=http://fwdproxy.any:8080 HTTP_PROXY=http://fwdprox
|
||||
RED='\033[0;31m'
|
||||
CYAN='\033[0;36m'
|
||||
NC='\033[0m'
|
||||
onnx_root="$HOME/onnx-dev" # I think hardcoding the onnx root dir is fine, just like fbsource
|
||||
onnx_root="$HOME/local/onnx-dev" # I think hardcoding the onnx root dir is fine, just like fbsource
|
||||
onnx_root_link="$HOME/onnx-dev"
|
||||
venv="$onnx_root/onnxvenv"
|
||||
onnx_init_file="$onnx_root/.onnx_env_init"
|
||||
onnx_init_file="$onnx_root_link/.onnx_env_init"
|
||||
ccache_root="$onnx_root/ccache"
|
||||
ccache_script="$(pwd)/ccache_install.sh"
|
||||
sanity_script="$onnx_root/sanity.sh"
|
||||
@ -67,6 +68,11 @@ if [ -e "$onnx_root" ]; then
|
||||
mv --backup=t -T "$onnx_root" "${onnx_root}.old.$timestamp"
|
||||
fi
|
||||
mkdir -p "$onnx_root"
|
||||
if [ -e "$onnx_root_link"]; then
|
||||
timestamp=$(date "+%Y.%m.%d-%H.%M.%S")
|
||||
mv --backup=t -T "$onnx_root_link" "${onnx_root_link}.old.$timestamp"
|
||||
fi
|
||||
ln -s "$onnx_root" "$onnx_root_link"
|
||||
|
||||
# Set the name of virtualenv instance
|
||||
with_proxy virtualenv "$venv"
|
||||
|
Reference in New Issue
Block a user