提交 3b69629d 编写于 作者: Q qiaolongfei

modify api_train_v2

上级 47043fe1
......@@ -16,8 +16,8 @@ def main():
paddle.init(use_gpu=False, trainer_count=1)
# define network topology
images = paddle.layer.data(name='pixel', size=784)
label = paddle.layer.data(name='label', size=10)
images = paddle.layer.data(name='pixel', type=dense_vector(784))
label = paddle.layer.data(name='label', type=integer_value(10))
hidden1 = paddle.layer.fc(input=images, size=200)
hidden2 = paddle.layer.fc(input=hidden1, size=200)
inference = paddle.layer.fc(input=hidden2,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册