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

view is not supported #81

Closed
CarloLucibello opened this issue Aug 16, 2018 · 0 comments · Fixed by #83
Closed

view is not supported #81

CarloLucibello opened this issue Aug 16, 2018 · 0 comments · Fixed by #83

Comments

@CarloLucibello
Copy link
Collaborator

on julia 0.7:

julia> using AutoGrad
julia> view(rand(2,2,3),2,2,1:2)
2-element view(::Array{Float64,3}, 2, 2, 1:2) with eltype Float64:
 0.26936877599285936
 0.5965847464427165 

julia> view(Rec(rand(2,2,3)),2,2,1:2)
ERROR: MethodError: no method matching view(::Rec{Array{Float64,3}}, ::Int64, ::Int64, ::UnitRange{Int64})
Closest candidates are:
  view(::AbstractArray, ::Any...) where N at subarray.jl:132
Stacktrace:
 [1] top-level scope at none:0

Once view is supported, it will be also easy to support selectdim.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants