MXNet

API

 mxnet / mxnet.attribute


mxnet.attribute

Attribute scoping support for symbolic API.

Classes

AttrScope(**kwargs)

Attribute manager for scoping.

class mxnet.attribute.AttrScope(**kwargs)[source]

Bases: object

Attribute manager for scoping.

User can also inherit this object to change naming behavior.

Parameters

kwargs – The attributes to set for all symbol creations in the scope.

Methods

get(attr)

Get the attribute dict given the attribute set by the symbol.

get(attr)[source]

Get the attribute dict given the attribute set by the symbol.

Parameters

attr (dict of string to string) – The attribute passed in by user during symbol creation.

Returns

attr – Updated attributes to add other scope related attributes.

Return type

dict of string to string


此页内容是否对您有帮助