更新时间:2021-11-25 21:49:41
现在考虑 tf.hessians,
Now consider tf.hessians,
tf.hessians(loss, f)
https://www.tensorflow.org/api_docs/python/tf/hessians
如何计算 Tensorflow 中的所有二阶导数(仅 Hessian 矩阵的对角线)?