# 定义神经网络中间层 10个神经元
Weights_L1 tf.Variable(tf.random.normal([1,10])) #权重 tensorflow中的变量 赋值随机数 1*10 [输入层个数 中间层个数]
biases_L1 tf.Variable(tf.zeros([1,10])) #偏置 初始化为0
Wx_plus_b_L1 tf.matmul(x,Weights_L1) biases_L1 #信号的总和 矩阵乘法 输入一个矩阵 权值也是矩阵 偏置
L1 tf.nn.tanh(Wx_plus_b_L1) #双曲正切函数作为激活函数 得到中间层的输出L1