tensorflow2_model_zoo icon indicating copy to clipboard operation
tensorflow2_model_zoo copied to clipboard

Performance issue in cifar10_cnn_ict.py

Open DLPerf opened this issue 2 years ago • 1 comments

Hello! Our static bug checker has found a performance issue in cifar10_cnn_ict.py: Python type argument w is passed to tf.function decorated function train_step instead of tensors. As there is a for loop argument epoch that has effect on w, every time the value of w changes, a new graph will be generated, and that can trigger tf.function retracing warning.

Here is the tensorflow document to support it.

Looking forward to your reply.

DLPerf avatar Feb 24 '23 08:02 DLPerf

We are investigating this kind of issues, and your answer will be of great help to our work. Can you take a look? Thank you in advance! @ryancheunggit

DLPerf avatar Mar 06 '23 02:03 DLPerf