-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
Need an adjoint for constructor Base.OneTo{Int64} #483
Comments
I think you just want The error you had is still produced by things like |
I do not see why
clearly has a non-trivial gradient, but errors with
I think this issue should be reopened and fixed by implementing the corresponding adjoint. |
Wouldn't gradient would want to be a limit of this?
I don't think this has a sensible answer, so I guess the answer should be |
I thought too mathematically here. For real I am not familiar with Zygote, but maybe this is a good first issue. Would this be easy to implement @mcabbott ? |
But Zygote allows you to use integers in things like Stepranges might make sense, e.g. perhaps |
@mcabbott I agree that I get why I was asking, because I had some code involving getting the number of vertices of a graph from Why though, do I get the above error for
but this works fine
? I am confused now. |
Oh right, it needs |
Consider
which throws
Noting that
eachcol
is defined asand replacing in that definition
axes(A, 2)
with1:size(A, 2)
makes the error go away.I'm happy to submit a PR fixing this if someone can point me to where the adjoint for
UnitRange{Int64}
is defined.The text was updated successfully, but these errors were encountered: