Skip to content

Commit

Permalink
Update utils.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
YichengDWu committed Oct 21, 2022
1 parent 0bbd77a commit f09ed3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ function isongpu(nt::NamedTuple)
return any(x -> x isa AbstractGPUArray, Lux.fcollect(nt))
end

float64 = Base.Fix1(Broadcast.broadcast, Float64)
float64 = Base.Fix1(convert, AbstractArray{Float64})

0 comments on commit f09ed3b

Please sign in to comment.