MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetOutput

Method GetOutput

tensorflow/lite/kernels/skip_gram_test.cc:48–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 }
47
48 std::vector<string> GetOutput() {
49 std::vector<string> ans;
50 TfLiteTensor* tensor = interpreter_->tensor(output_);
51
52 int num = GetStringCount(tensor);
53 for (int i = 0; i < num; i++) {
54 StringRef strref = GetString(tensor, i);
55 ans.push_back(string(strref.str, strref.len));
56 }
57 return ans;
58 }
59
60 private:
61 int input_;

Callers 1

TESTFunction · 0.45

Calls 4

GetStringCountFunction · 0.85
GetStringFunction · 0.85
tensorMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected