This file contains 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
import tensorflow.contrib.keras as keras | |
import tensorflow as tf | |
from keras.engine import Layer, InputSpec | |
from keras import regularizers, initializers, constraints | |
from keras import backend as K | |
class AttentionWithContext(Layer): |