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

Overhaul Rules (partner PR) #91

Merged
merged 38 commits into from
Sep 19, 2019
Merged

Overhaul Rules (partner PR) #91

merged 38 commits into from
Sep 19, 2019

Conversation

oxinabox
Copy link
Member

@oxinabox oxinabox commented Aug 27, 2019

This is the matching changes for
JuliaDiff/ChainRulesCore.jl#30

Before reviewing you are recommended to read the Docs PR buddy of this:
#103

@oxinabox oxinabox force-pushed the ox/wrtfunction branch 2 times, most recently from cab0e9e to f564800 Compare August 30, 2019 15:55
@oxinabox oxinabox changed the title [WIP] include dervative WRT self. Overhaul Rules (partner PR) Sep 2, 2019
proto.jl Outdated Show resolved Hide resolved
Project.toml Outdated Show resolved Hide resolved
src/rulesets/Base/base.jl Outdated Show resolved Hide resolved
test/test_util.jl Show resolved Hide resolved
rtol=rtol, atol=atol, kwargs...
)
end
end
end

function ensure_not_running_on_functor(f, name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is temporary and will change in future? let's comment that?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not super soon,
@test_scalar would need a lot of work to handle functors.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, i'm fine with that... maybe we should have an issue tracking that and link to it here?

it certainly is on the long-term plan (although someone might need to want it enough for it to actually happen)

test/test_util.jl Outdated Show resolved Hide resolved
src/rulesets/Base/array.jl Outdated Show resolved Hide resolved
@oxinabox
Copy link
Member Author

oxinabox commented Sep 6, 2019

Status update:
basically everrything is done except:

  • src/rulesets/LinearAlgebra/blas.jl
    • which needs:
      • testing still
      • sorting out update rules
  • /src/rulesets/LinearAlgebra/factorization.jl
    • which I've not touched
    • is probably most fiddly

@oxinabox
Copy link
Member Author

Everything is done accept sorting out things that accumulate inplace.
Which we don’t actually need.
Considering maybe we should merge as is an make a follow up PR?
Probably not. idk. (edited)
I really need to pair with someone and work that all out

Copy link
Contributor

@nickrobinson251 nickrobinson251 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking good

since there are so many changes I'll try to review again - probably once the "un-named returns" stuff is fixed up since I think that the last notable thing left?

src/rulesets/LinearAlgebra/dense.jl Outdated Show resolved Hide resolved
src/rulesets/LinearAlgebra/dense.jl Outdated Show resolved Hide resolved
src/rulesets/LinearAlgebra/dense.jl Outdated Show resolved Hide resolved
src/rulesets/LinearAlgebra/dense.jl Outdated Show resolved Hide resolved
src/rulesets/LinearAlgebra/factorization.jl Show resolved Hide resolved
test/rulesets/LinearAlgebra/dense.jl Show resolved Hide resolved
test/rulesets/LinearAlgebra/factorization.jl Show resolved Hide resolved
test/rulesets/Statistics/statistics.jl Outdated Show resolved Hide resolved
test/rulesets/Statistics/statistics.jl Outdated Show resolved Hide resolved
test/rulesets/LinearAlgebra/factorization.jl Outdated Show resolved Hide resolved
src/helper_functions.jl Outdated Show resolved Hide resolved
@oxinabox
Copy link
Member Author

This should be good to go now

Copy link
Contributor

@nickrobinson251 nickrobinson251 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have reviewed the source
feels good

mostly some tiny style suggestions

will review tests later today

src/rulesets/LinearAlgebra/blas.jl Outdated Show resolved Hide resolved
src/rulesets/LinearAlgebra/dense.jl Outdated Show resolved Hide resolved
src/rulesets/LinearAlgebra/dense.jl Outdated Show resolved Hide resolved
src/rulesets/LinearAlgebra/dense.jl Outdated Show resolved Hide resolved
src/rulesets/LinearAlgebra/dense.jl Outdated Show resolved Hide resolved
src/rulesets/LinearAlgebra/dense.jl Outdated Show resolved Hide resolved
src/rulesets/LinearAlgebra/dense.jl Outdated Show resolved Hide resolved
src/rulesets/LinearAlgebra/dense.jl Outdated Show resolved Hide resolved
src/rulesets/LinearAlgebra/structured.jl Outdated Show resolved Hide resolved
oxinabox and others added 2 commits September 19, 2019 18:08
Co-Authored-By: Nick Robinson <npr251@gmail.com>
Copy link
Contributor

@nickrobinson251 nickrobinson251 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do this

test/rulesets/Base/base.jl Outdated Show resolved Hide resolved
Co-Authored-By: Nick Robinson <npr251@gmail.com>
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.

None yet

4 participants