Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
danielwe committed Jan 22, 2025
1 parent d6c11b9 commit afecec9
Show file tree
Hide file tree
Showing 4 changed files with 120 additions and 104 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export JULIA_FORMATTER=runic
4 changes: 3 additions & 1 deletion src/typeutils/recursive_add.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ types, such that `zi = xi + f(yi)` applies to differentiable values, while `zi =
to non-differentiable values. If a custom callable is passed, it is combined with the
default, as `recursive_add` is not generally capable of traversing inactive objects.
"""
function recursive_add(x::T, y::T, f::F = identity, forcelhs::L = guaranteed_const) where {T, F, L}
function recursive_add(
x::T, y::T, f::F = identity, forcelhs::L = guaranteed_const
) where {T, F, L}
function addf(xi::S, yi::S) where {S}
@assert EnzymeCore.isvectortype(S)
return ((xi + f(yi))::S,)
Expand Down
Loading

0 comments on commit afecec9

Please sign in to comment.