bgawrych commented on issue #19430:
URL: 
https://github.com/apache/incubator-mxnet/issues/19430#issuecomment-717219270


   I don't know if you're using example from _cpp-package/example/resnet.cpp_, 
but I couldn't run this example - I fixed it by replacing
   `Xavier xavier = Xavier(Xavier::gaussian, Xavier::in, 2);`
   with:
   `Xavier xavier = Xavier(Xavier::gaussian, Xavier::out, 2);`
   First run worked fine and net was learning, but second run shows similar 
issue with yours.
   Probably it's problem with parameter initialization.
   I fixed it by replacing:
   ```
     //Xavier xavier = Xavier(Xavier::gaussian, Xavier::out, 2); <- Replace 
xavier with default Initializer
     Initializer init = Initializer();
     for (auto &arg : args_map) {
       std::cout << arg.first << std::endl;
       init(arg.first, &arg.second); // <- changed variable name
     }
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to