Searched defs:Weight (Results 1 - 25 of 129) sorted by relevance

123456

/external/openfst/src/include/fst/script/
H A Dreweight.h37 typedef typename Arc::Weight Weight; typedef
38 vector<Weight> potentials(args->arg2.size());
41 potentials[i] = *(args->arg2[i].GetWeight<Weight>());
H A Dprune.h56 typedef typename A::Weight Weight; typedef
59 Weight weight_threshold = *(opts.weight_threshold.GetWeight<Weight>());
61 vector<Weight> *distance = 0;
64 distance = new vector<Weight>(opts.distance->size());
66 (*distance)[i] = *((*opts.distance)[i].GetWeight<Weight>());
82 typedef typename Arc::Weight Weight; typedef
115 typename Arc::Weight
[all...]
H A Dshortest-path.h62 typedef typename Arc::Weight Weight; typedef
65 vector<typename Arc::Weight> weights;
66 typename Arc::Weight weight_threshold =
67 *(opts.weight_threshold.GetWeight<Weight>());
107 typedef NaturalShortestFirstQueue<StateId, Weight> Queue;
163 typename Arc::Weight weight_threshold =
164 *(args->arg6.GetWeight<typename Arc::Weight>());
/external/openfst/src/include/fst/
H A Dequal.h33 typedef typename Arc::Weight Weight; typedef
56 Weight final1 = fst1.Final(s1);
57 Weight final2 = fst2.Final(s2);
H A Dreweight.h35 // vector in the direction defined by TYPE. Weight needs to be left
45 const vector<typename Arc::Weight> &potential,
47 typedef typename Arc::Weight Weight; typedef
52 if (type == REWEIGHT_TO_FINAL && !(Weight::Properties() & kRightSemiring)) {
54 << "Weight to be right distributive: "
55 << Weight::Type();
60 if (type == REWEIGHT_TO_INITIAL && !(Weight::Properties() & kLeftSemiring)) {
62 << "Weight to be left distributive: "
63 << Weight
[all...]
H A Drmfinalepsilon.h39 typedef typename A::Weight Weight; typedef
54 if (fst->Final(s) != Weight::Zero()) {
73 Weight w(fst->Final(s));
H A Dstatesort.h41 typedef typename Arc::Weight Weight; typedef
66 Weight final1 = fst->Final(s1), final2 = Weight::Zero();
H A Dreverse.h41 // the input arc type except having the reversed Weight type.
45 typedef typename Arc::Weight Weight; typedef
46 typedef typename RevArc::Weight RevWeight;
67 Weight final = ifst.Final(is);
68 if (final != Weight::Zero()) {
H A Dverify.h34 typedef typename Arc::Weight Weight; typedef
85 } else if (!arc.weight.Member() || arc.weight == Weight::Zero()) {
H A Dclosure.h39 // transduced to itself with weight Weight::One() as well.
49 typedef typename Arc::Weight Weight; typedef
57 Weight final = fst->Final(s);
58 if (final != Weight::Zero())
65 fst->SetFinal(nstart, Weight::One());
67 fst->AddArc(nstart, Arc(0, 0, Weight::One(), start));
96 // to itself with weight Weight::One() as well.
H A Ddifference.h68 typedef typename A::Weight Weight; typedef in class:fst::DifferenceFst
H A Dintersect.h67 typedef typename A::Weight Weight; typedef in class:fst::IntersectFst
H A Dmap.h57 typedef typename B::Weight Weight; typedef in class:fst::MapFst
H A Drandequivalent.h48 typedef typename Arc::Weight Weight; typedef
86 if (!(Weight::Properties() & kIdempotent) &&
89 Weight sum1 = ShortestDistance(pfst1);
96 if (!(Weight::Properties() & kIdempotent) &&
99 Weight sum2 = ShortestDistance(pfst2);
H A Dweight.h31 // A Weight class is required to be (at least) a left or right semiring.
33 // In addition, the following should be defined for a Weight:
55 // Typically the same type as Weight for a (both left and right) semiring.
57 // Reverse: a mapping from Weight to ReverseWeight s.t.
133 typedef W Weight; typedef in class:fst::NaturalLess
137 FSTERROR() << "NaturalLess: Weight type is not idempotent: "
/external/srec/tools/thirdparty/OpenFst/fst/lib/
H A Dequal.h30 typedef typename Arc::Weight Weight; typedef
53 Weight final1 = fst1.Final(s1);
54 Weight final2 = fst2.Final(s2);
H A Dreweight.h30 // vector in the direction defined by TYPE. Weight needs to be left
39 void Reweight(MutableFst<Arc> *fst, vector<typename Arc::Weight> potential,
41 typedef typename Arc::Weight Weight; typedef
46 potential.push_back(Weight::Zero());
48 if (type == REWEIGHT_TO_FINAL && !(Weight::Properties() & kRightSemiring))
50 << "Weight to be right distributive: "
51 << Weight::Type();
53 if (type == REWEIGHT_TO_INITIAL && !(Weight::Properties() & kLeftSemiring))
55 << "Weight t
[all...]
H A Drmfinalepsilon.h33 typedef typename A::Weight Weight; typedef
48 if (fst->Final(s) != Weight::Zero()) {
67 Weight w(fst->Final(s));
H A Dstatesort.h36 typedef typename Arc::Weight Weight; typedef
57 Weight final1 = fst->Final(s1), final2 = Weight::Zero();
H A Dverify.h31 typedef typename Arc::Weight Weight; typedef
82 } else if (!arc.weight.Member() || arc.weight == Weight::Zero()) {
H A Dreverse.h34 // the input arc type except having the reversed Weight type.
38 typedef typename Arc::Weight Weight; typedef
39 typedef typename RevArc::Weight RevWeight;
58 Weight final = ifst.Final(is);
59 if (final != Weight::Zero()) {
H A Dweight.h29 // A Weight class is required to be (at least) a left or right semiring.
31 // In addition, the following should be defined for a Weight:
48 // Typically the same type as Weight for a (both left and right) semiring.
50 // Reverse: a mapping from Weight to ReverseWeight s.t.
123 typedef W Weight; typedef in class:fst::NaturalLess
128 LOG(ERROR) << "NaturalLess: Weight type is not idempotent and "
H A Darc.h32 typedef TropicalWeight Weight; typedef in struct:fst::StdArc
35 StdArc(Label i, Label o, Weight w, StateId s)
47 Weight weight; // Transition weight
56 typedef LogWeight Weight; typedef in struct:fst::LogArc
59 LogArc(Label i, Label o, Weight w, StateId s)
71 Weight weight; // Transition weight
81 typedef StringWeight<int, S> Weight; typedef in class:fst::StringArc
84 StringArc(Label i, Label o, Weight w, StateId s)
100 Weight weight; // Transition weight
112 typedef GallicWeight<Label, typename A::Weight, typedef in struct:fst::GallicArc
144 typedef typename AWeight::ReverseWeight Weight; typedef in struct:fst::ReverseArc
[all...]
H A Dclosure.h32 // transduced to itself with weight Weight::One() as well.
42 typedef typename Arc::Weight Weight; typedef
50 Weight final = fst->Final(s);
51 if (final != Weight::Zero())
57 fst->SetFinal(nstart, Weight::One());
59 fst->AddArc(nstart, Arc(0, 0, Weight::One(), start));
88 // to itself with weight Weight::One() as well.
/external/llvm/lib/CodeGen/
H A DMachineBranchProbabilityInfo.cpp41 uint32_t Weight = getEdgeWeight(MBB, I); local
42 Sum += Weight;
56 uint32_t Weight = getEdgeWeight(MBB, I); local
57 Sum += Weight / Scale;
66 uint32_t Weight = Src->getSuccWeight(Dst); local
67 if (!Weight)
69 return Weight;
93 uint32_t Weight = getEdgeWeight(MBB, I); local
94 if (Weight > MaxWeight) {
95 MaxWeight = Weight;
[all...]

Completed in 173 milliseconds

123456