Skip to content

Commit

Permalink
Remove the older bias act
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Mar 30, 2024
1 parent 021d727 commit 617c7d2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,3 @@ __named_tuple(nt::NamedTuple) = nt

# Nondifferentiable hasmethod. Avoiding type-piracy
@inline _hasmethod(f::F, args...) where {F} = hasmethod(f, args...)

# Helpers for bias and activation functions
## Just Activation Function
@inline apply_activation(::typeof(identity), x) = x
@inline apply_activation(f, x) = f.(x)

@inline apply_bias_activation(::typeof(identity), x, b) = x .+ b
@inline apply_bias_activation(f::F, x, b) where {F} = @. f(x + b)

0 comments on commit 617c7d2

Please sign in to comment.