【bug解决】AttributeError: module ‘tensorflow‘ has no attribute ‘truncated_normal‘
目录一、问题描述二、问题分析三、进一步分析函数总结一、问题描述想要在tensorflow中产生正态分布的随机数,网上找到的资料是这样的:importtensorflowastfc=tf.truncated_normal(shape=[2,3],mean=0,stddev=1)withtf.Session()assess:print(sess.run(c))#c=tf.compat.v1.rando