Closed llv22 closed 3 years ago
Welcome to Apache MXNet (incubating)! We are on a mission to democratize AI, and we are glad that you are contributing to it by opening this issue. Please make sure to include all the relevant context, and one of the @apache/mxnet-committers will be here shortly. If you are interested in contributing to our project, let us know! Also, be sure to check out our guide on contributing to MXNet and our development guides wiki.
Hi @llv22 , SoftmaxOutput
has been deprecated in MXNet 2.0 (the master branch, https://github.com/apache/incubator-mxnet/pull/18531).
In order to use SoftmaxOutput
, you can use MXNet 1.x (the branch v1.x, https://github.com/apache/incubator-mxnet/tree/v1.x)
@wkcn So if moving to v2.0, any suggestions?I mean, any alternative for it? Could you post a reference of migration?
@llv22 you can use mx.npx.softmax
for the same.
I think what you need is https://mxnet.apache.org/versions/1.6/api/python/docs/api/gluon/loss/index.html, however, as wkcn said, you should use v1.x branch instead.
mx.npx.softmax
>> import mxnet as mx >> print(mx.__version__) 2.0.0
cd example/kaggle-ndsb1
python train_dsb.py
Traceback (most recent call last):
File "/p/mxnet-git/example/kaggle-ndsb1/train_dsb.py", line 64, in
@AlexandrParkhomenko npx.softmax is intended for ndarray only. If you are still using symbol, you can use mx.sym.softmax
Description
build mxnet with gpu on ubuntu 16.04 and found the aforementioned issue. I use master branch to build mxnet and installed mxnet in my local, build code as follow:
Error Message
(Paste the complete error message. Please also include stack trace by setting environment variable
DMLC_LOG_STACK_TRACE_DEPTH=10
before running your script.)AttributeError Traceback (most recent call last)