我想创建一个基于tf.truncated_normal_initializer代码的自定义初始化器。
但是,当我尝试导入init_ops和random_ops时。我知道错误:
AttributeError: 'module' object has no attribute 'ops'
复制:
import tensorflow.python.ops.random_ops as random_ops发布于 2016-10-20 13:03:27
噢,太微不足道了。解决问题
from tensorflow.python.ops import random_ops
from tensorflow.python.ops import init_opshttps://stackoverflow.com/questions/40154105
复制相似问题