You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by gi...@git.apache.org on 2017/09/27 04:00:37 UTC

[GitHub] piiswrong commented on a change in pull request #8050: fix symbolblock

piiswrong commented on a change in pull request #8050: fix symbolblock
URL: https://github.com/apache/incubator-mxnet/pull/8050#discussion_r141240150
 
 

 ##########
 File path: python/mxnet/gluon/block.py
 ##########
 @@ -487,8 +487,8 @@ def __init__(self, outputs, inputs, params=None):
         self._params = ParameterDict('', params)
         if isinstance(inputs, symbol.Symbol) and len(inputs.list_outputs()) == 1:
             inputs = [inputs]
-        if isinstance(outputs, symbol.Symbol) and len(outputs.list_outputs()) == 1:
-            outputs = [outputs]
+        if isinstance(outputs, (list, tuple)) and len(outputs) == 1:
+            outputs = outputs[0]
 
 Review comment:
   That's a different matter. This is block
 
----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services