Derivative of tf.random_gamma with respect to the alpha parameter.
Previously, tf.random_gamma(shape, alpha, beta) was differentiable only w.r.t. beta. This commit adds the derivative w.r.t. alpha. The implementation is based on Eigen's gamma_sample_der_alpha function, which computes the "implicit reparameterization" derivative. This function is not directly exposed in the public TensorFlow API. PiperOrigin-RevId: 201258617
Loading
Please sign in to comment