How can I make TensorFlow 2.0 handle piecewise gradients (e.g. across `tf.gather`)?
I'm attempting to leverage TensorFlow 2.0's automatic differentiation to automate the calculation of certain gradients on financial instruments. Generally this involves a piecewise interpolation sc...