model_analyzer/config/input/config_command_report.py
def _fill_config(self):
        """
        Builder function makes calls to add config to 
        fill the config with options
        """

        self._add_config(
            ConfigField(
                'config_file',
                flags=['-f', '--config-file'],
                field_type=ConfigPrimitive(str),
                description="Path to Config File for subcommand 'report'."))
        self._add_config(
            ConfigField(
                'checkpoint_directory',
                flags=['--checkpoint-directory', '-s'],
                default_value=DEFAULT_CHECKPOINT_DIRECTORY,
                field_type=ConfigPrimitive(str,
                                           validator=parent_path_validator),
                description=
                "Full path to directory to which to read and write checkpoints and profile data."
            ))
        self._add_config(
            ConfigField('export_path',
                        flags=['--export-path', '-e'],
                        default_value=DEFAULT_EXPORT_PATH,
                        field_type=ConfigPrimitive(
                            str, validator=file_path_validator),
                        description=
                        "Full path to directory in which to store the results"))
        plots_scheme = ConfigObject(schema={
            '*':
                ConfigObject(
                    schema={
                        'title': ConfigPrimitive(type_=str),
                        'x_axis': ConfigPrimitive(type_=str),
                        'y_axis': ConfigPrimitive(type_=str),
                        'monotonic': ConfigPrimitive(type_=bool)
                    })
        },
                                    output_mapper=ConfigPlot.from_object)
        self._add_config(
            ConfigField(
                'plots',
                field_type=ConfigUnion([
                    plots_scheme,
                    ConfigListGeneric(type_=plots_scheme,
                                      output_mapper=ConfigPlot.from_list)
                ]),
                default_value=DEFAULT_ONLINE_REPORT_PLOTS,
                description=
                'Model analyzer uses the information in this section to construct plots of the results.'
            ))

        report_model_scheme = ConfigObject(
            required=True,
            schema={
                # Any key is allowed, but the keys must follow the pattern
                # below
                '*': ConfigObject(schema={'plots': plots_scheme})
            },
            output_mapper=ConfigModelReportSpec.
            model_object_to_config_model_report_spec)
        self._add_config(
            ConfigField(
                'report_model_configs',
                flags=['--report-model-configs', '-n'],
                field_type=ConfigUnion([
                    report_model_scheme,
                    ConfigListGeneric(ConfigUnion([
                        report_model_scheme,
                        ConfigPrimitive(str,
                                        output_mapper=ConfigModelReportSpec.
                                        model_str_to_config_model_report_spec)
                    ]),
                                      required=True,
                                      output_mapper=ConfigModelReportSpec.
                                      model_mixed_to_config_model_report_spec),
                    ConfigListString(output_mapper=ConfigModelReportSpec.
                                     model_list_to_config_model_report_spec),
                ],
                                       required=True),
                description=(
                    'Comma delimited list of the names of model configs'
                    ' for which to generate detailed reports.')))
        self._add_config(
            ConfigField('output_formats',
                        flags=['--output-formats', '-o'],
                        default_value=DEFAULT_REPORT_FORMAT,
                        field_type=ConfigUnion([
                            ConfigListGeneric(type_=ConfigEnum(
                                choices=['pdf', 'csv', 'png'])),
                            ConfigListString()
                        ]),
                        description='Output file format for detailed report.'))

        Builder function makes calls to add config to 
        fill the config with options
        
Builder function makes calls to add config to
fill the config with options
Builder function makes calls to add config to fill the config with options
def _fill_config(self):
        self._add_config(
            ConfigField(
                'config_file',
                flags=['-f', '--config-file'],
                field_type=ConfigPrimitive(str),
                description="Path to Config File for subcommand 'report'."))
        self._add_config(
            ConfigField(
                'checkpoint_directory',
                flags=['--checkpoint-directory', '-s'],
                default_value=DEFAULT_CHECKPOINT_DIRECTORY,
                field_type=ConfigPrimitive(str,
                                           validator=parent_path_validator),
                description=
                "Full path to directory to which to read and write checkpoints and profile data."
            ))
        self._add_config(
            ConfigField('export_path',
                        flags=['--export-path', '-e'],
                        default_value=DEFAULT_EXPORT_PATH,
                        field_type=ConfigPrimitive(
                            str, validator=file_path_validator),
                        description=
                        "Full path to directory in which to store the results"))
        plots_scheme = ConfigObject(schema={
            '*':
                ConfigObject(
                    schema={
                        'title': ConfigPrimitive(type_=str),
                        'x_axis': ConfigPrimitive(type_=str),
                        'y_axis': ConfigPrimitive(type_=str),
                        'monotonic': ConfigPrimitive(type_=bool)
                    })
        },
                                    output_mapper=ConfigPlot.from_object)
        self._add_config(
            ConfigField(
                'plots',
                field_type=ConfigUnion([
                    plots_scheme,
                    ConfigListGeneric(type_=plots_scheme,
                                      output_mapper=ConfigPlot.from_list)
                ]),
                default_value=DEFAULT_ONLINE_REPORT_PLOTS,
                description=
                'Model analyzer uses the information in this section to construct plots of the results.'
            ))
        report_model_scheme = ConfigObject(
            required=True,
            schema={
                '*': ConfigObject(schema={'plots': plots_scheme})
            },
            output_mapper=ConfigModelReportSpec.
            model_object_to_config_model_report_spec)
        self._add_config(
            ConfigField(
                'report_model_configs',
                flags=['--report-model-configs', '-n'],
                field_type=ConfigUnion([
                    report_model_scheme,
                    ConfigListGeneric(ConfigUnion([
                        report_model_scheme,
                        ConfigPrimitive(str,
                                        output_mapper=ConfigModelReportSpec.
                                        model_str_to_config_model_report_spec)
                    ]),
                                      required=True,
                                      output_mapper=ConfigModelReportSpec.
                                      model_mixed_to_config_model_report_spec),
                    ConfigListString(output_mapper=ConfigModelReportSpec.
                                     model_list_to_config_model_report_spec),
                ],
                                       required=True),
                description=(
                    'Comma delimited list of the names of model configs'
                    ' for which to generate detailed reports.')))
        self._add_config(
            ConfigField('output_formats',
                        flags=['--output-formats', '-o'],
                        default_value=DEFAULT_REPORT_FORMAT,
                        field_type=ConfigUnion([
                            ConfigListGeneric(type_=ConfigEnum(
                                choices=['pdf', 'csv', 'png'])),
                            ConfigListString()
                        ]),
                        description='Output file format for detailed report.'))
def _fill_config ( self ) : self . _add_config ( ConfigField ( 'config_file' , flags = [ '-f' , '--config-file' ] , field_type = ConfigPrimitive ( str ) , description = "Path to Config File for subcommand 'report'." ) ) self . _add_config ( ConfigField ( 'checkpoint_directory' , flags = [ '--checkpoint-directory' , '-s' ] , default_value = DEFAULT_CHECKPOINT_DIRECTORY , field_type = ConfigPrimitive ( str , validator = parent_path_validator ) , description = "Full path to directory to which to read and write checkpoints and profile data." ) ) self . _add_config ( ConfigField ( 'export_path' , flags = [ '--export-path' , '-e' ] , default_value = DEFAULT_EXPORT_PATH , field_type = ConfigPrimitive ( str , validator = file_path_validator ) , description = "Full path to directory in which to store the results" ) ) plots_scheme = ConfigObject ( schema = { '*' : ConfigObject ( schema = { 'title' : ConfigPrimitive ( type_ = str ) , 'x_axis' : ConfigPrimitive ( type_ = str ) , 'y_axis' : ConfigPrimitive ( type_ = str ) , 'monotonic' : ConfigPrimitive ( type_ = bool ) } ) } , output_mapper = ConfigPlot . from_object ) self . _add_config ( ConfigField ( 'plots' , field_type = ConfigUnion ( [ plots_scheme , ConfigListGeneric ( type_ = plots_scheme , output_mapper = ConfigPlot . from_list ) ] ) , default_value = DEFAULT_ONLINE_REPORT_PLOTS , description = 'Model analyzer uses the information in this section to construct plots of the results.' ) ) report_model_scheme = ConfigObject ( required = True , schema = { '*' : ConfigObject ( schema = { 'plots' : plots_scheme } ) } , output_mapper = ConfigModelReportSpec . model_object_to_config_model_report_spec ) self . _add_config ( ConfigField ( 'report_model_configs' , flags = [ '--report-model-configs' , '-n' ] , field_type = ConfigUnion ( [ report_model_scheme , ConfigListGeneric ( ConfigUnion ( [ report_model_scheme , ConfigPrimitive ( str , output_mapper = ConfigModelReportSpec . model_str_to_config_model_report_spec ) ] ) , required = True , output_mapper = ConfigModelReportSpec . model_mixed_to_config_model_report_spec ) , ConfigListString ( output_mapper = ConfigModelReportSpec . model_list_to_config_model_report_spec ) , ] , required = True ) , description = ( 'Comma delimited list of the names of model configs' ' for which to generate detailed reports.' ) ) ) self . _add_config ( ConfigField ( 'output_formats' , flags = [ '--output-formats' , '-o' ] , default_value = DEFAULT_REPORT_FORMAT , field_type = ConfigUnion ( [ ConfigListGeneric ( type_ = ConfigEnum ( choices = [ 'pdf' , 'csv' , 'png' ] ) ) , ConfigListString ( ) ] ) , description = 'Output file format for detailed report.' ) )
Builder function makes calls to add config to
fill the config with options
Builder function makes calls to add config to fill the config with options
"""
        Builder function makes calls to add config to 
        fill the config with options
        """ # Any key is allowed, but the keys must follow the pattern # below
self