{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/serving/issues/42","repository_url":"https://api.github.com/repos/tensorflow/serving","labels_url":"https://api.github.com/repos/tensorflow/serving/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/serving/issues/42/comments","events_url":"https://api.github.com/repos/tensorflow/serving/issues/42/events","html_url":"https://github.com/tensorflow/serving/issues/42","id":148728686,"number":42,"title":"Where do the .proto and *_pb2.py files come from?","user":{"login":"eriophora","id":6423093,"avatar_url":"https://avatars.githubusercontent.com/u/6423093?v=3","gravatar_id":"","url":"https://api.github.com/users/eriophora","html_url":"https://github.com/eriophora","followers_url":"https://api.github.com/users/eriophora/followers","following_url":"https://api.github.com/users/eriophora/following{/other_user}","gists_url":"https://api.github.com/users/eriophora/gists{/gist_id}","starred_url":"https://api.github.com/users/eriophora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eriophora/subscriptions","organizations_url":"https://api.github.com/users/eriophora/orgs","repos_url":"https://api.github.com/users/eriophora/repos","events_url":"https://api.github.com/users/eriophora/events{/privacy}","received_events_url":"https://api.github.com/users/eriophora/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-15T18:11:04Z","updated_at":"2016-04-15T20:19:52Z","closed_at":null,"body":"The documentation for TF Serving mentions the *.proto files, but does not do much in the way of explaining what they are or how they may be modified. For instance, I'm trying to do a regression task. I tried to modify the *.proto file to do this but it was not clear how. \r\n\r\nFurther, the creation of *_pb2.py files is never mentioned, but is apparently a necessary step if you wish to change anything. I did this by:\r\n\r\n`protoc --proto_path=serving/tensorflow_serving --python_out=serving/tensorflow_serving/custom_net serving/tensorflow_serving/custom_net/cutom_net_inference.proto`\r\n\r\nbut the `custom_net_inference_pb2.py` file it output did not have the same functions as `inception_inference_pb2.py`; namely, it stopped after `protoc_insertion_point`. \r\n\r\nFurthermore, the line:\r\n\r\n```service InceptionService {\r\n  // Classifies an JPEG image into classes.\r\n  rpc Classify(InceptionRequest) returns (InceptionResponse);\r\n}```\r\n\r\nis `Classify` a function? Namely the function in `inception_inference.cc`? Is it necessary to modify these names if the net performs a regression? My understanding is that the signatures themselves should change but the function names are irrelevant, so `custom_net_inference.cc` has much the same function names but just uses `tensorflow::serving::RegressionSignature signature;` "},"comment":{"url":"https://api.github.com/repos/tensorflow/serving/issues/comments/210627043","html_url":"https://github.com/tensorflow/serving/issues/42#issuecomment-210627043","issue_url":"https://api.github.com/repos/tensorflow/serving/issues/42","id":210627043,"user":{"login":"eriophora","id":6423093,"avatar_url":"https://avatars.githubusercontent.com/u/6423093?v=3","gravatar_id":"","url":"https://api.github.com/users/eriophora","html_url":"https://github.com/eriophora","followers_url":"https://api.github.com/users/eriophora/followers","following_url":"https://api.github.com/users/eriophora/following{/other_user}","gists_url":"https://api.github.com/users/eriophora/gists{/gist_id}","starred_url":"https://api.github.com/users/eriophora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eriophora/subscriptions","organizations_url":"https://api.github.com/users/eriophora/orgs","repos_url":"https://api.github.com/users/eriophora/repos","events_url":"https://api.github.com/users/eriophora/events{/privacy}","received_events_url":"https://api.github.com/users/eriophora/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T20:19:52Z","updated_at":"2016-04-15T20:19:52Z","body":"Ah, I see that my call to `protoc` was incorrect! \r\n\r\nThank you for this, I will install grpc now and see if it works.\r\n\r\nIs this `protoc` call documented somewhere on the TF-Serving website that I've missed? Or is it assumed they'd be sufficiently familiar with it?"}}