It’s my misuse of softmax function. I just change the function to sigmoid function. And I think it is advisable to print the  output of every layer to see where the mistake happened. Maybe the initial weights , relu function, etc.