From cf2913d0456aed947485da567324a96d1edcfed4 Mon Sep 17 00:00:00 2001 From: SunAhong1993 <48579383+SunAhong1993@users.noreply.github.com> Date: Tue, 9 Apr 2019 16:26:01 +0800 Subject: [PATCH] Update Crop.md --- caffe2fluid/doc/Crop.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/caffe2fluid/doc/Crop.md b/caffe2fluid/doc/Crop.md index b365e93..9a06a91 100644 --- a/caffe2fluid/doc/Crop.md +++ b/caffe2fluid/doc/Crop.md @@ -22,9 +22,9 @@ layer { ```python paddle.fluid.layers.crop( x, - shape = None, - offsets = None, - name = None + shape=None, + offsets=None, + name=None ) ``` @@ -47,7 +47,7 @@ layer { bottom: "data1" bottom: "data2" top: ”crop" - crop_param{ + crop_param { axis: 1 offset: 0 offset: 25 @@ -59,7 +59,7 @@ layer { ```python # PaddlePaddle示例: # inputs1输入shape:(20,3,128,128) -output1 = fluid.layers.crop(x = inputs1, shape=inputs2, offsets=[0,0,25,25]) +output1 = fluid.layers.crop(x=inputs1, shape=inputs2, offsets=[0,0,25,25]) # 输出shape:(20,2,64,64) -output = fluid.layers.crop(x = inputs1, shape=[20,2,64,64], offsets=[0,0,25,25]) +output = fluid.layers.crop(x=inputs1, shape=[20,2,64,64], offsets=[0,0,25,25]) ``` -- GitLab