Sparse Categorical Cross Entropy Loss Function Implementation