{"action":"created","issue":{"url":"https://api.github.com/repos/miyyer/scpn/issues/7","repository_url":"https://api.github.com/repos/miyyer/scpn","labels_url":"https://api.github.com/repos/miyyer/scpn/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/miyyer/scpn/issues/7/comments","events_url":"https://api.github.com/repos/miyyer/scpn/issues/7/events","html_url":"https://github.com/miyyer/scpn/issues/7","id":379107286,"node_id":"MDU6SXNzdWUzNzkxMDcyODY=","number":7,"title":"RuntimeError: cuda runtime error (59)","user":{"login":"kj-lai","id":34180949,"node_id":"MDQ6VXNlcjM0MTgwOTQ5","avatar_url":"https://avatars0.githubusercontent.com/u/34180949?v=4","gravatar_id":"","url":"https://api.github.com/users/kj-lai","html_url":"https://github.com/kj-lai","followers_url":"https://api.github.com/users/kj-lai/followers","following_url":"https://api.github.com/users/kj-lai/following{/other_user}","gists_url":"https://api.github.com/users/kj-lai/gists{/gist_id}","starred_url":"https://api.github.com/users/kj-lai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kj-lai/subscriptions","organizations_url":"https://api.github.com/users/kj-lai/orgs","repos_url":"https://api.github.com/users/kj-lai/repos","events_url":"https://api.github.com/users/kj-lai/events{/privacy}","received_events_url":"https://api.github.com/users/kj-lai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-09T10:32:35Z","updated_at":"2018-11-29T08:15:50Z","closed_at":null,"author_association":"NONE","body":"Hi @miyyer,\r\n\r\nI had ran `demo.sh` with pytorch 0.4.0 in both python 2.7 &  3.6, GPU usage is about 1.4Gb, both give me the error:\r\n\r\n`/pytorch/aten/src/THC/THCTensorIndex.cu:360: 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, IndexIsMajor = true]: block: [113,0,0], thread: [94,0,0] Assertion ``srcIndex < srcSelectDimSize`` failed.`\r\n\r\n`/pytorch/aten/src/THC/THCTensorIndex.cu:360: 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, IndexIsMajor = true]: block: [113,0,0], thread: [95,0,0] Assertion ``srcIndex < srcSelectDimSize`` failed.`\r\n\r\n`THCudaCheck FAIL file=/pytorch/aten/src/THC/generic/THCTensorCopy.c line=70 error=59 : device-side assert triggered\r\nbeam search OOM\r\n2 1.59588813782\r\nTraceback (most recent call last):\r\n  File \"generate_paraphrases.py\", line 187, in <module>\r\n    encode_data(out_file=args.out_file)\r\n  File \"generate_paraphrases.py\", line 70, in encode_data\r\n    torch_sent = Variable(torch.from_numpy(np.array(seg_sent, dtype='int32')).long().cuda())\r\nRuntimeError: cuda runtime error (59) : device-side assert triggered at /pytorch/aten/src/THC/generic/THCTensorCopy.c:20`\r\n\r\nI had tried a few times but it always return this error, especially `THCTensorCopy.c:20`. Hope you can help me on this."},"comment":{"url":"https://api.github.com/repos/miyyer/scpn/issues/comments/442744170","html_url":"https://github.com/miyyer/scpn/issues/7#issuecomment-442744170","issue_url":"https://api.github.com/repos/miyyer/scpn/issues/7","id":442744170,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Mjc0NDE3MA==","user":{"login":"kj-lai","id":34180949,"node_id":"MDQ6VXNlcjM0MTgwOTQ5","avatar_url":"https://avatars0.githubusercontent.com/u/34180949?v=4","gravatar_id":"","url":"https://api.github.com/users/kj-lai","html_url":"https://github.com/kj-lai","followers_url":"https://api.github.com/users/kj-lai/followers","following_url":"https://api.github.com/users/kj-lai/following{/other_user}","gists_url":"https://api.github.com/users/kj-lai/gists{/gist_id}","starred_url":"https://api.github.com/users/kj-lai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kj-lai/subscriptions","organizations_url":"https://api.github.com/users/kj-lai/orgs","repos_url":"https://api.github.com/users/kj-lai/repos","events_url":"https://api.github.com/users/kj-lai/events{/privacy}","received_events_url":"https://api.github.com/users/kj-lai/received_events","type":"User","site_admin":false},"created_at":"2018-11-29T08:15:50Z","updated_at":"2018-11-29T08:15:50Z","author_association":"NONE","body":"Thank you for your guidance. How would we know which template is most accurate from the paraphrased sentences?\r\n"}}
{"actor":{"display_login":"kj-lai"}}