Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about batchsize and memory #20

Open
Tord-Zhang opened this issue Dec 24, 2018 · 0 comments
Open

Questions about batchsize and memory #20

Tord-Zhang opened this issue Dec 24, 2018 · 0 comments

Comments

@Tord-Zhang
Copy link

Hi, I get a little confused about the memory module.
The shape of the memory in your code is Batchsize x Memory_size x Slotsize(or vector_dim). So actually when the training process is finished, there are Batchsize memories generated, not just one memory.
That means, once the value of batchsize is changed, the memory changed, which seems make no sense.
During test process, the value of Batchsize should be the same with that in the training process. So what if I got a batch that contains N samples (N<Batchsize), which memory should each sample use?(when N = Batchsize, each sample use one memory).

The key problem, I think, is why there should be more than 1 memory?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant