You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/05/15 22:52:27 UTC

[GitHub] [incubator-mxnet] eric-haibin-lin commented on a change in pull request #14911: Use std::exception as the param in engine complete callback

eric-haibin-lin commented on a change in pull request #14911: Use std::exception as the param in engine complete callback
URL: https://github.com/apache/incubator-mxnet/pull/14911#discussion_r284482307
 
 

 ##########
 File path: include/mxnet/engine.h
 ##########
 @@ -74,15 +74,15 @@ class CallbackOnComplete {
  public:
   // use implicit copy and assign
   /*! \brief involve the callback */
-  inline void operator()(const dmlc::Error* error = nullptr) const {
+  inline void operator()(const std::exception* error = nullptr) const {
 
 Review comment:
   Is it possible to add a unit test? For example, purposely performing  `nd.ones((1,) + extremely_small_number` to cause `std::stof ` to fail? 

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services