0

I am trying to run some code which cannot be altered in functionality, but it would be great if I can somehow ignore the warnings or prevent them from being printed to the console, as it congests it and makes it unreadable. Thank you.

1 Answers1

0

You can try tf.autograph.set_verbosity it's used to control how much info tensorflow logs as indicated in their docs for TF2.6

tf.autograph.set_verbosity(
    level=0, alsologtostdout=False
)

Check also the answers here which covers solutions for multiple versions of tensorflow and python.