Skip to main content

A Tensorflow implementation of Comfi-FastGRNN

Project description

fast-ulcnet-tensorflow

Implements Comfi-FastGRNN in tensorflow.

Usage

You can use the ComfiFastGRNN layer just like any standard Keras RNN layer (e.g., LSTM, GRU). It supports the Sequential and Functional APIs.

Basic Implementation

The simplest way to use the layer with default settings:

import tensorflow as tf
from comfi_fast_grnn_tensorflow import ComfiFastGRNN  

# Define a Sequential model
model = tf.keras.Sequential([
    # Input shape: (Timesteps, Features)
    tf.keras.layers.Input(shape=(100, 32)), 
    
    # Comfi-FastGRNN layer
    ComfiFastGRNN(
        units=64, 
        return_sequences=False
    ),
    
    tf.keras.layers.Dense(10, activation='softmax')
])

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

comfi_fast_grnn_tensorflow-0.0.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

comfi_fast_grnn_tensorflow-0.0.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file comfi_fast_grnn_tensorflow-0.0.2.tar.gz.

File metadata

File hashes

Hashes for comfi_fast_grnn_tensorflow-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2b8f1c743d521bbda4a18996bfc9acda5581597a0500776b4c6f15e816fc8abe
MD5 4be7e180240f400fd3d2a33863c0b8c0
BLAKE2b-256 4f64e9f98e727b82d3c4aff2a65124729e5027f4383c5caf6b951931115fc5a8

See more details on using hashes here.

File details

Details for the file comfi_fast_grnn_tensorflow-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for comfi_fast_grnn_tensorflow-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 affdf7a1a9b36ffac6bac3be22f21cf2a877e52b90e5c215bfa00c797e6a93e3
MD5 34ea63ca5dfd5a9a64daa4db33d7810c
BLAKE2b-256 104c8a397a4f4959a0c4fd575406bc8644b0c35f5bfd56f00353289ead649cf8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page