From c0398252ed016fc2af8af1b4b0022e6187051edf Mon Sep 17 00:00:00 2001 From: Jason Date: Mon, 8 Apr 2019 20:29:11 +0800 Subject: [PATCH] Update Input.md --- caffe2fluid/doc/Input.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/caffe2fluid/doc/Input.md b/caffe2fluid/doc/Input.md index 32094a8..6635b87 100644 --- a/caffe2fluid/doc/Input.md +++ b/caffe2fluid/doc/Input.md @@ -63,8 +63,10 @@ layer{ ``` python # PaddlePaddle示例: -inputs1 = paddle.fluid.layers.data(name = 'data1', shape = [10,3,227,227], dtype = 'float32', append_batch_size = False) # 数据shape为[10,3,227,227] -inputs2 = paddle.fluid.layers.data(name = 'data2', shape = [3,227,227], dtype = 'float32') +inputs1 = paddle.fluid.layers.data(name='data1', shape=[10,3,227,227], + dtype='float32', append_batch_size=False) + # 数据shape为[-1,3,227,227] +inputs2 = paddle.fluid.layers.data(name='data2', shape=[3,227,227], dtype='float32') ``` -- GitLab