Upon further investigation it seems that the actual issue is that there is 
automatically generated default values for each argument:

https://github.com/apache/incubator-mxnet/blob/76bdc8772c7f4edd3087bd1285025122fc837c06/python/mxnet/ndarray/register.py#L67-L88

This results in the following function signature for the smooth_l1 operator:
```
def smooth_l1(data=None, scalar=_Null, out=None, name=None, **kwargs)
```
The problem is that these default values end up getting passed down to the C++ 
operator implementation and cause the error shown in the description. Ideally, 
we should only set default values that the user provided when they registered 
the operator.

[ Full content available at: 
https://github.com/apache/incubator-mxnet/issues/12286 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to