摘要:
import tensorflow as tf import numpy as np import matplotlib.pyplot as plt def add_layer(inputs, in_size, out_size, activation_function = None): Weights = tf.Variable(tf.random_normal([i... 阅读全文
posted @ 2018-03-31 21:10
路边的十元钱硬币
阅读(185)
评论(0)
推荐(0)
摘要:
import tensorflow as tf import numpy as np def add_layer(inputs, in_size, out_size, activation_function = None): Weights = tf.Variable(tf.random_normal([in_size, out_size])) # hang lie ... 阅读全文
posted @ 2018-03-31 21:09
路边的十元钱硬币
阅读(210)
评论(0)
推荐(0)
摘要:
import tensorflow as tf input1 = tf.placeholder(tf.float32) input2 = tf.placeholder(tf.float32) output = tf.multiply(input1, input2) with tf.Session() as sess: print(ses... 阅读全文
posted @ 2018-03-31 21:07
路边的十元钱硬币
阅读(96)
评论(0)
推荐(0)
摘要:
加法 累加1 加3次 阅读全文
posted @ 2018-03-31 21:05
路边的十元钱硬币
阅读(161)
评论(0)
推荐(0)
摘要:
import tensorflow as tf matrix1 = tf.constant([[3,3]]) # 1X2 matrix2 = tf.constant([[2], [2]]) product = tf.matmul(matrix1, matrix2) #method 1 #sess = tf.Ses... 阅读全文
posted @ 2018-03-31 21:04
路边的十元钱硬币
阅读(159)
评论(0)
推荐(0)
摘要:
import tensorflow as tf import numpy as np # create data x_data = np.random.rand(100).astype(np.float32) y_data = x_data*0.1 + 0.3 ### create tensorflow structure start ### Weights ... 阅读全文
posted @ 2018-03-31 21:03
路边的十元钱硬币
阅读(191)
评论(0)
推荐(0)

浙公网安备 33010602011771号