Skip to content
This repository was archived by the owner on May 6, 2021. It is now read-only.

Commit a7d4ec7

Browse files
authored
update doc (#80)
1 parent e4b3af9 commit a7d4ec7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/core/hooks.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,11 @@ struct BatchStepsPerEpisode <: AbstractHook
179179
step::Vector{Int}
180180
end
181181

182+
"""
183+
BatchStepsPerEpisode(batch_size::Int; tag = "TRAINING")
184+
185+
Similar to [`StepsPerEpisode`](@ref), but only work for [`BatchObs`](@ref)
186+
"""
182187
function BatchStepsPerEpisode(batch_size::Int; tag = "TRAINING")
183188
BatchStepsPerEpisode([Int[] for _ in 1:batch_size], zeros(Int, batch_size))
184189
end
@@ -192,6 +197,7 @@ function (hook::BatchStepsPerEpisode)(::PostActStage, agent, env, obs::BatchObs)
192197
end
193198
end
194199
end
200+
195201
#####
196202
# CumulativeReward
197203
#####

0 commit comments

Comments
 (0)