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/07/31 22:27:10 UTC

[GitHub] [incubator-mxnet] reminisce commented on a change in pull request #15581: Numpy-compatible Infra

reminisce commented on a change in pull request #15581: Numpy-compatible Infra
URL: https://github.com/apache/incubator-mxnet/pull/15581#discussion_r309457873
 
 

 ##########
 File path: python/mxnet/gluon/utils.py
 ##########
 @@ -430,3 +432,44 @@ def shape_is_known(shape):
         assert dim_size > unknown_dim_size, "shape dimension size cannot be less than {}, while " \
                                             "received {}".format(unknown_dim_size, dim_size)
     return True
+
+
+def _check_same_symbol_type(symbols):
+    """Check whether all the symbols in the list are of the same type.
+    Raise type error if the types are different. Return the class of
+    the symbols."""
+    from ..symbol.numpy import _Symbol as np_symbol
+    from ..symbol import Symbol as nd_symbol
+    is_np_sym = bool(isinstance(symbols[0], np_symbol))
 
 Review comment:
   If I remember it correctly, seems it's added intentionaly for passing CI failure caused by different python versions, but my memory may be wrong...

----------------------------------------------------------------
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