Could you post an executable code snippet which would reproduce the issue?
Based on the error it seems as if you’ve overridden the state_dict method and might be missing an argument. However, you’ve also used the torchx category so I’m unsure if that’s specific to torchx or not.