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.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 106108e7c8d6559d56588ba623dc2e040efb83c8b139e567307f68a72b94f41e |
|
MD5 | b9470736fe435b72b59e4d538e55e7f5 |
|
BLAKE2b-256 | c6618e6b65883d9ca3882f6935b4183e93b3cfd41803c971d59d90b6e9c462d3 |