[英]How to suppress Tensorflow Training Log in Jupyter Lab
Training a sequential model in a notebook gives very long output over the training epochs.在笔记本中训练一个连续的 model 会在训练时期提供非常长的 output。 How to suppress this output?
如何抑制这个 output? Or how to general suppress outputs of a single Code-cell?
或者如何一般抑制单个代码单元的输出?
Add the below code snippet before importing Tensorflow在导入 Tensorflow 之前添加以下代码片段
import logging
logging.getLogger('tensorflow').disabled = True
It will suppress the Tensorflow log information.它将抑制 Tensorflow 日志信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.