Merge branch 'crop_layer' of https://github.com/wanghaoshuang/Paddle into crop_layer

cblas_new
wanghaoshuang 8 years ago
commit 2e58f2c4c9

@ -5980,12 +5980,11 @@ def crop_layer(input, offset, axis=2, shape=None, name=None, layer_attr=None):
"""
The crop layer crops images by offset and shape. User can set crop shape by
args 'shape' explicitly or by reference input layer.
The example usage is:
.. code-block:: python
crop = crop_layer(input=[image_input, reference_input], axis=2, offset=[2, 3])
crop = crop_layer(input=[image_input, reference_input], axis=2, offset=[2, 3])
:param input: The input layer.If two inputs were setted,
the second input will be regarded as reference input

Loading…
Cancel
Save