Lines Matching refs:scores
26 float ComputeSoftmaxProbability(const std::vector<float> &scores, int label) { in ComputeSoftmaxProbability() argument
27 if ((label < 0) || (label >= scores.size())) { in ComputeSoftmaxProbability()
29 << "[0, " << scores.size() << ")"; in ComputeSoftmaxProbability()
42 const float label_score = scores[label]; in ComputeSoftmaxProbability()
44 for (int i = 0; i < scores.size(); ++i) { in ComputeSoftmaxProbability()
46 const float delta_score = scores[i] - label_score; in ComputeSoftmaxProbability()
72 std::vector<float> ComputeSoftmax(const std::vector<float> &scores) { in ComputeSoftmax() argument
73 return ComputeSoftmax(scores.data(), scores.size()); in ComputeSoftmax()
76 std::vector<float> ComputeSoftmax(const float *scores, int scores_size) { in ComputeSoftmax() argument
85 const float score = scores[i]; in ComputeSoftmax()
90 const float score = scores[i]; in ComputeSoftmax()