Skip to content

slicemap on TrackedArrays produces Array{TrackedReal} #3

@baggepinnen

Description

@baggepinnen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions