Python – tensorflow.get_logger()
TensorFlow is open-source Python library designed by Google to develop Machine Learning models and deep learning neural networks.
get_logger() is used to get the logger instance.
Syntax: tensorflow.get_logger()
Parameters: It doesn’t accept any parameters.
Returns: It returns the logger instance.
Example 1:
Python3
import tensorflow as tf
logger = tf.get_logger()
res = logger.propagate
print ( 'res: ' ,res)
|
Output:
res: True
Example 2:
Python3
import tensorflow as tf
logger = tf.get_logger()
logger.propagate = False
res = logger.propagate
print ( 'res: ' ,res)
|
Output:
res: False
Last Updated :
07 Mar, 2023
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...