def initialize(self,std=1.0,bias=0.1):
with tf.variable_scope(self.name):
self.inputShape = np.product([i.value for i in self.input.get_shape()[1:] if i.value is not None])
self.W = weightVariable([self.inputShape,self.units],std=std)
self.b = biasVariable([self.units],bias=bias)
TensorFlowInterface.py 文件源码
python
阅读 51
收藏 0
点赞 0
评论 0
评论列表
文章目录