xnn.common.models.constants.exact_constants_after_load#

xnn.common.models.constants.exact_constants_after_load(module, incompatible_keys)[source]#

load_state_dict post-hook: a float32 checkpoint brings rounded constants.

Register it with module.register_load_state_dict_post_hook; it calls exact_float64_constants() on module.

Parameters:

module (Module)

Return type:

None