{"action":"created","issue":{"url":"https://api.github.com/repos/Xilinx/CHaiDNN/issues/25","repository_url":"https://api.github.com/repos/Xilinx/CHaiDNN","labels_url":"https://api.github.com/repos/Xilinx/CHaiDNN/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/Xilinx/CHaiDNN/issues/25/comments","events_url":"https://api.github.com/repos/Xilinx/CHaiDNN/issues/25/events","html_url":"https://github.com/Xilinx/CHaiDNN/issues/25","id":330833727,"node_id":"MDU6SXNzdWUzMzA4MzM3Mjc=","number":25,"title":"Problem about Ristretto?","user":{"login":"lishen565","id":1812302,"node_id":"MDQ6VXNlcjE4MTIzMDI=","avatar_url":"https://avatars0.githubusercontent.com/u/1812302?v=4","gravatar_id":"","url":"https://api.github.com/users/lishen565","html_url":"https://github.com/lishen565","followers_url":"https://api.github.com/users/lishen565/followers","following_url":"https://api.github.com/users/lishen565/following{/other_user}","gists_url":"https://api.github.com/users/lishen565/gists{/gist_id}","starred_url":"https://api.github.com/users/lishen565/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lishen565/subscriptions","organizations_url":"https://api.github.com/users/lishen565/orgs","repos_url":"https://api.github.com/users/lishen565/repos","events_url":"https://api.github.com/users/lishen565/events{/privacy}","received_events_url":"https://api.github.com/users/lishen565/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-09T00:01:22Z","updated_at":"2018-06-12T09:38:39Z","closed_at":null,"author_association":"NONE","body":"Hi, I've tried to run the squeezenet in accordance with  \"Ristretto Quantization User Guide\", and get my quantized.prototxt. When I ran my squeezenet.elf on board something was wrong at parsing pool10 whose global_pooling is true and type is AVE. The detail result is below:\r\n![_20180609074743](https://user-images.githubusercontent.com/1812302/41185415-c0e152b4-6bba-11e8-85a6-f4cb7102f8b5.jpg)\r\nAnd I checked my quantized.prototxt and found that there is no quantization_param in layer pool10. Can you help me to solve this problem ?"},"comment":{"url":"https://api.github.com/repos/Xilinx/CHaiDNN/issues/comments/396529607","html_url":"https://github.com/Xilinx/CHaiDNN/issues/25#issuecomment-396529607","issue_url":"https://api.github.com/repos/Xilinx/CHaiDNN/issues/25","id":396529607,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjUyOTYwNw==","user":{"login":"NeutrinoXY","id":16929432,"node_id":"MDQ6VXNlcjE2OTI5NDMy","avatar_url":"https://avatars2.githubusercontent.com/u/16929432?v=4","gravatar_id":"","url":"https://api.github.com/users/NeutrinoXY","html_url":"https://github.com/NeutrinoXY","followers_url":"https://api.github.com/users/NeutrinoXY/followers","following_url":"https://api.github.com/users/NeutrinoXY/following{/other_user}","gists_url":"https://api.github.com/users/NeutrinoXY/gists{/gist_id}","starred_url":"https://api.github.com/users/NeutrinoXY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NeutrinoXY/subscriptions","organizations_url":"https://api.github.com/users/NeutrinoXY/orgs","repos_url":"https://api.github.com/users/NeutrinoXY/repos","events_url":"https://api.github.com/users/NeutrinoXY/events{/privacy}","received_events_url":"https://api.github.com/users/NeutrinoXY/received_events","type":"User","site_admin":false},"created_at":"2018-06-12T09:38:39Z","updated_at":"2018-06-12T09:38:39Z","author_association":"NONE","body":"Hi,\r\n\r\nIf the quantization works when you benchmark your model using caffe-ristretto, then it should works on the board.\r\n\r\nYou should check the output of some layers of your network. Below an example of how you can get the output of the convolutional layer j : \r\n\r\n`short *output0 = (short *)jobQueue[0][j].out_ptrs[0];\r\nshort *output1 = (short *)jobQueue[0][j].out_ptrs[1];\r\nint out_fbits0=jobQueue[0][a0].qf_format.op_fbits;\r\nint out_fbits1=jobQueue[0][a0].qf_format.op_fbits;\r\nfor(int i=0;i<b0/4;i++){\r\n\tfloat val = ((float)output0[4*i])/(1 << out_fbits0);\r\n\tfloat val = ((float)output0[4*i+0])/(1 << out_fbits0);\r\n\tfloat val = ((float)output0[4*i+2])/(1 << out_fbits0);\r\n\tfloat val = ((float)output0[4*i+3])/(1 << out_fbits0);\r\n\tcout<<val0<<\" \"<<val1<<\" \"<<val2<<\" \"<<val3<<endl;\r\n}\r\nfor(int i=0;i<b0/4;i++){\r\n\tfloat val = ((float)output1[4*i])/(1 << out_fbits1);\r\n\tfloat val = ((float)output1[4*i+0])/(1 << out_fbits1);\r\n\tfloat val = ((float)output1[4*i+2])/(1 << out_fbits1);\r\n\tfloat val = ((float)output1[4*i+3])/(1 << out_fbits1);\r\n\tcout<<val0<<\" \"<<val1<<\" \"<<val2<<\" \"<<val3<<endl;\r\n}`"}}
{"actor":{"display_login":"NeutrinoXY"}}