Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
608 views
in Technique[技术] by (71.8m points)

protocol buffers - Get tensorflow serving response directly in output proto format

I have an output vector coming from tensorflow model which is a 50x1 vector of probabilities [0.4 0.3 0.4 ... 0.5] where first 20 dimensions are user vectors and last 30 are item vectors each with a particular proto value. Is there a way to directly export proto values from within tensorflow as part of tfserving For example

enum User {
    Feature1 = 0;
    // Geo
    Feature2 = 1101;
    Feature3 = 1102;
   
    Feature20}

enum Item{
   Feature1 = 0
    

   Feature30 = 2103
}
message UserProb {
User user = 1;
float confidence = 2;

}

      message ItemProb {
    Item user = 1;
    float confidence = 2;
}
question from:https://stackoverflow.com/questions/65905988/get-tensorflow-serving-response-directly-in-output-proto-format

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...