Skip to content

[Study Log] Disable tensorflow warnings #20

@haonly

Description

@haonly

Disable tensorflow warnings

> tensorflow/compiler/xla/service/service.cc:168] XLA service 0x25a7159eaa0 initialized for platform Host (this does not guarantee that XLA will be used).
> tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN)to use the following CPU instructions in performance-critical operations:  AVX2

자꾸 위와 같은 워닝 메시지가 나와서 짜증났다.

해결

pip install silence_tensorflow
from silence_tensorflow import silence_tensorflow
silence_tensorflow()

from keras.models import load_model

이렇게 해주면 해결

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions