Table Of Contents
Table Of Contents

mxnet.symbol.Symbol.list_attr

Symbol.list_attr(recursive=False)[source]

Gets all attributes from the symbol.

Example

>>> data = mx.sym.Variable('data', attr={'mood': 'angry'})
>>> data.list_attr()
{'mood': 'angry'}
Returns

ret – A dictionary mapping attribute keys to values.

Return type

Dict of str to str