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

Restrict types accepted by frule muladd and make tests more comprehensive #728

Merged
merged 2 commits into from
Jul 11, 2023

Conversation

oxinabox
Copy link
Member

@oxinabox oxinabox commented Jul 11, 2023

Closes #727
There is separately already a @scalar_rule for muladd in base.jl
so this just needs to handle the array cases.
I just make this the same as rrule accepts, and also updated tests to be as comprehensive.

Technically this rule should also work for arrays of arrays etc.
But so far noone has complained of that not being available for reverse mode, so i doubt they will for reverse mode,
If they do we can always widen it somewhat

@oxinabox oxinabox merged commit 34aec33 into main Jul 11, 2023
@oxinabox oxinabox deleted the ox/muladd branch July 11, 2023 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

arraymath muladd frule has too loose types
2 participants