ray.rllib.policy.sample_batch.SampleBatch.set_get_interceptor#

SampleBatch.set_get_interceptor(fn)[source]#

Sets a function to be called on every getitem.