|
|
|
|
|
|
sampler_file_path: Optional[str] |
|
|
|
docker_target_name: Optional[str] |
|
|
|
env_args: Optional[List[str]] |
|
|
|
cpu: bool |
|
|
|
|
|
|
|
@property |
|
|
|
def fast_simulation(self) -> bool: |
|
|
|
|
|
|
nargs=argparse.REMAINDER, |
|
|
|
help="Arguments passed to the Unity executable.", |
|
|
|
) |
|
|
|
parser.add_argument( |
|
|
|
"--cpu", default=False, action="store_true", help="Run with CPU only" |
|
|
|
) |
|
|
|
|
|
|
|
args = parser.parse_args(argv) |
|
|
|
return CommandLineOptions.from_argparse(args) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jobs = [] |
|
|
|
run_seed = options.seed |
|
|
|
if options.cpu: |
|
|
|
os.environ["CUDA_VISIBLE_DEVICES"] = "-1" |
|
|
|
|
|
|
|
if options.num_runs == 1: |
|
|
|
if options.seed == -1: |
|
|
|
run_seed = np.random.randint(0, 10000) |
|
|
|