Update update_torch_ods.sh to use new torch_mlir python layout

pull/304/head
Ramiro Leal-Cavazos 2021-09-22 16:27:48 +00:00 committed by Sean Silva
parent 6d8e7f1bb1
commit 19feb58ef8
1 changed files with 3 additions and 3 deletions

View File

@ -2,10 +2,10 @@
# Updates auto-generated ODS files for the `torch` dialect.
set -e
src_dir="$(realpath $(dirname $0)/..)"
src_dir="$(realpath $(dirname $0)/../../..)"
build_dir="$(realpath "${TORCH_MLIR_BUILD_DIR:-$src_dir/build}")"
torch_ir_dir="${src_dir}/include/torch-mlir/Dialect/Torch/IR"
python_packages_dir="${build_dir}/tools/torch-mlir/python_packages"
torch_ir_dir="${src_dir}/external/torch-mlir/include/torch-mlir/Dialect/Torch/IR"
python_packages_dir="${build_dir}/python_packages"
#ninja -C "${build_dir}"
PYTHONPATH="${python_packages_dir}/torch_mlir" python \