Feed forward layer implemented in Keras
Project description
Keras Position-Wise Feed Forward
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()
feed_forward_layer = FeedForward()(input_layer)
model = keras.models.Model(inputs=input_layer, outputs=feed_forward_layer)
model.compile(optimizer='adam', loss='mse', metrics={})
model.summary()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for keras-position-wise-feed-forward-0.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ef41842a48d127981713995874ae6a475d24ab0f3d4edbf49fbf6a4b246e774 |
|
MD5 | 00d9459a5d222c341eb2d14236d353b1 |
|
BLAKE2b-256 | 51a8b9dec35117d0fb16d07bd8c216540c4ab42e93dd3d9ca43345cb01bbdc3f |