model_analyzer/config/input/config_command_profile.py
def _add_run_search_configs(self):
        """
        Add the config options related
        to the run search
        """

        self._add_config(
            ConfigField(
                'run_config_search_max_concurrency',
                flags=['--run-config-search-max-concurrency'],
                field_type=ConfigPrimitive(int),
                default_value=DEFAULT_RUN_CONFIG_MAX_CONCURRENCY,
                description=
                "Max concurrency value that run config search should not go beyond that."
            ))
        self._add_config(
            ConfigField(
                'run_config_search_max_instance_count',
                flags=['--run-config-search-max-instance-count'],
                field_type=ConfigPrimitive(int),
                default_value=DEFAULT_RUN_CONFIG_MAX_INSTANCE_COUNT,
                description=
                "Max instance count value that run config search should not go beyond that."
            ))
        self._add_config(
            ConfigField('run_config_search_disable',
                        flags=['--run-config-search-disable'],
                        field_type=ConfigPrimitive(bool),
                        parser_args={'action': 'store_true'},
                        default_value=DEFAULT_RUN_CONFIG_SEARCH_DISABLE,
                        description="Disable run config search."))
        self._add_config(
            ConfigField(
                'run_config_search_max_preferred_batch_size',
                flags=['--run-config-search-max-preferred-batch-size'],
                field_type=ConfigPrimitive(int),
                default_value=DEFAULT_RUN_CONFIG_MAX_PREFERRED_BATCH_SIZE,
                description=
                "Max preferred batch size value that run config search should not go beyond that."
            ))
        self._add_config(
            ConfigField(
                'run_config_search_preferred_batch_size_disable',
                flags=['--run-config-search-preferred-batch-size-disable'],
                field_type=ConfigPrimitive(bool),
                default_value=DEFAULT_RUN_CONFIG_PREFERRED_BATCH_SIZE_DISABLE,
                description="Disable preferred batch size search."))

        Add the config options related
        to the run search
        
Add the config options related
to the run search
Add the config options related to the run search
def _add_run_search_configs(self):
        self._add_config(
            ConfigField(
                'run_config_search_max_concurrency',
                flags=['--run-config-search-max-concurrency'],
                field_type=ConfigPrimitive(int),
                default_value=DEFAULT_RUN_CONFIG_MAX_CONCURRENCY,
                description=
                "Max concurrency value that run config search should not go beyond that."
            ))
        self._add_config(
            ConfigField(
                'run_config_search_max_instance_count',
                flags=['--run-config-search-max-instance-count'],
                field_type=ConfigPrimitive(int),
                default_value=DEFAULT_RUN_CONFIG_MAX_INSTANCE_COUNT,
                description=
                "Max instance count value that run config search should not go beyond that."
            ))
        self._add_config(
            ConfigField('run_config_search_disable',
                        flags=['--run-config-search-disable'],
                        field_type=ConfigPrimitive(bool),
                        parser_args={'action': 'store_true'},
                        default_value=DEFAULT_RUN_CONFIG_SEARCH_DISABLE,
                        description="Disable run config search."))
        self._add_config(
            ConfigField(
                'run_config_search_max_preferred_batch_size',
                flags=['--run-config-search-max-preferred-batch-size'],
                field_type=ConfigPrimitive(int),
                default_value=DEFAULT_RUN_CONFIG_MAX_PREFERRED_BATCH_SIZE,
                description=
                "Max preferred batch size value that run config search should not go beyond that."
            ))
        self._add_config(
            ConfigField(
                'run_config_search_preferred_batch_size_disable',
                flags=['--run-config-search-preferred-batch-size-disable'],
                field_type=ConfigPrimitive(bool),
                default_value=DEFAULT_RUN_CONFIG_PREFERRED_BATCH_SIZE_DISABLE,
                description="Disable preferred batch size search."))
def _add_run_search_configs ( self ) : self . _add_config ( ConfigField ( 'run_config_search_max_concurrency' , flags = [ '--run-config-search-max-concurrency' ] , field_type = ConfigPrimitive ( int ) , default_value = DEFAULT_RUN_CONFIG_MAX_CONCURRENCY , description = "Max concurrency value that run config search should not go beyond that." ) ) self . _add_config ( ConfigField ( 'run_config_search_max_instance_count' , flags = [ '--run-config-search-max-instance-count' ] , field_type = ConfigPrimitive ( int ) , default_value = DEFAULT_RUN_CONFIG_MAX_INSTANCE_COUNT , description = "Max instance count value that run config search should not go beyond that." ) ) self . _add_config ( ConfigField ( 'run_config_search_disable' , flags = [ '--run-config-search-disable' ] , field_type = ConfigPrimitive ( bool ) , parser_args = { 'action' : 'store_true' } , default_value = DEFAULT_RUN_CONFIG_SEARCH_DISABLE , description = "Disable run config search." ) ) self . _add_config ( ConfigField ( 'run_config_search_max_preferred_batch_size' , flags = [ '--run-config-search-max-preferred-batch-size' ] , field_type = ConfigPrimitive ( int ) , default_value = DEFAULT_RUN_CONFIG_MAX_PREFERRED_BATCH_SIZE , description = "Max preferred batch size value that run config search should not go beyond that." ) ) self . _add_config ( ConfigField ( 'run_config_search_preferred_batch_size_disable' , flags = [ '--run-config-search-preferred-batch-size-disable' ] , field_type = ConfigPrimitive ( bool ) , default_value = DEFAULT_RUN_CONFIG_PREFERRED_BATCH_SIZE_DISABLE , description = "Disable preferred batch size search." ) )
Add the config options related
to the run search
Add the config options related to the run search
"""
        Add the config options related
        to the run search
        """
self