def make_image_data():
"""Make some simple data."""
N = 100
M = 3
# N 28x28 RGB float images
x = expit(RAND.randn(N, 28, 28, 3)).astype(np.float32)
w = np.linspace(-2.5, 2.5, 28*28*3)
Y = np.dot(x.reshape(-1, 28*28*3), w) + RAND.randn(N, 1)
X = tf.tile(tf.expand_dims(x, 0), [M, 1, 1, 1, 1])
return x, Y, X
评论列表
文章目录