isl-org / Open3D-ML

An extension of Open3D to address 3D Machine Learning tasks
Other
1.88k stars 321 forks source link

LookupError: gradient registry has no entry for: Open3DReduceSubarraysSum #568

Open dfldylan opened 2 years ago

dfldylan commented 2 years ago

Checklist

My Question

When I use ops.Open3DReduceSubarraysSum in my tensorflow project, I got a error "LookupError: gradient registry has no entry for: Open3DReduceSubarraysSum", What should I do?

v-parmar commented 1 year ago

Hey @dfldylan, This error message is indicating that TensorFlow's gradient registry does not have a registered gradient function for the Open3DReduceSubarraysSum operation, which means that TensorFlow cannot automatically compute the gradient of this operation during the backpropagation phase of training.

I have two approaches, you can try one of the following:

  1. Implement a custom gradient function for Open3DReduceSubarraysSum and register it in TensorFlow's gradient registry.

  2. If you don't need the gradient of Open3DReduceSubarraysSum during training, you can wrap this operation with tf.stop_gradient to prevent TensorFlow from trying to compute its gradient.