PistonY commented on issue #14762: How to make nn.HybridSequential handel multiple input/output layer?(Gluon) URL: https://github.com/apache/incubator-mxnet/issues/14762#issuecomment-485625320 I inherit `HybridSequential` to fix this. ```python class DP_Sequential(nn.HybridSequential): def __init__(self, prefix=None, params=None): super(DP_Sequential, self).__init__(prefix=prefix, params=params) def hybrid_forward(self, F, x1, x2): for block in self._children.values(): x1, x2 = block(x1, x2) return x1, x2 ```
---------------------------------------------------------------- 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
