Block.load_parameters

Block.load_parameters(self, filename, ctx=None, allow_missing=False, ignore_extra=False, cast_dtype=False, dtype_source='current')

Load parameters from file previously saved by save_parameters.

Parameters:
filename : str

Path to parameter file.

ctx : Context or list of Context, default cpu()

Context(s) to 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 Block.

cast_dtype : bool, default False

Cast the data type of the NDArray loaded from the checkpoint to the dtype provided by the Parameter if any.

dtype_source : str, default ‘current’

must be in {‘current’, ‘saved’} Only valid if cast_dtype=True, specify the source of the dtype for casting the parameters

References
———-
`Saving and Loading Gluon Models <https://mxnet.apache.org/api/python/docs/tutorials/packages/gluon/blocks/save_load_params.html>`_