Log Softmax Transformation - Coding problem | OneNoughtOne