Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
Merged
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
8 changes: 4 additions & 4 deletions python/mxnet/ndarray/numpy_extension/_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,8 +599,8 @@ def convolution(data=None, weight=None, bias=None, kernel=None, stride=None, dil
"""
assert data is not None and weight is not None and kernel is not None, \
"Missing input data, weight or kernel"
assert num_filter > 1, "Number of output filters should be greater than 1"
assert workspace > 0, "Maximum temporary workspace should be greater than 0"
assert num_filter >= 1, "Number of output filters should be greater equal to 1."
assert workspace >= 0, "Maximum temporary workspace should be greater equal to 0."
if no_bias:
assert bias is None, "Using no bias"
return _api_internal.convolution(data, weight, kernel, stride, dilate, pad,
Expand Down Expand Up @@ -682,8 +682,8 @@ def deconvolution(data=None, weight=None, bias=None, kernel=None, stride=None, d
"""
assert data is not None and weight is not None and kernel is not None, \
"Missing input data, weight or kernel"
assert num_filter > 1, "Number of output filters should be greater than 1"
assert workspace > 0, "Maximum temporary workspace should be greater than 0"
assert num_filter >= 1, "Number of output filters should be greater equal to 1."
assert workspace >= 0, "Maximum temporary workspace should be greater equal to 0."
if no_bias:
assert bias is None, "Using no bias"
return _api_internal.deconvolution(data, weight, kernel, stride, dilate, pad,
Expand Down