sponge.function.get_initializer

View Source On Gitee
sponge.function.get_initializer(cls_name: Union[Initializer, str, dict, Tensor], **kwargs)[source]

get initializer by name.

Parameters
  • cls_name (Union[Initializer, str, dict, Tensor]) – Class name of Initializer.

  • kwargs (dict) – Dictionary of keyword arguments (kwargs) of the class.

Returns

Initializer.

Supported Platforms:

Ascend GPU CPU