View source on GitHub
|
Constructs the Hessian of sum of ys with respect to x in xs.
tf.compat.v1.hessians(
ys,
xs,
name='hessians',
colocate_gradients_with_ops=False,
gate_gradients=False,
aggregation_method=None
)
hessians() adds ops to the graph to output the Hessian matrix of ys
with respect to xs. It returns a list of Tensor of length len(xs)
where each tensor is the Hessian of sum(ys).
The Hessian is a matrix of second-order partial derivatives of a scalar tensor (see https://en.wikipedia.org/wiki/Hessian_matrix for more details).
Returns | |
|---|---|
A list of Hessian matrices of sum(ys) for each x in xs.
|
Raises | |
|---|---|
LookupError
|
if one of the operations between xs and ys does not
have a registered gradient function.
|
View source on GitHub