I am trying to make a density estimation of a sample of data to compute a divergence between probability distributions. I used torch.histc to histogram my data so I could very roughly approximate the pdf. However, upon backpropagating I receive the error:
“the derivative for “histc” is not implemented”
Does anyone know how to work around this so I could bin my data and normalize it to make this calculation differentiable?