-
Notifications
You must be signed in to change notification settings - Fork 89
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
Issues on "Train the model" of "Skip-instructions" #9
Comments
Apparently there's an issue with |
Thanks nhynes. I replace 'LookupTable' with 'LookupTableMaskZero' for all files in ../th-skip/model, now the error becomes: moon: /home/yue_zhang/torch/install/share/lua/5.1/torch/init.lua:91: inconsistent tensor size, expected tensor [19999 x 300] and src [19998 x 300] to have the same number of elements, but got 5999700 and 5999400 elements respectively at /tmp/luarocks_torch-scm-1-3467/torch7/lib/TH/generic/THTensorCopy.c:86 Do you have any idea? Thanks! |
Not quite ;) Try changing, in LookupTableW2V, -LookupTableW2V, parent = torch.class('nn.LookupTableW2V', 'nn.LookupTable')
+LookupTableW2V, parent = torch.class('nn.LookupTableW2V', 'nn.LookupTableMaskZero') and - @weight\sub(nRandInit+1, -1)\copy(w2v\sub(1, nWordsW2V))
+ @weight\sub(nRandInit+2, -1)\copy(w2v\sub(1, nWordsW2V)) |
Hi nhynes, it works, thanks! Then I tried the codes: The result is: Seemly it is trained successfully. Why do the errors occur? |
did you disable validation? If so, you'll need to make sure |
No really, I did not disable validation. By now all the codes I run are fully same as yours except for 'batchSize', 'savefreq' to avoid 'out of memory' error. I checked layer1.json file, there are already image with "partition": "val". What do you mean to create a held-out validation set? |
Make sure that your |
I checked "dataset.h5". It contains top-level key "train","test","val". The problem should lie in snap.moon:12. The classes of canSave and state.valLoss are both nil but the class of state.bestLoss is a number. nil class cannot compare with number class. Can I convert the nil class into number class? |
+ state.valLoss = 0
if canSave and state.valLoss <= state.bestLoss It's a kludge, but it'll work. |
Thank you nhynes. It is trained now. Could you tell me how long the model will be trained for Skip-instructions? Btw, I want to use my own image data as test data. Just want to clarify. What I need to do is to produce my own data.h5 (replace image of partition "test" with my own images?) and then use the pre-trained model, right? |
It takes a few (maybe four) hours on a reasonably fast GPU.
Yes, as long as the data have the same format, the pre-trained model should work. |
tentatively marking as resolved |
Hi, |
Have you tried using the pytorch version of this repo? Torch7 has long since been deprecated, I'm afraid. Perhaps you might find this post helpful? |
I followed all the steps on the Github webpage, but when run "moon main.moon ..." from "Skip-instructions", I encountered the following errors:
/tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [32,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [33,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [34,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [35,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [36,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [37,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [38,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [39,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [40,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [41,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [42,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [43,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [44,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [45,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [46,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [47,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [48,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [49,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [50,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [51,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [52,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [53,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [54,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [55,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [56,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [57,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [58,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [59,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [60,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [61,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [62,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [63,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [0,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [1,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [2,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [3,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [4,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [5,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [6,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [7,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [8,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [9,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [10,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [11,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [12,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [13,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [14,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [15,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [16,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [17,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [18,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [19,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [20,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [21,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [22,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [23,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [24,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [25,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [26,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [27,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [28,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [29,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [30,0,0] Assertion
srcIndex < srcSelectDimSize
failed./tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/THCTensorIndex.cu:321: void indexSelectLargeIndex(TensorInfo<T, IndexType>, TensorInfo<T, IndexType>, TensorInfo<long, IndexType>, int, int, IndexType, IndexType, long) [with T = float, IndexType = unsigned int, DstDim = 2, SrcDim = 2, IdxDim = -2]: block: [158,0,0], thread: [31,0,0] Assertion
srcIndex < srcSelectDimSize
failed.THCudaCheck FAIL file=/tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/generic/THCStorage.cu line=66 error=59 : device-side assert triggered
moon: ...ue_zhang/torch/install/share/lua/5.1/threads/threads.lua:179: [thread 3 endcallback] ...e/yue_zhang/torch/install/share/lua/5.1/nn/Container.lua:67:
In 2 module of nn.Sequential:
..._zhang/Desktop/im2recipe/th-skip/model/ContextTable.moon:19: cuda runtime error (59) : device-side assert triggered at /tmp/luarocks_cutorch-scm-1-4200/cutorch/lib/THC/generic/THCStorage.cu:66
stack traceback:
[C]: in function 'resize'
..._zhang/Desktop/im2recipe/th-skip/model/ContextTable.moon:19: in function <..._zhang/Desktop/im2recipe/th-skip/model/ContextTable.moon:6>
[C]: in function 'xpcall'
...e/yue_zhang/torch/install/share/lua/5.1/nn/Container.lua:63: in function 'rethrowErrors'
.../yue_zhang/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'forward'
...e/yue_zhang/Desktop/im2recipe/th-skip/model/Decoder.moon:41: in function 'forward'
/home/yue_zhang/Desktop/im2recipe/th-skip/model/ST.moon:32: in function 'forward'
...e/yue_zhang/Desktop/im2recipe/th-skip/drivers/train.moon:39: in function <...e/yue_zhang/Desktop/im2recipe/th-skip/drivers/train.moon:35>
[C]: in function 'xpcall'
...ue_zhang/torch/install/share/lua/5.1/threads/threads.lua:174: in function 'dojob'
...ue_zhang/torch/install/share/lua/5.1/threads/threads.lua:223: in function 'train'
main.moon:66: in function 'moonscript_chunk'
...h/install/lib/luarocks/rocks/moonscript/0.5.0-1/bin/moon:86: in function <...h/install/lib/luarocks/rocks/moonscript/0.5.0-1/bin/moon:84>
[C]: in function 'xpcall'
...h/install/lib/luarocks/rocks/moonscript/0.5.0-1/bin/moon:99: in function <...h/install/lib/luarocks/rocks/moonscript/0.5.0-1/bin/moon:47>
[C]: at 0x00405d50
WARNING: If you see a stack trace below, it doesn't point to the place where this error occurred. Please use only the one above.
stack traceback:
[C]: in function 'error'
...e/yue_zhang/torch/install/share/lua/5.1/nn/Container.lua:67: in function 'rethrowErrors'
.../yue_zhang/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'forward'
...e/yue_zhang/Desktop/im2recipe/th-skip/model/Decoder.moon:41: in function 'forward'
/home/yue_zhang/Desktop/im2recipe/th-skip/model/ST.moon:32: in function 'forward'
...e/yue_zhang/Desktop/im2recipe/th-skip/drivers/train.moon:39: in function <...e/yue_zhang/Desktop/im2recipe/th-skip/drivers/train.moon:35>
[C]: in function 'xpcall'
...ue_zhang/torch/install/share/lua/5.1/threads/threads.lua:174: in function 'dojob'
...ue_zhang/torch/install/share/lua/5.1/threads/threads.lua:223: in function 'train'
main.moon:66: in function 'moonscript_chunk'
...h/install/lib/luarocks/rocks/moonscript/0.5.0-1/bin/moon:86: in function <...h/install/lib/luarocks/rocks/moonscript/0.5.0-1/bin/moon:84>
[C]: in function 'xpcall'
...h/install/lib/luarocks/rocks/moonscript/0.5.0-1/bin/moon:99: in function <...h/install/lib/luarocks/rocks/moonscript/0.5.0-1/bin/moon:47>
[C]: at 0x00405d50
stack traceback:
[C]: in function 'error'
...ue_zhang/torch/install/share/lua/5.1/threads/threads.lua:179: in function 'dojob'
...ue_zhang/torch/install/share/lua/5.1/threads/threads.lua:223: in function 'train'
main.moon:54: (66) in main chunk
I tried to enlarge the 'vocabSize' from 20000 to 30000, but still cannot solve this problem. Anyone idea will be appreciated very much. Thanks!
The text was updated successfully, but these errors were encountered: