SliceMap.jl icon indicating copy to clipboard operation
SliceMap.jl copied to clipboard

slicemap on TrackedArrays produces Array{TrackedReal}

Open baggepinnen opened this issue 4 years ago • 3 comments

This is a problem since the code below will not run on the GPU (unless one allows scalar operations which is not ideal)

julia> using SliceMap, Flux

julia> slicemap(norm, Flux.param(randn(2,2,2,2)), dims=(1,2))
2×2 Array{Tracker.TrackedReal{Float64},2}:
 1.91925  2.69252
 1.26406  1.22966

baggepinnen avatar Nov 21 '19 04:11 baggepinnen