예제 #1
0
파일: tf_base_net.py 프로젝트: yxiaohan/nn
 def _get_b(self):
     common.print_func_name(self._get_b)
     layer = self.weighted_layers[0]
     print(self.sess.run(layer.b))
예제 #2
0
 def _init_weight_values(n_inputs, n_outputs, shape):
     common.print_func_name(Relu._init_weight_values)
     print(shape)
     w_values = tf.truncated_normal(shape=shape, stddev=1. / math.sqrt(float(shape[0])))
     return w_values
예제 #3
0
파일: tf_base_net.py 프로젝트: yxiaohan/nn
 def _get_b(self):
     common.print_func_name(self._get_b)
     layer = self.weighted_layers[0]
     print(self.sess.run(layer.b))