Lines Matching defs:weight
52 // encoding and decoding of label/weight tuples used for encoding
61 // Encoded data consists of arc input/output labels and arc weight
65 : ilabel(ilabel_), olabel(olabel_), weight(weight_) {}
67 : ilabel(tuple.ilabel), olabel(tuple.olabel), weight(tuple.weight) {}
71 Weight weight;
80 x->weight == y->weight);
104 hash = hash << lshift ^ hash >> rshift ^ x->weight.Hash();
134 flags_ & kEncodeWeights ? arc.weight : Weight::One());
149 flags_ & kEncodeWeights ? arc.weight : Weight::One());
227 tuple->weight.Write(strm);
267 tuple->weight.Read(strm);
424 arc.weight == Weight::Zero())) {
430 flags_ & kEncodeWeights ? Weight::One() : arc.weight,
443 if (flags_ & kEncodeWeights && arc.weight != Weight::One()) {
445 "EncodeMapper: Weight-encoded arc has non-trivial weight";
456 flags_ & kEncodeWeights ? tuple->weight : arc.weight,
481 // On the fly label and/or weight encoding of input Fst
519 // On the fly label and/or weight encoding of input Fst