Skip to content

jwang1993/keras-position-wise-feed-forward

 
 

Repository files navigation

Keras Position-Wise Feed Forward

Travis Coverage Version Downloads License

Implementation of position-wise feed forward layer in the paper: Attention is All You Need

Install

pip install keras-position-wise-feed-forward

Usage

import keras
from keras_position_wise_feed_forward import FeedForward

input_layer = keras.layers.Input(shape=(None, 32))
feed_forward_layer = FeedForward(units=128)(input_layer)
model = keras.models.Model(inputs=input_layer, outputs=feed_forward_layer)
model.compile(optimizer='adam', loss='mse')
model.summary()

About

Feed forward layer implemented in Keras

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.3%
  • Shell 2.7%