Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llvm: Return initialized values as output from "reset" function execution variants. #3188

Merged
merged 7 commits into from
Feb 11, 2025

Conversation

jvesely
Copy link
Collaborator

@jvesely jvesely commented Feb 11, 2025

Return the value of "previous_value" Parameter in Function "reset" variant for Functions that don't have other Parameters with initializers.
Return the values of "previous_value" and "previous_time" in DriftDiffusionIntegrator "reset" variant".
Update output ports in Mechanism "reset" execution variants, using the value returned from the Function's "reset" variant.

Update tests to allow the selection of execution variants for Mechanisms and Functions.
Add reproducer from #3142 as a regression test.

Closes: #3142

…eIntegrator

Increased tolerance is now only needed for fp32 execution.

Signed-off-by: Jan Vesely <[email protected]>
Match Python implementations.

Signed-off-by: Jan Vesely <[email protected]>
The "reset" variants of functions now return a value.

Add tests for reset behaviour of:
 * ProcessingMechanism using an integrator function
 * DDM mechanism using DriftDiffusionIntegrator function
 * TransferMechanism in integrator mode

The reproducer from
PrincetonUniversity#3142 was added
as a test of mechanism reset in composition.

Fixes: PrincetonUniversity#3142
Signed-off-by: Jan Vesely <[email protected]>
@jvesely jvesely added the compiler Runtime Compiler label Feb 11, 2025
Copy link

This PR causes the following changes to the html docs (ubuntu-latest-3.11):

No differences!

...

See CI logs for the full diff.

@jvesely jvesely merged commit 5e78a74 into PrincetonUniversity:devel Feb 11, 2025
33 checks passed
@jvesely jvesely deleted the devel-reset branch February 11, 2025 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler Runtime Compiler
Projects
Development

Successfully merging this pull request may close these issues.

Bug when resetting and executing transfer mechanism on different passes
1 participant