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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c70c70626c97ed3044dc7932155e6f96102aa6bb9f938ec642026e358c7e176 |
|
MD5 | 356f3ded78ef3778622fe9f4d7304f64 |
|
BLAKE2b-256 | f6ad8a5fa597ed1c0fc483c36ff9340ff2a6481214fb8477dc9dd6b49dfce68f |