forked from EnzymeAD/Enzyme.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[EnzymeTestUtils] Vectorize function for FiniteDifferencesCalls (Enzy…
…meAD#1327) * Add to_vec * Use to_vec for tangent generation * Fix incorrect call to test_reverse * Use to_vec in calls to FiniteDifferences * Increment patch number * Add more cases to test_approx * Handle cases where constructorof not implemented but needed * Correctly handle case where ret activity is batched and all else const * Replace NamedTuple method with Dict * Add function for structured array testing * Add structured array test * Add tests for to_vec * Add to_vec * Use to_vec for tangent generation * Fix incorrect call to test_reverse * Use to_vec in calls to FiniteDifferences * Increment patch number * Add more cases to test_approx * Handle cases where constructorof not implemented but needed * Correctly handle case where ret activity is batched and all else const * Replace NamedTuple method with Dict * Add function for structured array testing * Add structured array test * Add tests for to_vec * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Add LinearAlgebra to test env * Run formatter on finitedifferences calls * Introduce AliasDict for checking for aliased arrays * Refactor to_vec to handle aliased arrays correctly * Test new to_vec behavior * Note difference between zero_tangent and make_zero * Restore deleted code * Don't treat immutable structs as equivalent * Remove obsolete limitation * Test cases where arrays alias * Document remaining limitation * Also test aliasing in when batching * Also test aliasing in forward-mode * Skip test that hits Julia GC bug pre v1.8 * Change mutating test to support returned arg * Clarify documentation of limitations * Skip structured array test for v1.7 * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Run formatter * Fix random seed in tests * Increment patch number --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
5ae36e5
commit 8273a6e
Showing
15 changed files
with
591 additions
and
48 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "EnzymeTestUtils" | ||
uuid = "12d8515a-0907-448a-8884-5fe00fdf1c5a" | ||
authors = ["Seth Axen <[email protected]>", "William Moses <[email protected]>", "Valentin Churavy <[email protected]>"] | ||
version = "0.1.6" | ||
version = "0.1.7" | ||
|
||
[deps] | ||
ConstructionBase = "187b0558-2788-49d3-abe0-74a17ed4e7c9" | ||
|
@@ -21,8 +21,9 @@ Quaternions = "0.7" | |
julia = "1.6" | ||
|
||
[extras] | ||
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" | ||
MetaTesting = "9e32d19f-1e4f-477a-8631-b16c78aa0f56" | ||
Quaternions = "94ee1d12-ae83-5a48-8b1c-48b8ff168ae0" | ||
|
||
[targets] | ||
test = ["MetaTesting", "Quaternions"] | ||
test = ["LinearAlgebra", "MetaTesting", "Quaternions"] |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.