Created
May 27, 2019 18:39
-
-
Save zoq/52274326df17f7b18d4b4a1be16aea0e to your computer and use it in GitHub Desktop.
env_wrapper.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template<typename EnvType> | |
class EnvWrapper | |
{ | |
public: | |
EnvWrapper(const EnvType& env) : env(env) {} | |
EnvType env; | |
} | |
CartPole env; | |
EnvWrapper<CartPole> wrapper(env); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment