Table Of Contents
Table Of Contents


ParameterDict.load(filename, ctx=None, allow_missing=False, ignore_extra=False, restore_prefix='')[source]

Load parameters from file.

  • filename (str) – Path to parameter file.

  • ctx (Context or list of Context) – Context(s) initialize loaded parameters on.

  • allow_missing (bool, default False) – Whether to silently skip loading parameters not represents in the file.

  • ignore_extra (bool, default False) – Whether to silently ignore parameters from the file that are not present in this ParameterDict.

  • restore_prefix (str, default '') – prepend prefix to names of stored parameters before loading.