Skip to content

Commit

Permalink
tensorflow warnings are suppressed
Browse files Browse the repository at this point in the history
  • Loading branch information
meliksahturker committed Mar 2, 2023
1 parent aaeae7a commit dabf12e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vnlp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import os
# Suppress tensorflow warnings
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'

import tensorflow as tf
# Prevent tensorflow from allocating whole GPU memory.
gpus = tf.config.experimental.list_physical_devices('GPU')
Expand Down

0 comments on commit dabf12e

Please sign in to comment.