Entropy regularizer adapter using NxPenalties.
:mode controls whether entropy is encouraged (:maximize) or discouraged
(:minimize). The adapter maps these to NxPenalties' :penalty/:bonus
modes so the returned tensor can be used directly as a loss term.