Below is my code:
class AttentionOnDims(Layer): def __init__(self, **kwargs): self.dim = None self.kernel = None self.built = True