tf_agents.trajectories.time_step.restart

Returns a TimeStep with step_type set equal to StepType.FIRST.

Used in the notebooks

Used in the tutorials

observation A NumPy array, tensor, or a nested dict, list or tuple of arrays or tensors.
batch_size (Optional) A python or tensorflow integer scalar.
reward_spec If provided, the reward in the returned TimeStep will be compatible with the provided reward_spec.

A TimeStep.