Skip to content

SequenceLoader issue #19

Description

@krudd

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?

Activity

  1. reopened this on Feb 2, 2017
  2. tastyminerals commented on Aug 4, 2017

    @tastyminerals

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions