Home | History | Annotate | Download | only in lib

Lines Matching refs:weight

37 // encoding and decoding of label/weight tuples used for encoding
44 typedef typename A::Weight Weight;
46 // Encoded data consists of arc input/output labels and arc weight
49 Tuple(Label ilabel_, Label olabel_, Weight weight_)
50 : ilabel(ilabel_), olabel(olabel_), weight(weight_) {}
52 : ilabel(tuple.ilabel), olabel(tuple.olabel), weight(tuple.weight) {}
56 Weight weight;
65 x->weight == y->weight);
88 if (encode_flags_ & kEncodeWeights) hash ^= x->weight.Hash();
115 flags_ & kEncodeWeights ? arc.weight : Weight::One());
140 tuple->weight.Write(strm);
168 tuple->weight.Read(strm);
206 typedef typename A::Weight Weight;
234 arc.weight == Weight::Zero())) {
240 flags_ & kEncodeWeights ? Weight::One() : arc.weight,
251 flags_ & kEncodeWeights ? tuple->weight : arc.weight,
332 // On the fly label and/or weight encoding of input Fst
357 // On the fly label and/or weight encoding of input Fst