ray.rllib.policy.sample_batch.SampleBatch.copy#

SampleBatch.copy(shallow: bool = False) ray.rllib.policy.sample_batch.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.