Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
prbzrg committed May 6, 2024
1 parent 869ed70 commit a9abeb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@inline function jacobian_batched(
icnf::AbstractICNF{T, <:DIVecJacMatrixMode},
f::Function,
f::Lux.StatefulLuxLayer,
xs::AbstractMatrix{<:Real},
) where {T}
y, VJ = DifferentiationInterface.value_and_pullback_split(f, icnf.autodiff_backend, xs)
Expand All @@ -17,7 +17,7 @@ end

@inline function jacobian_batched(
icnf::AbstractICNF{T, <:DIJacVecMatrixMode},
f::Function,
f::Lux.StatefulLuxLayer,
xs::AbstractMatrix{<:Real},
) where {T}
y = f(xs)
Expand All @@ -34,7 +34,7 @@ end

@inline function jacobian_batched(
icnf::AbstractICNF{T, <:DIMatrixMode},
f::Function,
f::Lux.StatefulLuxLayer,
xs::AbstractMatrix{<:Real},
) where {T}
y, J = DifferentiationInterface.value_and_jacobian(f, icnf.autodiff_backend, xs)
Expand Down

0 comments on commit a9abeb0

Please sign in to comment.