xnn.common.models.constants.exact_constants_after_load#
- xnn.common.models.constants.exact_constants_after_load(module, incompatible_keys)[source]#
load_state_dictpost-hook: a float32 checkpoint brings rounded constants.Register it with
module.register_load_state_dict_post_hook; it callsexact_float64_constants()onmodule.- Parameters:
module (Module)
- Return type:
None