@classmethod
def deserialize(cls, serialized):
    """Deserializes from the Protobuf format.
        """
    if serialized.WhichOneof('layer_data') == 'hard_tanh_data':
        return cls()
    return None
