model_analyzer/config/input/config_command_analyze.py
def _preprocess_and_verify_arguments(self):
        """
        Enforces some rules on the config.

        Raises
        ------
        TritonModelAnalyzerException
            If there is a problem with arguments or config.
        """

        if not self.export_path:
            logger.warning(
                f"--export-path not specified. Using {self._fields['export_path'].default_value()}"
            )
        elif self.export_path and not os.path.isdir(self.export_path):
            raise TritonModelAnalyzerException(
                f"Export path {self.export_path} is not a directory.")

        if self.num_top_model_configs > 0 and not self.constraints:
            raise TritonModelAnalyzerException(
                "If setting num_top_model_configs > 0, comparison across models is requested. "
                "This requires that global constraints be specified in the config to be used as default."
            )

        Enforces some rules on the config.

        Raises
        ------
        TritonModelAnalyzerException
            If there is a problem with arguments or config.
        
Enforces some rules on the config.
Raises

TritonModelAnalyzerException
If there is a problem with arguments or config.
Enforces some rules on the config . Raises TritonModelAnalyzerException If there is a problem with arguments or config .
def _preprocess_and_verify_arguments(self):
        if not self.export_path:
            logger.warning(
                f"--export-path not specified. Using {self._fields['export_path'].default_value()}"
            )
        elif self.export_path and not os.path.isdir(self.export_path):
            raise TritonModelAnalyzerException(
                f"Export path {self.export_path} is not a directory.")
        if self.num_top_model_configs > 0 and not self.constraints:
            raise TritonModelAnalyzerException(
                "If setting num_top_model_configs > 0, comparison across models is requested. "
                "This requires that global constraints be specified in the config to be used as default."
            )
def _preprocess_and_verify_arguments ( self ) : if not self . export_path : logger . warning ( f"--export-path not specified. Using {self._fields['export_path'].default_value()}" ) elif self . export_path and not os . path . isdir ( self . export_path ) : raise TritonModelAnalyzerException ( f"Export path {self.export_path} is not a directory." ) if self . num_top_model_configs > 0 and not self . constraints : raise TritonModelAnalyzerException ( "If setting num_top_model_configs > 0, comparison across models is requested. " "This requires that global constraints be specified in the config to be used as default." )
Enforces some rules on the config.
Enforces some rules on the config .
"""
        Enforces some rules on the config.

        Raises
        ------
        TritonModelAnalyzerException
            If there is a problem with arguments or config.
        """
self