ray.rllib.policy.sample_batch.SampleBatch.copy#
- SampleBatch.copy(shallow: bool = False) SampleBatch [source]#
Creates a deep or shallow copy of this SampleBatch and returns it.
- Parameters:
shallow – Whether the copying should be done shallowly.
- Returns:
A deep or shallow copy of this SampleBatch object.