MCPcopy Index your code
hub / github.com/pytorch/tutorials / get_env_stats

Function get_env_stats

advanced_source/coding_ddpg.py:647–654  ·  view source on GitHub ↗

Gets the stats of an environment.

()

Source from the content-addressed store, hash-verified

645
646
647def get_env_stats():
648 """Gets the stats of an environment."""
649 proof_env = make_transformed_env(make_env())
650 t = proof_env.transform[2]
651 t.init_stats(init_env_steps)
652 transform_state_dict = t.state_dict()
653 proof_env.close()
654 return transform_state_dict
655
656
657###############################################################################

Callers 1

coding_ddpg.pyFile · 0.85

Calls 2

make_transformed_envFunction · 0.85
make_envFunction · 0.85

Tested by

no test coverage detected