how to compute the joint-histogram between two tensor in pytorch?
i know there is a func: torch.histc() to compute the histogram, but i also want to use the joint-histogram to calculate the mutual information for loss-backward, can anyone implement this code?