Skip to content

Commit

Permalink
use muladd
Browse files Browse the repository at this point in the history
  • Loading branch information
prbzrg committed Sep 13, 2022
1 parent 2eeceb0 commit dde8838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/planar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Flux.@functor PlanarNN (u, w, b)
function (m::PlanarNN)(z::AbstractVecOrMat)::AbstractVecOrMat
u, w, b = m.u, m.w, only(m.b)
h = NNlib.fast_act(m.h, z)
u * h.(transpose(w) * z .+ b)
u * h.(muladd(transpose(w), z, b))
end

"""
Expand Down

0 comments on commit dde8838

Please sign in to comment.