Is there a keras building function that do the same loss calculation as the function below ? if yes, please explain to me how to use it. Thank you. Explanation