unilab.tasks.compatibility.LegacyFactoryAdapter

class unilab.tasks.compatibility.LegacyFactoryAdapter[source]

Bases: Generic[TCfg_contra]

Validate one legacy factory at the existing env construction boundary.

Parameters:

Methods

__init__(factory, compatibility)

Attributes

factory: LegacyEnvFactory[TypeVar(TCfg_contra, bound= EnvCfg, contravariant=True)]
compatibility: LegacyTaskCompatibility
__call__(cfg, *, num_envs=1, backend_type='mujoco')[source]

Call self as a function.

Parameters:
  • cfg (TypeVar(TCfg_contra, bound= EnvCfg, contravariant=True))

  • num_envs (int)

  • backend_type (str)

Return type:

NpEnv

__init__(factory, compatibility)
Parameters: