mani_skill.envs.utils.randomization.batched_rng =============================================== .. py:module:: mani_skill.envs.utils.randomization.batched_rng .. autoapi-nested-parse:: Code implementation for a batched random number generator. The goal is to enable seeding a batched random number generator with a batch of seeds to ensure randomization in CPU simulators and GPU simulators are the same Classes ------- .. autoapisummary:: mani_skill.envs.utils.randomization.batched_rng.BatchedRNG Module Contents --------------- .. py:class:: BatchedRNG(rngs) Bases: :py:obj:`numpy.random.RandomState` .. py:method:: __getattribute__(item) .. py:method:: __getitem__(idx) .. py:method:: __setitem__(idx, value) .. py:method:: from_rngs(rngs) :classmethod: .. py:method:: from_seeds(seeds, backend = 'numpy:random_state') :classmethod: .. py:attribute:: batch_size .. py:attribute:: rngs