Support Nx 1.0 in the emlx package - #142
Open
tierralibre wants to merge 1 commit into
Open
tierralibre wants to merge 1 commit into
tierralibre wants to merge 1 commit into
Conversation
- mix.exs: require nx ~> 1.0 (lock: nx 1.0.0, complex 1.0.0) - expr_test: Nx.Defn.Kernel.hook/2,3 was renamed to io_call/2,3 in Nx 1.0; port the 14 defn call sites and the 2 cond-branch error regexes (the native lowering already speaks :io_call) - linalg doctests: exclude new Nx.LinAlg.matrix_rank/2 -- MLX's native SVD returns small-but-nonzero trailing singular values (0.00104 where LAPACK gives exactly 0.0), so the eps-tolerance rank count over-counts on rank-deficient inputs emlx_axon intentionally stays on nx 0.13: axon 0.8.1 (latest) requires nx ~> 0.10 and bumblebee ~> 0.12/0.13, so the axon package cannot move until the ecosystem does. Full suite: 2687 passed (824 doctests, 1863 tests), 7 excluded (pre-existing excludes only).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps the
emlxpackage fromnx ~> 0.13.1tonx ~> 1.0(lock: nx 1.0.0, complex 1.0.0). No library code changes were needed — the native lowering already speaks:io_call— only the test suite needed porting:Nx.Defn.Kernel.hook/2,3was renamed toio_call/2,3in Nx 1.0, so the test file no longer compiled. Ported the 14 defn call sites plus the 2 cond-branch error-message regexes.Nx.LinAlg.matrix_rank/2doctests. MLX's native SVD returns small-but-nonzero trailing singular values (0.00104 where LAPACK gives exactly 0.0), so the eps-tolerance rank count over-counts on rank-deficient inputs. Same rounding-error class as the existingsvd/qrexclusions.emlx_axonintentionally stays on nx 0.13 in this PR: axon 0.8.1 (latest) requiresnx ~> 0.10and bumblebee~> 0.12/0.13, so that package cannot move until the ecosystem does.Verification: full
mix testgreen — 2687 passed (824 doctests, 1863 tests), 7 excluded (pre-existing excludes only).