Finish removing `iree-tools-xla` Python package. (#13563)
Follow-up to https://github.com/openxla/iree/pull/13068. This path has
been unused, and IREE natively supports importing from StableHLO now.
The `iree-tools-tf` and `iree-tools-tflite` packages still exist, though
they are now tiny pure python packages that could be merged into a
single package (see https://github.com/openxla/iree/issues/13483).
diff --git a/.github/workflows/validate_and_publish_release.yml b/.github/workflows/validate_and_publish_release.yml
index 523f771..9cad67b 100644
--- a/.github/workflows/validate_and_publish_release.yml
+++ b/.github/workflows/validate_and_publish_release.yml
@@ -41,7 +41,7 @@
- name: Install python packages
id: install_python_packages
run: |
- python -m pip install -f file://$PWD/artifact/ iree-compiler iree-runtime iree-tools-tflite iree-tools-tf iree-tools-xla
+ python -m pip install -f file://$PWD/artifact/ iree-compiler iree-runtime iree-tools-tflite iree-tools-tf
- name: Run iree-benchmark-module
id: run_iree_benchmark_module
run: ./bin/iree-benchmark-module --help
diff --git a/docs/website/docs/bindings/python.md b/docs/website/docs/bindings/python.md
index 0befe68..eecaa3b 100644
--- a/docs/website/docs/bindings/python.md
+++ b/docs/website/docs/bindings/python.md
@@ -16,7 +16,6 @@
| `iree-runtime` | IREE's runtime, including CPU and GPU backends |
| `iree-tools-tf` | Tools for importing from [TensorFlow](https://www.tensorflow.org/) |
| `iree-tools-tflite` | Tools for importing from [TensorFlow Lite](https://www.tensorflow.org/lite) |
-| `iree-tools-xla` | Tools for importing from [XLA](https://www.tensorflow.org/xla) |
| `iree-jax` | Tools for importing from [JAX](https://github.com/google/jax) |
Collectively, these packages allow for importing from frontends, compiling
@@ -88,8 +87,7 @@
iree-compiler \
iree-runtime \
iree-tools-tf \
- iree-tools-tflite \
- iree-tools-xla
+ iree-tools-tflite
```
!!! Tip "Tip - Nightly releases"
diff --git a/docs/website/docs/getting-started/index.md b/docs/website/docs/getting-started/index.md
index f60e637..3e2c46e 100644
--- a/docs/website/docs/getting-started/index.md
+++ b/docs/website/docs/getting-started/index.md
@@ -11,8 +11,7 @@
iree-compiler \
iree-runtime \
iree-tools-tf \
- iree-tools-tflite \
- iree-tools-xla
+ iree-tools-tflite
```
## Supported frameworks
diff --git a/experimental/web/generate_web_metrics.sh b/experimental/web/generate_web_metrics.sh
index 1e83f25..0de4fd0 100644
--- a/experimental/web/generate_web_metrics.sh
+++ b/experimental/web/generate_web_metrics.sh
@@ -67,7 +67,7 @@
python -m pip install --upgrade \
--find-links https://openxla.github.io/iree/pip-release-links.html \
- iree-compiler iree-tools-tflite iree-tools-xla
+ iree-compiler iree-tools-tflite
###############################################################################
# Download program source files #
diff --git a/integrations/tensorflow/python_projects/iree_xla/iree/tools/xla/.gitignore b/integrations/tensorflow/python_projects/iree_xla/iree/tools/xla/.gitignore
deleted file mode 100644
index 1dc5dca..0000000
--- a/integrations/tensorflow/python_projects/iree_xla/iree/tools/xla/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-iree-import-xla
diff --git a/integrations/tensorflow/python_projects/iree_xla/iree/tools/xla/__init__.py b/integrations/tensorflow/python_projects/iree_xla/iree/tools/xla/__init__.py
deleted file mode 100644
index 6154bc9..0000000
--- a/integrations/tensorflow/python_projects/iree_xla/iree/tools/xla/__init__.py
+++ /dev/null
@@ -1,21 +0,0 @@
-# Lint-as: python3
-"""TensorFlow tools."""
-
-# Copyright 2020 The IREE Authors
-#
-# Licensed under the Apache License v2.0 with LLVM Exceptions.
-# See https://llvm.org/LICENSE.txt for license information.
-# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-
-from typing import Optional
-
-import os
-import platform
-
-
-def get_tool(exe_name: str) -> Optional[str]:
- if platform.system() == "Windows":
- exe_name = exe_name + ".exe"
- this_path = os.path.dirname(__file__)
- tool_path = os.path.join(this_path, exe_name)
- return tool_path
diff --git a/integrations/tensorflow/python_projects/iree_xla/pyproject.toml b/integrations/tensorflow/python_projects/iree_xla/pyproject.toml
deleted file mode 100644
index f6c1689..0000000
--- a/integrations/tensorflow/python_projects/iree_xla/pyproject.toml
+++ /dev/null
@@ -1,6 +0,0 @@
-[build-system]
-requires = [
- "setuptools>=42",
- "wheel",
-]
-build-backend = "setuptools.build_meta"
diff --git a/integrations/tensorflow/test/lit.cfg.py b/integrations/tensorflow/test/lit.cfg.py
index 22287eb..5b5b62e 100644
--- a/integrations/tensorflow/test/lit.cfg.py
+++ b/integrations/tensorflow/test/lit.cfg.py
@@ -58,7 +58,6 @@
test_src_dir,
os.path.join(python_projects_dir, "iree_tf"),
os.path.join(python_projects_dir, "iree_tflite"),
- os.path.join(python_projects_dir, "iree_xla"),
],
append_path=True)