SSH-TensorFlow icon indicating copy to clipboard operation
SSH-TensorFlow copied to clipboard

Performance issues in lib/model/train_val.py

Open JamesCao2048 opened this issue 4 years ago • 0 comments

Hello, I found that in the function train_model_random, lib/model/train_val.py, tf.assign will create redundant node in tf computation graph repeatedly(as it is in a while loop). I think tf.assign should be called only once before the loop to create a op, and use session to run this op repeatedly.

The same issue exists here.

Looking forward to your reply. Btw, I am very glad to create a PR to fix it if you are too busy.

JamesCao2048 avatar Aug 01 '21 09:08 JamesCao2048