File tree Expand file tree Collapse file tree
DifferentiationInterface/ext/DifferentiationInterfaceMooncakeExt Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,11 +33,11 @@ const mooncake_no_cache = maybe_getfield(Mooncake, :NoCache)
3333
3434function 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)
You can’t perform that action at this time.
0 commit comments