Skip to content

Commit

Permalink
reset_counters! with foreach
Browse files Browse the repository at this point in the history
Co-authored-by: Tor Erlend Fjelde <tor.github@gmail.com>
  • Loading branch information
markus7800 and torfjelde authored Jan 31, 2024
1 parent 8f00b12 commit d2edc3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tapedfunction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -529,5 +529,5 @@ end
# but if we instantiate new TapedTask, we have to reset the counters of cached tapes
function reset_counters!(tf::TapedFunction)
tf.counter = 1
reset_counters!.(values(tf.subtapes))
foreach(reset_counters!, values(tf.subtapes))
end

0 comments on commit d2edc3b

Please sign in to comment.