Ala http://mathinsight.org/directional_derivative_gradient_examples Use the amplitude of normal gradient values same as in https://github.com/Elucidation/tensorflow_chessbot/blob/master/tensorflow_compvision.ipynb