Home
last modified time | relevance | path

Searched refs:softmax (Results 1 – 5 of 5) sorted by relevance

/external/libtextclassifier/common/
Dsoftmax.cc74 std::vector<float> softmax; in ComputeSoftmax() local
77 softmax.reserve(scores.size()); in ComputeSoftmax()
94 softmax.push_back(exp_scores[i] / denominator); in ComputeSoftmax()
96 return softmax; in ComputeSoftmax()
Dembedding-network-params-from-proto.h185 return proto_->has_softmax() ? proto_->softmax().rows() : 0; in softmax_num_rows()
190 return proto_->has_softmax() ? proto_->softmax().cols() : 0; in softmax_num_cols()
195 return proto_->has_softmax() ? proto_->softmax().value().data() : nullptr; in softmax_weights()
Dembedding-network.cc363 const EmbeddingNetworkParams::Matrix softmax = model->GetSoftmaxMatrix(); in EmbeddingNetwork() local
365 if (!InitNonQuantizedMatrix(softmax, &softmax_weights_) || in EmbeddingNetwork()
Dembedding-network.proto67 optional MatrixParams softmax = 4; field
/external/libtextclassifier/common/memory_image/
Dembedding-network-params-from-image.h160 return trimmed_proto_.softmax().rows(); in softmax_num_rows()
165 return trimmed_proto_.softmax().cols(); in softmax_num_cols()