http://davidstutz.de/implementing-tensorflow-operations-in-c-including-gradients/
http://www.cnblogs.com/rocketfan/p/5201593.html
https://stackoverflow.com/questions/39048984/tensorflow-how-to-write-op-with-gradient-in-python
https://github.com/tensorflow/tensorflow/tree/r1.3/tensorflow/examples/adding_an_op
https://www.tensorflow.org/extend/adding_an_op#implement_the_gradient_in_python