mxnet.symbol.Symbol.get_children¶
-
Symbol.
get_children
()[source]¶ Gets a new grouped symbol whose output contains inputs to output nodes of the original symbol.
Example
>>> x = mx.sym.Variable('x') >>> y = mx.sym.Variable('y') >>> z = mx.sym.Variable('z') >>> a = y+z >>> b = x+a >>> b.get_children() <Symbol Grouped> >>> b.get_children().list_outputs() ['x', '_plus10_output'] >>> b.get_children().get_children().list_outputs() ['y', 'z']
- Returns
sgroup – The children of the head node. If the symbol has no inputs then
None
will be returned.- Return type
Symbol or None