As I want to implement a structure which is similar to the update gate of GRU:
ht = (1-zt)ht-1 + ztht
And I am trying to implement it with these code but it doesn't work. I am sure the problem are in the following code:
one = K.ones(shape=(1, len, 128))
zt=Subtract([one,zt])
temp_conv2=multiply([reset_conv,zt])
output=Add([temp_conv1,temp_conv2])
I have the following error:
AttributeError:'Tensor' object has no attribute '_keras_history'
I have already tried some other method such as using Lambda
layer but it doesn't work.