def __init__(self, loss, **kwargs): self.supports_masking = True self.loss = objectives.get(loss) super(LossLayer, self).__init__(**kwargs)