Skip to content

Commit 10ec1ae

Browse files
author
Dhairya Gandhi
committed
whitespace
1 parent bf36147 commit 10ec1ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/functor.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ function fmap(f, x; cache = IdDict())
6060
haskey(cache, x) && return cache[x]
6161
cache[x] = isleaf(x) ? f(x) : fmap1(x -> fmap(f, x, cache = cache), x)
6262
end
63+
6364
# Allow gradients and other constructs that match the structure of the functor
6465
# to allow for `map` style computations and return a modified version of the struct.
6566
# This way we can use `fmap` to update the params with their gradients

0 commit comments

Comments
 (0)