def hparams(self, defaults, model_hparams):
    del model_hparams
    perf_encoder = self.get_feature_encoders()['targets']
    defaults.modality = {'targets': t2t_modalities.ModalityType.SYMBOL}
    defaults.vocab_size = {'targets': perf_encoder.vocab_size}
    if self.has_inputs:
        score_encoder = self.score_encoders()
        for (name, se) in score_encoder:
            defaults.modality[name] = t2t_modalities.ModalityType.SYMBOL
            defaults.vocab_size[name] = se.vocab_size
def hparams(self, defaults, model_hparams):
    del model_hparams
    perf_encoder = self.get_feature_encoders()['targets']
    defaults.modality = {'targets': t2t_modalities.ModalityType.SYMBOL}
    defaults.vocab_size = {'targets': perf_encoder.vocab_size}
    if self.has_inputs:
        score_encoder = self.score_encoders()
        for (name, se) in score_encoder:
            defaults.modality[name] = t2t_modalities.ModalityType.SYMBOL
            defaults.vocab_size[name] = se.vocab_size