ixaxaar / pytorch-dnc

Differentiable Neural Computers, Sparse Access Memory and Sparse Differentiable Neural Computers, for Pytorch
MIT License
335 stars 56 forks source link

Store entire memory after memory limit is reached #24

Closed ixaxaar closed 6 years ago

ixaxaar commented 6 years ago
hidden['indexes'][batch].add(hidden['memory'][batch], last=pos[batch][-1])

stores memory till least recently used position even after memory is full and the least recently used position is reset.