def feature_encoders(self, data_dir):
    del data_dir
    encoders = {'targets': self.performance_encoder()}
    score_encoders = self.score_encoders()
    if score_encoders:
        if (len(score_encoders) > 1):
            encoders['inputs'] = music_encoders.CompositeScoreEncoder([encoder for (_, encoder) in score_encoders])
        else:
            (_, encoders['inputs']) = score_encoders[0]
    return encoders
def feature_encoders(self, data_dir):
    del data_dir
    encoders = {'targets': self.performance_encoder()}
    score_encoders = self.score_encoders()
    if score_encoders:
        if (len(score_encoders) > 1):
            encoders['inputs'] = music_encoders.CompositeScoreEncoder([encoder for (_, encoder) in score_encoders])
        else:
            (_, encoders['inputs']) = score_encoders[0]
    return encoders