Skip to content

Commit 65997c4

Browse files
committed
style: apply Runic formatting to utils.jl
1 parent a478578 commit 65997c4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • DifferentiationInterface/ext/DifferentiationInterfaceMooncakeExt

DifferentiationInterface/ext/DifferentiationInterfaceMooncakeExt/utils.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ const mooncake_no_cache = maybe_getfield(Mooncake, :NoCache)
3333

3434
function tangent_to_user_primal(tx, x)
3535
if !isnothing(mooncake_tangent_to_friendly) &&
36-
!isnothing(mooncake_friendly_tangent_cache) &&
37-
!isnothing(mooncake_as_primal) &&
38-
!isnothing(mooncake_no_cache)
36+
!isnothing(mooncake_friendly_tangent_cache) &&
37+
!isnothing(mooncake_as_primal) &&
38+
!isnothing(mooncake_no_cache)
3939
dest = mooncake_friendly_tangent_cache{mooncake_as_primal}(_copy_output(x))
40-
cache = isbitstype(typeof(x)) ? mooncake_no_cache() : IdDict{Any,Any}()
40+
cache = isbitstype(typeof(x)) ? mooncake_no_cache() : IdDict{Any, Any}()
4141
return mooncake_tangent_to_friendly(dest, x, tx, cache)
4242
else
4343
return tangent_to_primal!!(_copy_output(x), tx)

0 commit comments

Comments
 (0)