tensorflow报错:FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated;

在使用tensorflow时报错:
/home/chenkaizhen/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:526: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.

报错原因:numpy版本太高
解决方法:将numpy版本降低到1.16.0,即可解决报错问题;

你可能感兴趣的:(tensorflow)