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

Issues on "Train the model" of "Skip-instructions" #9

Closed
QLgogo opened this issue Sep 25, 2017 · 14 comments
Closed

Issues on "Train the model" of "Skip-instructions" #9

QLgogo opened this issue Sep 25, 2017 · 14 comments

Comments

@QLgogo
Copy link

QLgogo commented Sep 25, 2017

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!

@nhynes
Copy link

nhynes commented Sep 25, 2017

Apparently there's an issue with LookupTable ignoring that 0 is padding. Perhaps you might try replacing all instances of LookupTable with LookupTableMaskZero?

@QLgogo
Copy link
Author

QLgogo commented Sep 25, 2017

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
stack traceback:
[C]: in function '__init'
/home/yue_zhang/torch/install/share/lua/5.1/torch/init.lua:91: in function </home/yue_zhang/torch/install/share/lua/5.1/torch/init.lua:87>
[C]: in function 'LookupTableMaskZeroW2V'
...e/yue_zhang/Desktop/im2recipe/th-skip/model/Encoder.moon:4: in function '__init'
/home/yue_zhang/torch/install/share/lua/5.1/torch/init.lua:91: in function </home/yue_zhang/torch/install/share/lua/5.1/torch/init.lua:87>
[C]: in function 'Encoder'
/home/yue_zhang/Desktop/im2recipe/th-skip/model/ST.moon:8: (5) in function '__init'
/home/yue_zhang/torch/install/share/lua/5.1/torch/init.lua:91: in function </home/yue_zhang/torch/install/share/lua/5.1/torch/init.lua:87>
[C]: in function 'Model'
main.moon:32: (27) in main chunk

Do you have any idea? Thanks!

@nhynes
Copy link

nhynes commented Sep 25, 2017

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))

@QLgogo
Copy link
Author

QLgogo commented Sep 26, 2017

Hi nhynes, it works, thanks! Then I tried the codes:
'moon main.moon -dataset /home/yue_zhang/Desktop/im2recipe/th-skip/data/dataset.h5 -dim 1024 -nEncRNNs 2 -snapfile snaps/snapfile -savefreq 100 -batchSize 5 -w2v /home/yue_zhang/Desktop/im2recipe/data/text/vocab.bin'

The result is:
Train loss: 281.731 (0.59)
moon: /home/yue_zhang/Desktop/im2recipe/th-skip/drivers/snap.moon:12: (9) attempt to compare number with nil
stack traceback:
/home/yue_zhang/Desktop/im2recipe/th-skip/drivers/snap.moon:12: (9) in function 'cb'
main.moon:57: (71) in main chunk

Seemly it is trained successfully. Why do the errors occur?

@nhynes
Copy link

nhynes commented Sep 26, 2017

did you disable validation? If so, you'll need to make sure state.valLoss is set to something (see snap.moon:12, as suggested by the error message). I do recommend you create a held-out validation set, though. Skip-Thoughts are robust to overfitting, but they do after a while.

@QLgogo
Copy link
Author

QLgogo commented Sep 27, 2017

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?

@nhynes
Copy link

nhynes commented Sep 27, 2017

Make sure that your dataset.h5 contain a top-level key called val that contains similar looking--but (crucially) different data to train. If it's there and the fix didn't work, just try printing out the relevant values until you find the one that's nil!

@QLgogo
Copy link
Author

QLgogo commented Sep 28, 2017

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?
I do not know moonscript at all and cannot find any command to convert nil class on Google TT

@nhynes
Copy link

nhynes commented Sep 28, 2017

+ state.valLoss = 0
if canSave and state.valLoss <= state.bestLoss

It's a kludge, but it'll work.

@QLgogo
Copy link
Author

QLgogo commented Sep 29, 2017

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?

@nhynes
Copy link

nhynes commented Sep 29, 2017

Could you tell me how long the model will be trained for Skip-instructions?

It takes a few (maybe four) hours on a reasonably fast GPU.

replace image of partition "test" with my own images?

Yes, as long as the data have the same format, the pre-trained model should work.

@QLgogo QLgogo changed the title Issues in "Train the model" of "Skip-instructions" Issues on "Train the model" of "Skip-instructions" Oct 2, 2017
@nhynes
Copy link

nhynes commented Oct 2, 2017

tentatively marking as resolved

@cloverGithub
Copy link

Hi,
I encountered the same issue as raised in the thread and managed to resolve with the suggestions above.
However, when I run the next instruction "moon extract_encoder.moon ../snaps/snapfile.t7 encoder.t7 true", i encountered "moon: extract_encoder.moon:24: (21) attempt to index a nil value".
Any suggestion/advice? Thanks.

@nhynes
Copy link

nhynes commented Dec 5, 2018

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?

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

3 participants