Problem: sum of class instances when downgrading to python 2.7
Ouverte
- Langage dominant
- Python
- Étoiles
- 1.5k
- Forks
- 668
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Hi all, I'm trying to downgrade the code into python 2.7. I found in the customized evaluation class overloaded the add operation as: def __add__(self, other).
When sum over evaluation instances of different batches, it simply use a sum command:
def get_evaluation_from_batches(self, sess, batches):
e = sum(self.get_evaluation(sess, batch) for batch in batches)
The sum inherits the overloaded sum operation well in python 3.5 whereas it does not work in python 2.7.
Does any one meet the same problem and find some solutions? Any suggestion would be appreciated. Thanks!
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.