This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# source : https://stackoverflow.com/a/54950981/7195250 | |
def tensorflow_shutup(): | |
""" | |
Make Tensorflow less verbose | |
""" | |
try: | |
# noinspection PyPackageRequirements | |
import os | |
from tensorflow import logging |