payload: {"action":"opened","issue":{"url":"https://api.github.com/repos/Tencent/ncnn/issues/832","repository_url":"https://api.github.com/repos/Tencent/ncnn","labels_url":"https://api.github.com/repos/Tencent/ncnn/issues/832/labels{/name}","comments_url":"https://api.github.com/repos/Tencent/ncnn/issues/832/comments","events_url":"https://api.github.com/repos/Tencent/ncnn/issues/832/events","html_url":"https://github.com/Tencent/ncnn/issues/832","id":421191849,"node_id":"MDU6SXNzdWU0MjExOTE4NDk=","number":832,"title":"How to read Shape proto from Attr \"value\" in \"Const\" ops from Tensorflow frozen graph in Tensorflow2ncnn.cpp? ","user":{"login":"WeiyiLi","id":6508944,"node_id":"MDQ6VXNlcjY1MDg5NDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/6508944?v=4","gravatar_id":"","url":"https://api.github.com/users/WeiyiLi","html_url":"https://github.com/WeiyiLi","followers_url":"https://api.github.com/users/WeiyiLi/followers","following_url":"https://api.github.com/users/WeiyiLi/following{/other_user}","gists_url":"https://api.github.com/users/WeiyiLi/gists{/gist_id}","starred_url":"https://api.github.com/users/WeiyiLi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WeiyiLi/subscriptions","organizations_url":"https://api.github.com/users/WeiyiLi/orgs","repos_url":"https://api.github.com/users/WeiyiLi/repos","events_url":"https://api.github.com/users/WeiyiLi/events{/privacy}","received_events_url":"https://api.github.com/users/WeiyiLi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-03-14T18:58:10Z","updated_at":"2019-03-14T18:58:10Z","closed_at":null,"author_association":"NONE","body":"I have one model with some const ops. These opts saved the shape information in protobuf in the attr \"value\". However, when I use tensorflow2ncnn.cpp to convert the frozen graph, these information are sometimes missing. \r\nI use `protoc --deocde` to read the frozen graph, I found the \"tag\" that relates this information is different. \r\nBelow is the ops that the \"shape\" information CAN be read in tensorflow2ncnn.cpp because the tag in front of the values is \"4\". \r\n![image](https://user-images.githubusercontent.com/6508944/54383407-3b22ae00-464f-11e9-9efb-08727597ecb9.png)\r\n\r\nBelow is the ops that the \"shape\" information CANNOT be read into tensorflow2ncnn.cpp because the tag in front of the values is \"7\"\r\n![image](https://user-images.githubusercontent.com/6508944/54383577-9bb1eb00-464f-11e9-82b0-2eff9464d5a7.png)\r\n\r\nI searched the ncnn code and found https://github.com/Tencent/ncnn/blob/master/tools/tensorflow/attr_value.proto#L18\r\nTo my understanding, the values with tag \"4\" is _float_ and the values with tag \"7\" is _shape_. \r\nTherefore, how can I change the tensorflow2ncnn.cpp code and read this shape information out? Thank you!"}}
other: {"actor":{"display_login":"WeiyiLi"}}