Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

LSTM and GRU in PyTorch

NotificationsYou must be signed in to change notification settings

emadRad/lstm-gru-pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository is an implementation of the LSTM and GRU cells without using the PyTorch LSTMCell and GRUCell.

It is tested on the MNIST dataset for classification.

The 28x28 MNIST images are treated as sequences of 28x1 vector.

The RNN consist of

  • A linear layer that maps 28-dimensional input to and 128-dimensional hidden layer
  • One intermediate recurrent neural network (LSTM or GRU)
  • A fully connected layer which maps the 128 dimensional input to 10-dimensional vector of class labels.

Requirements

Python>=3.5

PyTorch== 0.4.0

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp