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.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 329e191ecb9b76fb205d3c242c102552ffbc0e96fc1798a6aa89028acce2eb49 |
|
MD5 | 6c5222e563832adb3cfd35b0cafbf27f |
|
BLAKE2b-256 | 91214eefba0b6ea01de9c6e469970a39dbdbce14e5183a20274d9a181f55eaa8 |