Comments (1)
这是TensorFlow-1.8中会出现的情况,可以通过设置环境变量TF_CPP_MIN_LOG_LEVEL
屏蔽INFO级别的日志信息:
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import tensorflow as tf
import moxing.tensorflow as mox
注意环境变量的设置一定要在import tensorflow或者import moxing之前。
另外TF_CPP_MIN_LOG_LEVEL
日志等级对应关系是:
import os
os.environ["TF_CPP_MIN_LOG_LEVEL"]='1' # 这是默认的显示等级,显示所有信息
os.environ["TF_CPP_MIN_LOG_LEVEL"]='2' # 只显示 warning 和 Error
os.environ["TF_CPP_MIN_LOG_LEVEL"]='3' # 只显示 Error
from dls-example.
Related Issues (20)
- 提交自定义网络模型时如何设置参数 HOT 1
- 训练作业失败,报AssertionError: can only join a started process HOT 2
- 训练作业错误. InvalidArgumentError: slice index 2 of dimension 0 out of bounds. HOT 1
- 执行TFServing预测作业的客户端代码报错,提示Connect Failed HOT 1
- 使用DLS时,代码中文件读取的问题 HOT 1
- 保存模型出现Unable to connect to endpoint错误 HOT 7
- 任务不执行 HOT 5
- 读数据报错 HOT 2
- numpy.load读文件失败 HOT 3
- 无法打开上传的juypter notebook 也无法引用同目录下的.py 文件 HOT 2
- 运行pytorch作业出现错误 RuntimeError: unable to write to file HOT 4
- 开发环境中无法新建python HOT 1
- tensorflow在s3写tensorboard到达5GB时停止 HOT 2
- 公有云运行TensorFlow训练作业出现错误:truncated record at xxxxx HOT 1
- 训练作业突然失败停止 HOT 1
- callback保存训练模型报错 HOT 1
- Error when reading .npy/.npz files using moxing HOT 1
- absl.flags._exceptions.UnrecognizedFlagError: Unknown command line flag 'num_gpus' HOT 1
- checkpoint保存失败
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dls-example.