MXNet

API

 mxnet / mxnet.registry


mxnet.registry

Registry for serializable objects.

Functions

get_alias_func(base_class, nickname)

Get registrator function that allow aliases.

get_create_func(base_class, nickname)

Get creator function

get_register_func(base_class, nickname)

Get registrator function.

get_registry(base_class)

Get a copy of the registry.

mxnet.registry.get_alias_func(base_class, nickname)[source]

Get registrator function that allow aliases.

Parameters
  • base_class (type) – base class for classes that will be reigstered

  • nickname (str) – nickname of base_class for logging

Returns

Return type

a registrator function

mxnet.registry.get_create_func(base_class, nickname)[source]

Get creator function

Parameters
  • base_class (type) – base class for classes that will be reigstered

  • nickname (str) – nickname of base_class for logging

Returns

Return type

a creator function

mxnet.registry.get_register_func(base_class, nickname)[source]

Get registrator function.

Parameters
  • base_class (type) – base class for classes that will be reigstered

  • nickname (str) – nickname of base_class for logging

Returns

Return type

a registrator function

mxnet.registry.get_registry(base_class)[source]

Get a copy of the registry.

Parameters

base_class (type) – base class for classes that will be registered.

Returns

Return type

a registrator


此页内容是否对您有帮助