Lines Matching refs:weights
188 vector<double> &weights = *data_->Weights(); in SetState() local
199 state_weights_ = &(weights[pos]); in SetState()
248 vector<double> &weights = *data_->Weights(); variable
250 if (!weights.empty() || arc_limit_ < arc_period_) {
263 weights.push_back(sum);
271 weights.push_back(sum);
356 delete it->second.weights; in ~CacheLogAccumulatorData()
365 return it->second.weights; in GetWeights()
371 void AddWeights(StateId s, vector<double> *weights) { in AddWeights() argument
374 cache_.insert(make_pair(s, CacheState(weights, true))); in AddWeights()
376 cache_size_ += weights->capacity() * sizeof(double); in AddWeights()
386 vector<double>* weights; // Accumulated weights for this state. member
389 CacheState(vector<double> *w, bool r) : weights(w), recent(r) {} in CacheState()
402 cache_size_ -= cs.weights->capacity() * sizeof(double); in GC()
403 delete cs.weights; in GC()