Sets the implementing class’ state to the given state dict.
If component keys are missing in state, these components of the implementing
class will not be updated/set.
- Parameters:
state (Dict[str, Any]) – The state dict to restore the state from. Maps component keys
to the corresponding subcomponent’s own state.