You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear sir:
I have read your code and I really appreciate your work.But I have get some questions.
self.register_buffer('mem_bias',torch.Tensor(N,M)) #mem_bias was used as buffer, which means it would not be update
self.memory =self.mem_bias.clone().repeat(batch_size,1,1) # self.memory was create using mem_bias to match the batch_size
for each batch, we run init_squence(),
which reset the memory,and the reset function ,
self.batch_size = batch_size
self.memory = self.mem_bias.clone().repeat(batch_size, 1, 1)
just clean all the content in the memory and initialize it with mem_bias.
So what's the point to write and read from memory ? it just be the same with mem_bias each batch and mem_bias is not updated which means it's never changed.
I think I just could not figure it out and I would readlly appreciate it if you could answer my question.
The text was updated successfully, but these errors were encountered:
I have read the code and I found that X have several length ,for each batch it have got several input.
It seems that the batch size is very import . But what could I do if the length of sequence is different when deal with NLP or audio sequence?
Dear sir:
I have read your code and I really appreciate your work.But I have get some questions.
which reset the memory,and the reset function ,
self.batch_size = batch_size
self.memory = self.mem_bias.clone().repeat(batch_size, 1, 1)
just clean all the content in the memory and initialize it with mem_bias.
So what's the point to write and read from memory ? it just be the same with mem_bias each batch and mem_bias is not updated which means it's never changed.
I think I just could not figure it out and I would readlly appreciate it if you could answer my question.
The text was updated successfully, but these errors were encountered: