TensorFlow run common errors

一、Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2

Solution:

 

 

 

二、FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecate

Workaround: Click the problem file, np.dtype ([( "quint8", np.uint8, 1)]) modified to np.dtype ([( "quint8", np.uint8, (1,)) ])Enough

 

 

三、colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.

Version of the warning, which means that this method will be removed in the next version

Workaround: Update tensorflow version, pip install --upgrade tensorflow (== version number may be omitted in parentheses, not specified, will be updated to the latest version)

If you do not want to update is also available, but the portability of the code will be relatively poor

 

Guess you like

Origin www.cnblogs.com/lyf98/p/11908655.html