Skip to main content

A PyTorch implementation of Comfi-FastGRNN

Project description

comfi-fast-grnn-torch

Implements Comfi-FastGRNN in torch.

Usage

The ComfiFastGRNN module is designed to be a drop-in replacement for standard PyTorch RNN layers (like nn.LSTM or nn.GRU), but with added support for low-rank factorization and complementary filtering.

Basic Implementation

Here is how to use the layer with default settings in a standard training loop:

import torch
from comfi_fast_grnn_torch import ComfiFastGRNN 

comfi_fgrnn = ComfiFastGRNN(
    input_size=32, 
    hidden_size=64, 
    num_layers=1
)

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_torch-0.0.3.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_torch-0.0.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file comfi_fast_grnn_torch-0.0.3.tar.gz.

File metadata

  • Download URL: comfi_fast_grnn_torch-0.0.3.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for comfi_fast_grnn_torch-0.0.3.tar.gz
Algorithm Hash digest
SHA256 b71dd23f97927dd8effc7a858680ecdbeccc7a8bbb8f8e0e8f6bd255d43ef80b
MD5 d4afdd6533427e18a230f2cff5354e1b
BLAKE2b-256 d1e81a6872d736e73dbf4b056bab4e59d960b464756ec4d69932294e29be6a5c

See more details on using hashes here.

File details

Details for the file comfi_fast_grnn_torch-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for comfi_fast_grnn_torch-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 882e70baa5ae07cde4eac6e8ad5f1a1c64d3caadd92b468b62cfda6d34b9b720
MD5 f3bf2f0f91017d7358feadfa0b7a8056
BLAKE2b-256 59b2982936ae82f8d0ca2106d8247a4e029c2e644d6cdb3806ea157df1fa9f93

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