captain-pool / GSOC

Repository for Google Summer of Code 2019 https://summerofcode.withgoogle.com/projects/#4662790671826944
MIT License
68 stars 22 forks source link

Performance issue in some programs #68

Closed DLPerf closed 3 years ago

DLPerf commented 3 years ago

Hello, I found a Performance issue in in the definition of call, E3_Distill_ESRGAN/libs/models/student_rrdb.py, tf.math.add_n will created repeatedly during program execution, resulting in reduced efficiency. I think it should be created before the loop in train_model_random.

captain-pool commented 3 years ago

Hi @DLPerf, thanks for reaching out! I don't have time to fix this. Can you please send a pull request? I can review and merge it.