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

Commit

Permalink
Fix Sphinx errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vandanavk committed Nov 13, 2018
1 parent 7baad6f commit e21520d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
18 changes: 9 additions & 9 deletions python/mxnet/gluon/contrib/rnn/conv_rnn_cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ class Conv1DRNNCell(_ConvRNNCell):
If argument type is string, it's equivalent to nn.Activation(act_type=str). See
:func:`~mxnet.ndarray.Activation` for available choices.
Alternatively, other activation blocks such as nn.LeakyReLU can be used.
prefix : str, default 'conv_rnn_'
prefix : str, default ``'conv_rnn_``'
Prefix for name of layers (and name of weight if params is None).
params : RNNParams, default None
Container for weight sharing between cells. Created if None.
Expand Down Expand Up @@ -322,7 +322,7 @@ class Conv2DRNNCell(_ConvRNNCell):
If argument type is string, it's equivalent to nn.Activation(act_type=str). See
:func:`~mxnet.ndarray.Activation` for available choices.
Alternatively, other activation blocks such as nn.LeakyReLU can be used.
prefix : str, default 'conv_rnn_'
prefix : str, default ``'conv_rnn_``'
Prefix for name of layers (and name of weight if params is None).
params : RNNParams, default None
Container for weight sharing between cells. Created if None.
Expand Down Expand Up @@ -389,7 +389,7 @@ class Conv3DRNNCell(_ConvRNNCell):
If argument type is string, it's equivalent to nn.Activation(act_type=str). See
:func:`~mxnet.ndarray.Activation` for available choices.
Alternatively, other activation blocks such as nn.LeakyReLU can be used.
prefix : str, default 'conv_rnn_'
prefix : str, default ``'conv_rnn_``'
Prefix for name of layers (and name of weight if params is None).
params : RNNParams, default None
Container for weight sharing between cells. Created if None.
Expand Down Expand Up @@ -519,7 +519,7 @@ class Conv1DLSTMCell(_ConvLSTMCell):
If argument type is string, it's equivalent to nn.Activation(act_type=str). See
:func:`~mxnet.ndarray.Activation` for available choices.
Alternatively, other activation blocks such as nn.LeakyReLU can be used.
prefix : str, default 'conv_lstm_'
prefix : str, default ``'conv_lstm_``'
Prefix for name of layers (and name of weight if params is None).
params : RNNParams, default None
Container for weight sharing between cells. Created if None.
Expand Down Expand Up @@ -596,7 +596,7 @@ class Conv2DLSTMCell(_ConvLSTMCell):
If argument type is string, it's equivalent to nn.Activation(act_type=str). See
:func:`~mxnet.ndarray.Activation` for available choices.
Alternatively, other activation blocks such as nn.LeakyReLU can be used.
prefix : str, default 'conv_lstm_'
prefix : str, default ``'conv_lstm_``'
Prefix for name of layers (and name of weight if params is None).
params : RNNParams, default None
Container for weight sharing between cells. Created if None.
Expand Down Expand Up @@ -673,7 +673,7 @@ class Conv3DLSTMCell(_ConvLSTMCell):
If argument type is string, it's equivalent to nn.Activation(act_type=str). See
:func:`~mxnet.ndarray.Activation` for available choices.
Alternatively, other activation blocks such as nn.LeakyReLU can be used.
prefix : str, default 'conv_lstm_'
prefix : str, default ``'conv_lstm_``'
Prefix for name of layers (and name of weight if params is None).
params : RNNParams, default None
Container for weight sharing between cells. Created if None.
Expand Down Expand Up @@ -803,7 +803,7 @@ class Conv1DGRUCell(_ConvGRUCell):
If argument type is string, it's equivalent to nn.Activation(act_type=str). See
:func:`~mxnet.ndarray.Activation` for available choices.
Alternatively, other activation blocks such as nn.LeakyReLU can be used.
prefix : str, default 'conv_gru_'
prefix : str, default ``'conv_gru_``'
Prefix for name of layers (and name of weight if params is None).
params : RNNParams, default None
Container for weight sharing between cells. Created if None.
Expand Down Expand Up @@ -875,7 +875,7 @@ class Conv2DGRUCell(_ConvGRUCell):
If argument type is string, it's equivalent to nn.Activation(act_type=str). See
:func:`~mxnet.ndarray.Activation` for available choices.
Alternatively, other activation blocks such as nn.LeakyReLU can be used.
prefix : str, default 'conv_gru_'
prefix : str, default ``'conv_gru_``'
Prefix for name of layers (and name of weight if params is None).
params : RNNParams, default None
Container for weight sharing between cells. Created if None.
Expand Down Expand Up @@ -947,7 +947,7 @@ class Conv3DGRUCell(_ConvGRUCell):
If argument type is string, it's equivalent to nn.Activation(act_type=str). See
:func:`~mxnet.ndarray.Activation` for available choices.
Alternatively, other activation blocks such as nn.LeakyReLU can be used.
prefix : str, default 'conv_gru_'
prefix : str, default ``'conv_gru_``'
Prefix for name of layers (and name of weight if params is None).
params : RNNParams, default None
Container for weight sharing between cells. Created if None.
Expand Down
4 changes: 2 additions & 2 deletions python/mxnet/io/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,8 @@ class NDArrayIter(DataIter):
"""Returns an iterator for ``mx.nd.NDArray``, ``numpy.ndarray``, ``h5py.Dataset``
``mx.nd.sparse.CSRNDArray`` or ``scipy.sparse.csr_matrix``.
Example usage:
----------
Examples
--------
>>> data = np.arange(40).reshape((10,2,2))
>>> labels = np.ones([10, 1])
>>> dataiter = mx.io.NDArrayIter(data, labels, 3, True, last_batch_handle='discard')
Expand Down
1 change: 1 addition & 0 deletions python/mxnet/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1844,6 +1844,7 @@ def var_check(generator, sigma, nsamples=1000000):

def chi_square_check(generator, buckets, probs, nsamples=1000000):
"""Run the chi-square test for the generator. The generator can be both continuous and discrete.
If the generator is continuous, the buckets should contain tuples of (range_min, range_max) and
the probs should be the corresponding ideal probability within the specific ranges.
Otherwise, the buckets should be the possible output of the discrete distribution and the probs
Expand Down

0 comments on commit e21520d

Please sign in to comment.