Skip to main content

Feed forward layer implemented in Keras

Project description

Keras Position-Wise Feed Forward

Travis Coverage

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.

Files for keras-position-wise-feed-forward, version 0.4.0
Filename, size File type Python version Upload date Hashes
Filename, size keras-position-wise-feed-forward-0.4.0.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page