1 # coding: utf-8 2 import tensorflow as tf 3 from tensorflow.examples.tutorials.mnist import input_data 4 5 6 def weight_variable(shape): 7 initial = tf.truncated_normal(shape, stddev=0.1) 8 return tf.Variable(initial) 9 10 11 def bias_variable(shape): 12 initial = tf.constant(0.1, shape=shape) 13 return tf.Variable(initial) 14 15 16 def conv2d(x, W): 17 return tf.nn.conv2d(x, W, strides=[1, 1, 1, 1], padding='SAME') 18 19 20 def max_pool_2x2(x): 21 return tf.nn.max
tensorflow weight_variable going
最新推荐文章于 2020-01-17 23:40:37 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)