Closed sandeeppandey456 closed 3 years ago
@sandeeppandey456 You can take a look at the layers folder in my project. They are purely implemented in Keras. https://github.com/ParikhKadam/bidaf-keras
Most of these layers work on 3D outputs. I think the best code for you will be this: https://github.com/ParikhKadam/bidaf-keras/blob/master/bidaf/layers/similarity_layer.py
I am trying to implement a layer in keras which takes a 2D/3D tensor as input, perform some tensor transformations and gives a 2D/3D tensor as output. The output size is to be given as the input too. There will be trainable weights in the layer too. Please help