xnn.hybnn.models.byteff_foundation.convert_state_dict#

xnn.hybnn.models.byteff_foundation.convert_state_dict(state)[source]#

Map a released state dict onto one ensemble member of the xnn model.

Parameters:

state (dict of str to Tensor) – The released network’s model_state_dict.

Returns:

Weights keyed relative to members.<m> of the xnn model.

Return type:

dict of str to Tensor

Raises:

KeyError – For a parameter with no counterpart.