Skip to content

Commit

Permalink
documentation: api: learner: runnersbasic-sc22
Browse files Browse the repository at this point in the history
  • Loading branch information
F-coder1857 committed Dec 1, 2023
1 parent 6141690 commit 5b496d1
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions docs/source/documents/api/runners/runner_basic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,22 @@ Source Code

.. code-block:: python
from xuance.environment import make_envs
from xuance.torch.utils.operations import set_seed
from xuance.environment import make_envs
from xuance.torch.utils.operations import set_seed
class Runner_Base(object):
def __init__(self, args):
# set random seeds
set_seed(args.seed)
class Runner_Base(object):
def __init__(self, args):
# set random seeds
set_seed(args.seed)
# build environments
self.envs = make_envs(args)
self.envs.reset()
self.n_envs = self.envs.num_envs
# build environments
self.envs = make_envs(args)
self.envs.reset()
self.n_envs = self.envs.num_envs
def run(self):
pass
def run(self):
pass
.. group-tab:: TensorFlow

Expand Down

0 comments on commit 5b496d1

Please sign in to comment.