carpedm20/NTM-tensorflow
carpedm20/NTM-tensorflow has 1,047 GitHub stars and 211 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-09 11:33 UTC. Last push 2017-05-18.
"Neural Turing Machine" in Tensorflow
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalNeural Turing Machine in Tensorflow
Tensorflow implementation of Neural Turing Machine. This implementation uses an LSTM controller. NTM models with multiple read/write heads are supported.

The referenced torch code can be found here.
** 1. Loss sometimes goes to nan even with the gradient clipping (#2).** ** 2. The code is very poorly design to support NTM inputs with variable lengths. Just use this code as a reference.**
Prerequisites
- Python 2.7 or Python 3.3+
- Tensorflow 1.1.0
- NumPy
Usage
To train a copy task:
$ python main.py --task copy --is_train True
To test a quick copy task:
$ python main.py --task copy --test_max_length 10
Results
More detailed results can be found [here](ipynb/NTM\ Test.ipynb).
Copy task:

Recall task:
(in progress)
Author
Taehoon Kim / @carpedm20
Explore related projects
tensorflow/tensorflow
An Open Source Machine Learning Framework for Everyone
201,427 starshuggingface/transformers
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
168,711 starsAUTOMATIC1111/stable-diffusion-webui
Stable Diffusion web UI
165,261 starsComfy-Org/ComfyUI
The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
145,835 stars