Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a module of wrappers for CompilerEnv environments. #272

Merged
merged 1 commit into from
May 18, 2021

Commits on May 17, 2021

  1. Add a module of wrappers for CompilerEnv environments.

    This adds a series of helper wrappers under a new
    `compiler_gym.warppers` module that makes it easier to modify the
    behavior of CompilerEnv environments without having to change the
    underlying implementation.
    
    New classes are:
    
    * `CompilerEnvWrapper` an extension to `gym.Wrapper` to support the
      custom compiler_gym API calls.
    
    * `ActionWrapper` compatibility with `gym.ActionWrapper`.
    
    * `CommandlineWithTerminalAction` adds an "end of episode" action to a
      commandline space.
    
    * `ConstrainedCommandline` allows a subset of commandline flags to be
      selected for use.
    
    * `CycleOverBenchmarks` loop over a list of benchamrks on `reset()`.
    
    * `IterateOverBenchmarks` same as above but the iterator is
      exhaustible.
    
    * `RandomOrderBenchmarks` same as above but the order is random and
      non-terminating.
    ChrisCummins committed May 17, 2021
    Configuration menu
    Copy the full SHA
    c6a4dec View commit details
    Browse the repository at this point in the history