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

register_buffer #1

Closed
Forbu opened this issue Feb 5, 2018 · 1 comment
Closed

register_buffer #1

Forbu opened this issue Feb 5, 2018 · 1 comment
Assignees

Comments

@Forbu
Copy link

Forbu commented Feb 5, 2018

I have an issue regarding the training, I launch the program I get :

KeyError: "attribute 'mem_bias' already exists"

It seems that you define 2 times mem_bias in memory.py :

self.mem_bias = Variable(torch.Tensor(N, M))
self.register_buffer('mem_bias', self.mem_bias.data)

It is perhaps a problem with the pytorch version (I have pytorch 0.3).

@loudinthecloud loudinthecloud self-assigned this Feb 8, 2018
@loudinthecloud
Copy link
Owner

Hi @Forbu , thanks for reporting 👍

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

2 participants