Open FCInter opened 5 years ago
Hey, this is the MXNet Label Bot. Thank you for submitting the issue! I will try and suggest some labels so that the appropriate MXNet community members can help resolve it. Here are my recommended labels:
@mxnet-label-bot add [Python, Good first issue, bug]
me too ,version 1.3.1
The UpSampling function expects multiple inputs as data however one has to provide how many inputs are to be expected using the num_filter parameter. However the code suggests that it is only taken into consideration if sample_type is nearest unlike what the documentation says (http://mxnet.incubator.apache.org/versions/1.3.1/api/python/symbol/symbol.html#mxnet.symbol.UpSampling)
The current code for parameter parsing expects 2 inputs for bilinear and num_filter for nearest: https://github.com/apache/incubator-mxnet/blob/master/src/operator/nn/upsampling.cc#L127
@zhreshold could you take a look and see:
Description
I use
mx.symbol.UpSampling
. It reports error if I setsample_type
tonearest
. It works well if I setsample_type
tobilinear
. In particular, whensample_type='nearest'
, i.e., the code is as follows:out = mx.symbol.UpSampling(data=data,scale=16,sample_type='nearest')
It reports an error saying thatSymbol.ComposeKeyword argument name data not found
If I change the code as follows:out = mx.symbol.UpSampling(data,scale=16,sample_type='nearest')
i.e. I change thedata=data
todata
, it works well. However, if I setsample_type='bilinear'
, i.e.out = mx.symbol.UpSampling(data=data,scale=16,sample_type='bilinear')
No matter I usedata=data
ordata
for the first argument, no error is reported. I think this is a bug.Environment info (Required)
Package used (Python/R/Scala/Julia): Python
Build info (Required if built from source)
Compiler (gcc/clang/mingw/visual studio): gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609
Build config: I use pip install.
Error Message:
Minimum reproducible example
(If you are using your own code, please provide a short script that reproduces the error. Otherwise, please provide link to the existing example.)
This example is very small. I put all the examples in the description.