Skip to content

Commit

Permalink
Remove n-dependent allocations from rnn example
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Aug 28, 2019
1 parent ccc9752 commit 9603eb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ possible(::typeof(_setproperty!), x, ::Any, ::Any) = ismutablestruct(x)
"""
materialize!!(dest, x)
"""
materialize!!(dest, x) = may(materialize!, dest, x)
@inline materialize!!(dest, x) = may(materialize!, dest, x)
# TODO: maybe instantiate `x` and be aware of `x`'s style

pure(::typeof(materialize!)) = NoBang.materialize
Expand Down

0 comments on commit 9603eb1

Please sign in to comment.