tensorflow2.0 No module named ‘tensorflow.contrib‘

from tensorflow.contrib.layers import conv2d报错

ModuleNotFoundError: No module named 'tensorflow.contrib'

替换为 from tf_slim.layers import conv2d

import tensorflow.contrib.slim as slim
替换为 import tf_slim as slim

你可能感兴趣的:(tensorflow)