(self, input_energy, mask, **kwargs)
return logZ[:, 0]
Compute logarithm of the normalization constance Z, where
        Z = sum exp(-E) -> logZ = log sum exp(-E) =: -nlogZ
Compute logarithm of the normalization constance Z, where
        Z = sum exp(-E) -> logZ = log sum exp(-E) =: -nlogZ
Compute logarithm of the normalization constance Z where Z = sum exp ( - E ) - > logZ = log sum exp ( - E ) = : - nlogZ
def get_log_normalization_constant(self, input_energy, mask, **kwargs):
        """Compute logarithm of the normalization constance Z, where
        Z = sum exp(-E) -> logZ = log sum exp(-E) =: -nlogZ
        """
        # should have logZ[:, i] == logZ[:, j] for any i, j
        logZ = self.recursion(input_energy, mask, return_sequences=False, **kwargs)
        return logZ[:, 0]
def get_log_normalization_constant ( self , input_energy , mask , * * kwargs ) : # should have logZ[:, i] == logZ[:, j] for any i, j logZ = self . recursion ( input_energy , mask , return_sequences = False , * * kwargs ) return logZ [ : , 0 ]