View source on GitHub |
Returns a TimeStep
with step_type
set to StepType.LAST
.
tf_agents.trajectories.truncation(
observation: tf_agents.typing.types.NestedTensorOrArray
,
reward: tf_agents.typing.types.NestedTensorOrArray
,
discount: tf_agents.typing.types.Float
= 1.0,
outer_dims: Optional[types.Shape] = None
) -> tf_agents.trajectories.TimeStep
If discount
is a scalar, and observation
contains Tensors,
then discount
will be broadcasted to match the outer dimensions.
Returns | |
---|---|
A TimeStep .
|