This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from keras.layers.core import Layer | |
| from keras import initializers, regularizers, constraints | |
| from keras import backend as K | |
| class Attention(Layer): | |
| def __init__(self, | |
| kernel_regularizer=None, bias_regularizer=None, | |
| kernel_constraint=None, bias_constraint=None, | |
| use_bias=True, **kwargs): | |
| """ |