mirror of https://github.com/llvm/torch-mlir
Update update_torch_ods.sh to use new torch_mlir python layout
parent
6d8e7f1bb1
commit
19feb58ef8
|
@ -2,10 +2,10 @@
|
||||||
# Updates auto-generated ODS files for the `torch` dialect.
|
# Updates auto-generated ODS files for the `torch` dialect.
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
src_dir="$(realpath $(dirname $0)/..)"
|
src_dir="$(realpath $(dirname $0)/../../..)"
|
||||||
build_dir="$(realpath "${TORCH_MLIR_BUILD_DIR:-$src_dir/build}")"
|
build_dir="$(realpath "${TORCH_MLIR_BUILD_DIR:-$src_dir/build}")"
|
||||||
torch_ir_dir="${src_dir}/include/torch-mlir/Dialect/Torch/IR"
|
torch_ir_dir="${src_dir}/external/torch-mlir/include/torch-mlir/Dialect/Torch/IR"
|
||||||
python_packages_dir="${build_dir}/tools/torch-mlir/python_packages"
|
python_packages_dir="${build_dir}/python_packages"
|
||||||
|
|
||||||
#ninja -C "${build_dir}"
|
#ninja -C "${build_dir}"
|
||||||
PYTHONPATH="${python_packages_dir}/torch_mlir" python \
|
PYTHONPATH="${python_packages_dir}/torch_mlir" python \
|
||||||
|
|
Loading…
Reference in New Issue