No! because there is no option in defending yourself!
How are going to decide to forgive the person during his mortal attack towards you and his/her intent to kill you!
But when you have the choice to opt to whether or not to take revenge afterwards in your situation in which you had explained in earlier responses then it is sin!!!!!!!
You have the ability to forgive in your case, you are not defending yourself you are taking revenge!!!