@application
    def cost(self, readouts, outputs):
        # WARNING: unfortunately this application method works
        # just fine when `readouts` and `outputs` have
        # different dimensions. Be careful!
        return self.softmax.categorical_cross_entropy(
            outputs, readouts, extra_ndim=2 - readouts.ndim)
dataset/ETHPy150Open rizar/attention-lvcsr/libs/blocks/blocks/bricks/sequence_generators.py/SoftmaxEmitter.cost/swapped operands of `-`