Ho, I added one None “randomly” just to make sure to return two things in the backward.
But if the forward  takes bin and x as input, then the backward should return the gradients wrt bin and gradients wrt to x.