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

SequenceLoader issue #19

Open
krudd opened this issue Feb 2, 2017 · 1 comment
Open

SequenceLoader issue #19

krudd opened this issue Feb 2, 2017 · 1 comment

Comments

@krudd
Copy link

krudd commented Feb 2, 2017

SequenceLoader seems to only work when the size of the input is 1. I seem to get errors with the following line:
self.data = sequence:sub(1,seqlen2*batchsize):view(batchsize, seqlen2):t():contiguous()

In particular, view does not work because of the missing data size. Is there a quick fix?

@krudd krudd closed this as completed Feb 2, 2017
@krudd krudd reopened this Feb 2, 2017
@tastyminerals
Copy link

tastyminerals commented Aug 4, 2017

SequenceLoader works fine for me. It works with sequential data, for example torch.IntTensor of size 188946, notice no additional dimensions here. Check your input dims first, if it is different, you'll have to implement something custom, concretely you'll need to modify the last line for self.data var in SequenceLoader.__init function.

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