build: switch to the correct directory before updating ODS (#1452)

pull/1214/head
Ashay Rane 2022-10-04 11:24:32 -05:00 committed by GitHub
parent 2ba71af651
commit 760cb13be0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -156,8 +156,10 @@ function run_in_docker() {
setup_venv "$python_version"
build_in_tree "$TM_USE_PYTORCH_BINARY" "$python_version"
if [ "${TM_UPDATE_ODS_AND_SHAPE_LIB}" == "ON" ]; then
pushd /main_checkout/torch-mlir
./build_tools/update_torch_ods.sh
./build_tools/update_shape_lib.sh
popd
fi
if [ "${TM_SKIP_TESTS}" == "OFF" ]; then
test_in_tree;