When to let go

How do you know when to let go of your relationship with your partner ? I mean I'm really considering but I still want it to work for the sake of our child but also because I still love him .... I don't know anymore I need help !!