minGRU
Project description
minGRU
Implementation of the proposed minGRU in Pytorch, only the log-space numerically stable version.
Install
$ pip install minGRU-pytorch
Usage
import torch
from minGRU_pytorch import minGRU
min_gru = minGRU(512)
x = torch.randn(2, 1024, 512)
out = min_gru(x)
assert x.shape == out.shape
Citations
@inproceedings{Feng2024WereRA,
title = {Were RNNs All We Needed?},
author = {Leo Feng and Frederick Tung and Mohamed Osama Ahmed and Yoshua Bengio and Hossein Hajimirsadegh},
year = {2024},
url = {https://api.semanticscholar.org/CorpusID:273025630}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mingru_pytorch-0.0.2.tar.gz
(4.7 kB
view details)
Built Distribution
File details
Details for the file mingru_pytorch-0.0.2.tar.gz
.
File metadata
- Download URL: mingru_pytorch-0.0.2.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e433c8f1b10466d4ac0bf43936c9fa2351d75adf3aec6554a29ce55d86e1228e |
|
MD5 | 009f9fb769ff94e1ce12a7ae745582d5 |
|
BLAKE2b-256 | 73ab4ce8ef52fce52a02c8fda20436540d9bbf185882b6f2b454d345c01389ad |
File details
Details for the file mingru_pytorch-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: mingru_pytorch-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f49387269f6ca13e11293a5be9bda224c98d7aa355377a30dd1bf1d1e70eb8c5 |
|
MD5 | 9a2fe0f8ea120ad2b68e6108ea636968 |
|
BLAKE2b-256 | ed3e6ed3def2bb834425c392eff683eace9b568d585e463a25de8615fcb8214c |