def __init__(self,
                 config: dict,

                 ):
        """
        Args:
            config: the 'learning_config' part in YAML config file
            saved_path: path to exported weights or model
            from_weights: choose to load from weights or from whole model
        """
        super().__init__()
        self.running_config=config

        self.output_file_path = os.path.join(self.running_config["outdir"], "test.tsv")
        self.eval_metrics = {
            "greed_ser": tf.keras.metrics.Mean(),
            "greed_cer": tf.keras.metrics.Mean()
        }
        self.ctc_nums = [0, 0, 0, 0]  # n,s,i,d
        self.translator_nums = [0, 0, 0, 0]  # n,s,i,d
        self.steps=0
        self.all_steps=0

        Args:
            config: the 'learning_config' part in YAML config file
            saved_path: path to exported weights or model
            from_weights: choose to load from weights or from whole model
        
asr/tester/base_tester.py