I am facing some errors, while using these loss functions. so please explain me, when to use these loss functions and with the output layer units.