I am new to KL Divergence Loss (and indeed all similar comparisons between discrete series data). The output of my network produces a series of tuples of a length that varies during training. The target data series' size is always steady.
Is there a way to perform a comparison between the two sets, despite the fact that they probably do not have the same sizes most of the time? I was planning to implement an extra loss component penalising for the size difference, but am not sure how to do the actual comparison between elements.