Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
chunnienc committed Dec 16, 2024
1 parent 3f915ab commit 7ce8b8d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/torch_xla2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ['3.9', '3.10']
python-version: ['3.10']
steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion experimental/torch_xla2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Install

Currently this is only source-installable. Requires Python version >= 3.9.
Currently this is only source-installable. Requires Python version >= 3.10.

### NOTE:

Expand Down
2 changes: 1 addition & 1 deletion experimental/torch_xla2/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies = [
# Developers should install `dev-requirements.txt` first
"torch>=2.3.0",
]
requires-python = ">=3.9"
requires-python = ">=3.10"
license = {file = "LICENSE"}
dynamic = ["version"]

Expand Down
2 changes: 0 additions & 2 deletions experimental/torch_xla2/test/test_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@
"chalf", # Skip due to jax not support complex32 with backend: https://github.com/google/jax/issues/14180
"__rpow__", # NOTE: cannot fix because torch test case has undefined behavior
# such as 0 to negative power.
"ceil", # only failed with python 3.9
"trunc", # only failed with python 3.9
"to_sparse", # We are not supporting sparse tensors yet.
"nn.functional.rrelu", # pure torch result match torch_xla2 test result, only OpInfo mismatch: https://gist.github.com/ManfeiBai/1a449b15f4e946bfcaa3e5ef86da20f4
}
Expand Down
2 changes: 1 addition & 1 deletion experimental/torch_xla2/torch_xla2/ops/jax_reimplement.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def _scale_and_translate(x, output_shape: core.Shape,
def scale_and_translate(image, shape: core.Shape,
spatial_dims: Sequence[int],
scale, translation,
# (barney-s) use string, python 3.9 throws: E TypeError: unsupported operand type(s) for |: 'type' and 'EnumMeta'
# (barney-s) use string
method: str, #(barney-s) | ResizeMethod,
antialias: bool = True,
precision=lax.Precision.HIGHEST):
Expand Down

0 comments on commit 7ce8b8d

Please sign in to comment.