haojin2 commented on a change in pull request #17328: [numpy] add op pad URL: https://github.com/apache/incubator-mxnet/pull/17328#discussion_r367143959
########## File path: python/mxnet/ndarray/numpy/_op.py ########## @@ -6476,3 +6475,126 @@ def bincount(x, weights=None, minlength=0): if weights is None: return _npi.bincount(x, minlength=minlength, has_weights=False) return _npi.bincount(x, weights=weights, minlength=minlength, has_weights=True) + + +@set_module('mxnet.ndarray.numpy') +def pad(array, pad_width, mode="constant", reflect_type="even", constant_values=0): + """ + Pad an array. + Parameters Review comment: extra blank line above ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services