{"action":"created","issue":{"url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/10583","repository_url":"https://api.github.com/repos/PaddlePaddle/Paddle","labels_url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/10583/labels{/name}","comments_url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/10583/comments","events_url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/10583/events","html_url":"https://github.com/PaddlePaddle/Paddle/issues/10583","id":322153908,"number":10583,"title":"什么就没有selective_fc的使用方法的详细文档，或者详细示例说明呢","user":{"login":"chenbblei","id":26086895,"avatar_url":"https://avatars0.githubusercontent.com/u/26086895?v=4","gravatar_id":"","url":"https://api.github.com/users/chenbblei","html_url":"https://github.com/chenbblei","followers_url":"https://api.github.com/users/chenbblei/followers","following_url":"https://api.github.com/users/chenbblei/following{/other_user}","gists_url":"https://api.github.com/users/chenbblei/gists{/gist_id}","starred_url":"https://api.github.com/users/chenbblei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenbblei/subscriptions","organizations_url":"https://api.github.com/users/chenbblei/orgs","repos_url":"https://api.github.com/users/chenbblei/repos","events_url":"https://api.github.com/users/chenbblei/events{/privacy}","received_events_url":"https://api.github.com/users/chenbblei/received_events","type":"User","site_admin":false},"labels":[{"id":651040732,"url":"https://api.github.com/repos/PaddlePaddle/Paddle/labels/User","name":"User","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":{"login":"lcy-seso","id":5842774,"avatar_url":"https://avatars2.githubusercontent.com/u/5842774?v=4","gravatar_id":"","url":"https://api.github.com/users/lcy-seso","html_url":"https://github.com/lcy-seso","followers_url":"https://api.github.com/users/lcy-seso/followers","following_url":"https://api.github.com/users/lcy-seso/following{/other_user}","gists_url":"https://api.github.com/users/lcy-seso/gists{/gist_id}","starred_url":"https://api.github.com/users/lcy-seso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lcy-seso/subscriptions","organizations_url":"https://api.github.com/users/lcy-seso/orgs","repos_url":"https://api.github.com/users/lcy-seso/repos","events_url":"https://api.github.com/users/lcy-seso/events{/privacy}","received_events_url":"https://api.github.com/users/lcy-seso/received_events","type":"User","site_admin":false},"assignees":[{"login":"lcy-seso","id":5842774,"avatar_url":"https://avatars2.githubusercontent.com/u/5842774?v=4","gravatar_id":"","url":"https://api.github.com/users/lcy-seso","html_url":"https://github.com/lcy-seso","followers_url":"https://api.github.com/users/lcy-seso/followers","following_url":"https://api.github.com/users/lcy-seso/following{/other_user}","gists_url":"https://api.github.com/users/lcy-seso/gists{/gist_id}","starred_url":"https://api.github.com/users/lcy-seso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lcy-seso/subscriptions","organizations_url":"https://api.github.com/users/lcy-seso/orgs","repos_url":"https://api.github.com/users/lcy-seso/repos","events_url":"https://api.github.com/users/lcy-seso/events{/privacy}","received_events_url":"https://api.github.com/users/lcy-seso/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-05-11T03:19:33Z","updated_at":"2018-05-11T08:25:53Z","closed_at":null,"author_association":"NONE","body":"官网上虽然有一个关于推荐的示例，但关于select只要设置为height为1即可，\r\n但是如果有多个输入同时输入，比如语音 100帧40维，即输入为100*40，那么此时的\r\nselect的参数height应该为100，而不是1，所以使用推荐的那个示例就行不通了，但\r\n关于selective_fc的参数介绍，并没有介绍在这种情况下，select该怎么设置了，\r\n感觉文档方面太不详细了，用起来越来越难了\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/comments/388297168","html_url":"https://github.com/PaddlePaddle/Paddle/issues/10583#issuecomment-388297168","issue_url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/10583","id":388297168,"user":{"login":"chenbblei","id":26086895,"avatar_url":"https://avatars0.githubusercontent.com/u/26086895?v=4","gravatar_id":"","url":"https://api.github.com/users/chenbblei","html_url":"https://github.com/chenbblei","followers_url":"https://api.github.com/users/chenbblei/followers","following_url":"https://api.github.com/users/chenbblei/following{/other_user}","gists_url":"https://api.github.com/users/chenbblei/gists{/gist_id}","starred_url":"https://api.github.com/users/chenbblei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenbblei/subscriptions","organizations_url":"https://api.github.com/users/chenbblei/orgs","repos_url":"https://api.github.com/users/chenbblei/repos","events_url":"https://api.github.com/users/chenbblei/events{/privacy}","received_events_url":"https://api.github.com/users/chenbblei/received_events","type":"User","site_admin":false},"created_at":"2018-05-11T08:25:53Z","updated_at":"2018-05-11T08:25:53Z","author_association":"NONE","body":"@lcy-seso \r\n具体是这样的，我的fc输出如下：\r\nfc = paddle.layer.fc(\r\n        input=rnn_group_output,\r\n        size=dict_size + 1,\r\n        act=paddle.activation.Linear(),\r\n        bias_attr=True,\r\n        layer_attr=paddle.attr.ExtraLayerAttribute(drop_rate=0.5))\r\n其中dict_size是176*2,\r\nfc.size为176*2+1，fc输出的是一句语音中每一帧的输出的176*2+1个类别值，也就是N帧*（176*2+1）的输出，\r\n然后我调用fc_wav = paddle.layer.selective_fc(input=fc,select=sel_wav_binary,size=dict_size+1,act=paddle.activation.Linear())\r\n\r\n其中sel_wav_binary定义如下：\r\nsel_wav_binary = paddle.layer.data(\r\n            name='select_wav_binary',\r\n            type=paddle.data_type.sparse_binary_vector((vocab_size*2+1)))\r\nvocab_size也是176，\r\n其中“select_wav_binary”的输入来自于以下list_wav：\r\nlist_wav = []\r\nfor i in range(176):\r\n   list_wav.append(i)\r\nlist_wav.append(176*2+1)\r\n\r\n然后以运行就报错信息如下：\r\nF0510 19:10:41.672122 11590 SelectiveFullyConnectedLayer.cpp:134] Check failed: height == selCols_->getHeight()\r\n*** Check failure stack trace: ***\r\n@ 0x7fa932b942ed google::LogMessage::Fail()\r\n@ 0x7fa932b97d9c google::LogMessage::SendToLog()\r\n@ 0x7fa932b93e13 google::LogMessage::Flush()\r\n@ 0x7fa932b992ae google::LogMessageFatal::~LogMessageFatal()\r\n@ 0x7fa932894fec paddle::SelectiveFullyConnectedLayer::forward()\r\n@ 0x7fa93278ea4d paddle::NeuralNetwork::forward()\r\n@ 0x7fa93276bf54 paddle::TrainerThread::forward()\r\n@ 0x7fa93276d255 paddle::TrainerThread::computeThread()\r\n@ 0x7fa9a9e53870 (unknown)\r\n@ 0x7fa9bb8f8dc5 start_thread\r\n@ 0x7fa9baf1d21d __clone\r\n@ (nil) (unknown)"}}
{"actor":{"display_login":"chenbblei"}}