I found it actually kind of nontrivial to test gradients of the dirichlet with finite differences, since the simplex condition means that it's impossible to perturb one element of the simplex vector without having to adjust all of the others. So I just manually checked for a couple of values against pytorch, but better ideas would be very welcome.
I found it actually kind of nontrivial to test gradients of the dirichlet with finite differences, since the simplex condition means that it's impossible to perturb one element of the simplex vector without having to adjust all of the others. So I just manually checked for a couple of values against pytorch, but better ideas would be very welcome.