Module agents

Exposed Classes

Actor (agents.Actor)

Learner (agents.Learner)

Parent classes

RpcCallee (agents.RpcCallee)

RpcCaller (agents.RpcCaller)

class pytorch_seed_rl.agents.rpc_caller.RpcCaller(rank: int, callee_rref: torch.distributed.rpc.RRef)[source]

Bases: object

RPC object that handles communication with an assigned RPC callee.

Parameters
loop()[source]

Main loop function of an RpcCaller.

  1. Checks in with assigned RpcCallee.

  2. Loops _loop() until self.shutdown is set True.

  3. Checks out with assigned RpcCallee.

  4. Calls _cleanup()

batched_rpc(*args, **kwargs)torch.futures.Future[source]

Wrap for batched async RPC ran on remote callee.