piiswrong commented on a change in pull request #10424: Improved error message
URL: https://github.com/apache/incubator-mxnet/pull/10424#discussion_r179637817
 
 

 ##########
 File path: python/mxnet/gluon/block.py
 ##########
 @@ -458,7 +458,11 @@ def _build_cache(self, *args):
                                 for name in out.list_inputs()]
 
     def _finish_deferred_init(self, hybrid, *args):
-        self.infer_shape(*args)
+        try:
+            self.infer_shape(*args)
+        except Exception:
 
 Review comment:
   overly broad

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


With regards,
Apache Git Services

Reply via email to