Skip to main content

A PyTorch implementation of Fast ULCNet

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.1.tar.gz (4.3 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.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for comfi_fast_grnn_tensorflow-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ade9d4af6939dadc378c13475834ae9226b748391d5c0ffd287fbb729552bd52
MD5 2177dc06598b1b58f826013bd3e9ac5a
BLAKE2b-256 27592b37db18680ff53aecfcf3a6f8923085cba015178fd0ce565c09b3676802

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for comfi_fast_grnn_tensorflow-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 107c1fc91ece80d7030bd7fef910178e34d354a169325807e434317e1d9186fa
MD5 c848545e1476ae05f6b68ac6b356deba
BLAKE2b-256 1d6a5bb79d432fd77cd5ff07dbe149a492fdfbe87531f71f6a36997727c957e6

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