def dumps(self):
        """
            Dump content into binary

        Returns:
            bytes
        """
        bin_dict = {}
        for k, m in self._module_dict.items():
            state_dict = m.state_dict()
            for key in state_dict:
                state_dict[key] = state_dict[key].cpu().numpy()
            bin_dict[k] = state_dict
        return U.serialize(bin_dict)

            Dump content into binary

        Returns:
            bytes
        
surreal/distributed/module_dict.py