Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Addressed doc issues #13165

Merged
merged 3 commits into from
Nov 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions python/mxnet/gluon/nn/basic_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,20 +663,21 @@ class HybridLambda(HybridBlock):
----------
function : str or function
Function used in lambda must be one of the following:
1) the name of an operator that is available in both symbol and ndarray. For example::
1) The name of an operator that is available in both symbol and ndarray. For example::

block = HybridLambda('tanh')

2) a function that conforms to "def function(F, data, *args)". For example::
2) A function that conforms to ``def function(F, data, *args)``. For example::

block = HybridLambda(lambda F, x: F.LeakyReLU(x, slope=0.1))

Inputs:
- ** *args **: one or more input data. First argument must be symbol or ndarray.
Their shapes depend on the function.
- ** *args **: one or more input data. First argument must be symbol or ndarray. Their \
shapes depend on the function.

Output:
- ** *outputs **: one or more output data. Their shapes depend on the function.

"""
def __init__(self, function, prefix=None):
super(HybridLambda, self).__init__(prefix=prefix)
Expand Down
2 changes: 1 addition & 1 deletion python/mxnet/ndarray/ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ def reshape(self, *shape, **kwargs):

Example::

- without reverse=1, for input shape = (10,5,4), shape = (-1,0), output shape would be
- without reverse=1, for input shape = (10,5,4), shape = (-1,0), output shape would be \
(40,5).
- with reverse=1, output shape will be (50,4).

Expand Down