mxnet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] anirudhacharya commented on issue #10145: Inconsistent outputs with mxnet symbol.softmax vs ndarray.softmax
Date Tue, 20 Mar 2018 03:09:32 GMT
anirudhacharya commented on issue #10145: Inconsistent outputs with mxnet symbol.softmax vs
ndarray.softmax
URL: https://github.com/apache/incubator-mxnet/issues/10145#issuecomment-374458182
 
 
   The mistake was in my code. In the following part, I should not have enclosed val in parentheses.
It adds an extra dimension to the input, hence the wrong results.
   ```python
   for idx, input_name in enumerate(data_names):
       val = inputs[idx]
       data_forward.append(mx.nd.array([val]))
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message