Relative Content

Tag Archive for pythontensorflowtensorflow2.0

Why are my tensorflow gradients None when using tf.python.ops.gradients?

I am struggling with tensorflow gradients. I am using a custom second order optimizer where I need to compute hessians. The library I have chosen uses tf.python.ops.gradients instead of the standard tape.gradients(…). Running the below script raises a value error (gradients are None):