modelzoo.common.pytorch.model_utils.create_initializer.create_initializer#
- modelzoo.common.pytorch.model_utils.create_initializer.create_initializer(spec)[source]#
Creates the specified initializer.
- Parameters
spec (dict/str) – either a string indicating the name of the initializer or a dict that includes the name + other params if relevant.
seed (int) – random seed for the initializer or None to run unseeded.
- Returns
initializer that can be passed to layers