Is torch.quantile differentiable?

Hi,

Is the function torch.quantile differentiable? Can I use it in a custom loss function?

Thanks!

1 Like

Yep. If you want to check if something is differentiable you can just call it with a tensor that requires grad and it’ll spit out a warning if the function does not support autograd

1 Like

Very helpful, many thanks!

1 Like