Exemple #1
0
 def get_option_spec(cls):
     spec = PyOptionSpec()
     test.setSpecOptions(spec.getOptionSpec())
     elf_C.setSpecELFOptions(spec.getOptionSpec())
     spec.addIntOption('gpu', 'GPU id to use', 0)
     spec.addIntOption('freq_update',
                       'How much update before updating the acting model',
                       50)
     spec.addStrOption('distri_mode', 'server or client', "")
     spec.addIntOption('num_recv', '', 2)
     spec.addStrListOption('parsed_args', 'dummy option', [])
     spec.merge(PyOptionSpec.fromClasses((PPO, )))
     return spec
Exemple #2
0
 def get_option_spec(cls):
     spec = PyOptionSpec()
     elf_C.setSpecELFOptions(spec.getOptionSpec())
     test.setSpecTSOptions(spec.getOptionSpec())
     spec.addIntOption(
         'gpu',
         'GPU id to use',
         0)
     spec.addStrOption(
         'load',
         'Load old model',
         "")
     spec.addStrListOption(
         'parsed_args',
         'dummy option',
         [])
     return spec
Exemple #3
0
    def get_option_spec(cls):
        spec = PyOptionSpec()
        go.getServerPredefined(spec.getOptionSpec())

        spec.addIntOption('gpu', 'GPU id to use', -1)
        spec.addIntOption(
            'eval_old_model',
            ('If specified, then we directly switch to evaluation mode '
             'between the loaded model and the old model specified by this '
             'switch'), -1)
        spec.addStrOption('comment', 'Comment for this run', '')
        spec.addBoolOption("parameter_print", "Print parameters", True)

        spec.merge(PyOptionSpec.fromClasses((MoreLabels, )))
        return spec
Exemple #4
0
    def get_option_spec(cls):
        spec = PyOptionSpec()
        go.getClientPredefined(spec.getOptionSpec())

        spec.addIntOption('gpu', 'GPU id to use', -1)
        spec.addStrOption(
            'eval_model_pair',
            ('If specified for df_selfplay.py, then the two models will be '
             'evaluated on this client'), '')
        spec.addStrOption('comment', 'Comment for this run', '')

        spec.addIntOption('selfplay_timeout_usec', 'Timeout used for MCTS', 10)

        spec.addBoolOption("parameter_print", "Print parameters", True)

        spec.merge(PyOptionSpec.fromClasses((MoreLabels, )))
        return spec
Exemple #5
0
    def get_option_spec(cls):
        spec = PyOptionSpec()
        tutorial.getPredefined(spec.getOptionSpec())
        
        spec.addIntOption(
            'client_dummy',
            'Some dummy arguments',
            -1)
        spec.addStrOption(
            'client_dummy2',
            'some string dummy arguments',
            '')
        spec.addBoolOption(
            "client_dummy3",
            "Some boolean dummy arguments",
            True)
        spec.addIntOption(
            'gpu',
            'GPU id to use',
            -1)

        return spec