Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance issues about tf.function #806

Open
DLPerf opened this issue Mar 5, 2023 · 1 comment
Open

Performance issues about tf.function #806

DLPerf opened this issue Mar 5, 2023 · 1 comment

Comments

@DLPerf
Copy link

DLPerf commented Mar 5, 2023

Hello! Our static bug checker has found a performance issue in Image-to-Image-Translation-with-GAN/TensorFlow/pix2pix-tensorflow-single_gpu.py: Python type argument epoch is passed to tf.function decorated function train_step instead of tensors. As there is a for loop, every time the value changes, a new graph will be generated, and that can trigger tf.function retracing warning.

Similar problem in Image-to-Image-Translation-with-GAN/TensorFlow/.ipynb_checkpoints/pix2pix-tensorflow-single_gpu-checkpoint.py

Here is the tensorflow document to support it.

Looking forward to your reply.

@DLPerf
Copy link
Author

DLPerf commented Mar 6, 2023

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! @Dovyski @zubairahmed-ai @najlepsiwebdesigner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant