guides/making_new_layers_and_models_via_subclassing.py/ActivityRegularizationLayer/call
class ActivityRegularizationLayer:    def call(self, inputs):
        self.add_loss(self.rate * ops.mean(inputs))
        return inputs