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:
[email protected]


With regards,
Apache Git Services

Reply via email to