malmaud / TensorFlow.jl

A Julia wrapper for TensorFlow
Other
882 stars 112 forks source link

Include hessians function #417

Open MSolodarenko opened 5 years ago

MSolodarenko commented 5 years ago

Why does "gradients" function is included, but "hessians" is not?

Can this function (https://www.tensorflow.org/api_docs/python/tf/hessians) be added as well?

Thanks!

oxinabox commented 5 years ago

gradients is included because it is required to make the optimizers for training.

Hessians would be nice to have. I've wanted it before. (Like gradients) there is no operator for it in libtensorflow. But it can be defined using gradients (and some other things like unpack or slicing etc).

I personally do not have time to add it right now. I'ld happily review a PR.