For custom grad_samplers or functorch-based implementation
For custom grad_samplers or functorch-based implementation