# mxnet.symbol.Symbol.get_internals¶

Symbol.get_internals()[source]

Gets a new grouped symbol sgroup. The output of sgroup is a list of outputs of all of the internal nodes.

Consider the following code:

Example

>>> a = mx.sym.var('a')
>>> b = mx.sym.var('b')
>>> c = a + b
>>> d = c.get_internals()
>>> d
<Symbol Grouped>
>>> d.list_outputs()
['a', 'b', '_plus4_output']

Returns

sgroup – A symbol group containing all internal and leaf nodes of the computation graph used to compute the symbol.

Return type

Symbol