Performance issue in the definition of model_fn, dh_segment/estimator_fn.py(P1)
DLPerf opened this issue · 0 comments
DLPerf commented
Hello, I found a performance issue in the definition of model_fn
, dh_segment/estimator_fn.py, tf.cast(tf.shape(network_output)[1:3] will be calculated repeatedly during program execution, resulting in reduced efficiency. I think it should be created before the loop.
Looking forward to your reply. Btw, I am very glad to create a PR to fix it if you are too busy.