MCPcopy Create free account
hub / github.com/Yonv1943/Python / __init__

Method __init__

ElegantRL/env.py:91–118  ·  view source on GitHub ↗

Preprocess a standard OpenAI gym environment for training. `object env` a standard OpenAI gym environment, it has env.reset() and env.step() `int env_num` environment number `object device` torch.device('cpu'), torch.device('cuda') `bool if_print` print the informati

(self, env, env_num, device=torch.device('cuda'),
                 if_print=True, data_type=torch.float32)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

get_gym_env_infoFunction · 0.70
__init__Method · 0.45

Tested by

no test coverage detected