def undiscounted_return(self) -> float:
    '\n        Compute the undiscounted return.\n\n        :return: sum of rewards\n        '
    if (not (len(self._rollout_bounds) == 2)):
        raise pyrado.ShapeErr(msg='The StepSequence must be a single continuous rollout.')
    return self.rewards.sum()
Compute the undiscounted return.

:return: sum of rewards
def undiscounted_return(self) -> float:
    '\n        Compute the undiscounted return.\n\n        :return: sum of rewards\n        '
    if (not (len(self._rollout_bounds) == 2)):
        raise pyrado.ShapeErr(msg='The StepSequence must be a single continuous rollout.')
    return self.rewards.sum()