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

Commit

Permalink
fix pylint error
Browse files Browse the repository at this point in the history
  • Loading branch information
cassiniXu authored and cassiniXu committed Jan 21, 2020
1 parent 51cf85d commit 1ef04d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions python/mxnet/numpy/multiarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -8548,7 +8548,7 @@ def bincount(x, weights=None, minlength=0):


@set_module('mxnet.numpy')
def pad(array, pad_width=None, mode="constant", constant_values=0, reflect_type="even"):
def pad(x, pad_width=None, mode="constant", constant_values=0, reflect_type="even"):
"""
Pad an array.
Expand Down Expand Up @@ -8643,4 +8643,4 @@ def pad(array, pad_width=None, mode="constant", constant_values=0, reflect_type=
[10, 10, 10, 10, 10, 10, 10],
[10, 10, 10, 10, 10, 10, 10]])
"""
return _mx_nd_np.pad(array, pad_width, mode, reflect_type, constant_values)
return _mx_nd_np.pad(x, pad_width, mode, reflect_type, constant_values)
4 changes: 2 additions & 2 deletions src/operator/numpy/np_pad_op.cu
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ namespace mxnet {
namespace op {

NNVM_REGISTER_OP(_npi_pad)
.set_attr<FCompute>("FCompute<gpu>", NumpyPadOpForward<gpu>)
.set_attr<FCompute>("FCompute<gpu>", NumpyPadOpForward<gpu>);

NNVM_REGISTER_OP(_backward_npi_pad)
.set_attr<FCompute>("FCompute<gpu>", NumpyPadOpBackward<gpu>)
.set_attr<FCompute>("FCompute<gpu>", NumpyPadOpBackward<gpu>);

} // namespace op
} // namespace mxnet

0 comments on commit 1ef04d2

Please sign in to comment.