fec458e78428cdf828701d5233107aac3664b3cf,t3f/autodiff.py,,hessian_vector_product,#Any#Any#Any#Any#Any#,110
Before Change
right = decompositions.orthogonalize_tt_cores(left, left_to_right=False)
deltas = [right.tt_cores[0]]
deltas += [tf.zeros_like(cc) for cc in right.tt_cores[1:]]
x_projection = riemannian.deltas_to_tangent_space(deltas, x, left, right)
function_value = func(x_projection)
if runtime_check:
assert_op = _is_invariant_to_input_transforms(function_value, func(x))
else:
assert_op = tf.no_op()
After Change
products = [tf.reduce_sum(a * b) for a, b in zip(cores_grad, vec_deltas)]
return tf.add_n(products)
_, second_cores_grad = value_and_grad(augmented_outer_func, deltas)
final_deltas = _enforce_gauge_conditions(second_cores_grad, left)
return riemannian.deltas_to_tangent_space(final_deltas, x, left, right)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: Bihaqo/t3f
Commit Name: fec458e78428cdf828701d5233107aac3664b3cf
Time: 2019-11-21
Author: sasha.v.novikov@gmail.com
File Name: t3f/autodiff.py
Class Name:
Method Name: hessian_vector_product
Project Name: flow-project/flow
Commit Name: 6a98de289a02db6bd0c715affac9242a52c633e3
Time: 2019-06-10
Author: akreidieh@gmail.com
File Name: flow/visualize/time_space_diagram.py
Class Name:
Method Name: get_time_space_data
Project Name: Bihaqo/t3f
Commit Name: fec458e78428cdf828701d5233107aac3664b3cf
Time: 2019-11-21
Author: sasha.v.novikov@gmail.com
File Name: t3f/autodiff.py
Class Name:
Method Name: gradients
Project Name: tensorflow/tpu
Commit Name: 546866f67f0674e52fa76547e98380ba51921b8c
Time: 2019-10-08
Author: power@google.com
File Name: models/official/mobilenet/inception_preprocessing.py
Class Name:
Method Name: apply_with_random_selector