Searched refs:Weight (Results 1 - 25 of 117) sorted by relevance

12345

/external/openfst/src/test/
H A Dweight-tester.h32 // hold for the Weight class to be well-defined. It calls function object
34 template<class Weight, class WeightGenerator>
42 Weight w1 = weight_generator_();
43 Weight w2 = weight_generator_();
44 Weight w3 = weight_generator_();
46 VLOG(1) << "weight type = " << Weight::Type();
66 void TestSemiring(Weight w1, Weight w2, Weight w3) {
76 CHECK(Plus(w1, Weight
[all...]
/external/openfst/src/include/fst/
H A Drandom-weight.h50 typedef TropicalWeightTpl<T> Weight; typedef in class:fst::TropicalWeightGenerator_
57 Weight operator() () const {
60 return Weight::Zero();
62 return Weight(static_cast<T>(n));
82 typedef LogWeightTpl<T> Weight; typedef in class:fst::LogWeightGenerator_
89 Weight operator() () const {
92 return Weight::Zero();
94 return Weight(static_cast<T>(n));
115 typedef MinMaxWeightTpl<T> Weight; typedef in class:fst::MinMaxWeightGenerator_
122 Weight operato
149 typedef StringWeight<L, S> Weight; typedef in class:fst::StringWeightGenerator
190 typedef W Weight; typedef in class:fst::ProductWeightGenerator
216 typedef LexicographicWeight<W1, W2> Weight; typedef in class:fst::LexicographicWeightGenerator
253 typedef GallicWeight<L, W, S> Weight; typedef in class:fst::GallicWeightGenerator
267 typedef PowerWeight<W, n> Weight; typedef in class:fst::PowerWeightGenerator
291 typedef SignedLogWeightTpl<T> Weight; typedef in class:fst::SignedLogWeightGenerator_
327 typedef SparsePowerWeight<W, K> Weight; typedef in class:fst::SparsePowerWeightGenerator
[all...]
H A Dshortest-distance.h75 typedef typename Arc::Weight Weight; typedef in class:fst::ShortestDistanceState
79 vector<Weight> *distance,
97 vector<Weight> *distance_;
104 vector<Weight> rdistance_; // Relaxation distance.
123 if (!(Weight::Properties() & kRightSemiring)) {
124 FSTERROR() << "ShortestDistance: Weight needs to be right distributive: "
125 << Weight::Type();
130 if (first_path_ && !(Weight::Properties() & kPath)) {
132 << "Weight doe
286 typedef typename Arc::Weight Weight; typedef
324 typedef typename Arc::Weight Weight; typedef
[all...]
H A Dprune.h37 typedef typename A::Weight Weight; typedef in class:fst::PruneOptions
41 Weight weight_threshold;
47 const vector<Weight> *distance;
52 explicit PruneOptions(const Weight& w, StateId s, ArcFilter f,
53 vector<Weight> *d = 0, float e = kDelta)
68 typedef W Weight; typedef in class:fst::PruneCompare
70 PruneCompare(const vector<Weight> &idistance,
71 const vector<Weight> &fdistance)
75 Weight w
102 typedef typename Arc::Weight Weight; typedef
220 typedef typename Arc::Weight Weight; typedef
[all...]
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 Dshortest-path.h43 typedef typename Arc::Weight Weight; typedef in struct:fst::ShortestPathOptions
53 Weight weight_threshold; // pruning weight threshold.
58 bool fp = false, Weight w = Weight::Zero(),
80 vector<typename Arc::Weight> *distance,
83 typedef typename Arc::Weight Weight; typedef
100 Weight f_distance = Weight
56 ShortestPathOptions(Queue *q, ArcFilter filt, size_t n = 1, bool u = false, bool hasdist = false, float d = kDelta, bool fp = false, Weight w = Weight::Zero(), StateId s = kNoStateId) argument
211 typedef W Weight; typedef in class:fst::ShortestPathCompare
417 typedef typename Arc::Weight Weight; typedef
[all...]
H A Darc.h46 typedef W Weight; typedef in class:fst::ArcTpl
50 ArcTpl(Label i, Label o, const Weight& w, StateId s)
57 (Weight::Type() == "tropical") ? "standard" : Weight::Type();
63 Weight weight;
80 typedef StringWeight<int, S> Weight; typedef in class:fst::StringArc
83 StringArc(Label i, Label o, Weight w, StateId s)
99 Weight weight; // Transition weight
111 typedef GallicWeight<Label, typename A::Weight, S> Weight; typedef in struct:fst::GallicArc
143 typedef typename AWeight::ReverseWeight Weight; typedef in struct:fst::ReverseArc
167 typedef LexicographicWeight<W1, W2> Weight; typedef in struct:fst::LexicographicArc
191 typedef ProductWeight<W1, W2> Weight; typedef in struct:fst::ProductArc
219 typedef PowerWeight<typename A::Weight, n> Weight; typedef in struct:fst::PowerArc
250 typedef SparsePowerWeight<typename A::Weight, K> Weight; typedef in struct:fst::SparsePowerArc
284 typedef ExpectationWeight<X1, X2> Weight; typedef in struct:fst::ExpectationArc
[all...]
H A Daccumulator.h46 typedef typename A::Weight Weight; typedef in class:fst::DefaultAccumulator
56 Weight Sum(Weight w, Weight v) {
61 Weight Sum(Weight w, ArcIterator *aiter, ssize_t begin,
63 Weight sum = w;
85 typedef typename A::Weight Weight; typedef in class:fst::LogAccumulator
166 typedef typename A::Weight Weight; typedef in class:fst::FastLogAccumulator
347 typedef typename A::Weight Weight; typedef in class:fst::CacheLogAccumulatorData
434 typedef typename A::Weight Weight; typedef in class:fst::CacheLogAccumulator
661 typedef typename Arc::Weight Weight; typedef in class:fst::ReplaceAccumulator
[all...]
H A Dpush.h44 typename Arc::Weight ComputeTotalWeight(
46 const vector<typename Arc::Weight> &distance,
50 distance[fst.Start()] : Arc::Weight::Zero();
52 typename Arc::Weight sum = Arc::Weight::Zero();
62 void RemoveWeight(MutableFst<Arc> *fst, typename Arc::Weight w, bool at_final) {
63 if ((w == Arc::Weight::One()) || (w == Arc::Weight::Zero()))
94 // Weight needs to be left distributive when pushing towards the
102 vector<typename Arc::Weight> distanc
[all...]
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 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 Dstring.h40 typedef typename A::Weight Weight; typedef in class:fst::StringCompiler
61 bool operator()(const string &s, F *fst, Weight w) const {
96 const Weight &weight = Weight::One()) const {
101 fst->AddArc(i, Arc(labels[i], labels[i], Weight::One(), i + 1));
115 const Weight &weight = Weight::One()) const {
116 vector<pair<Label, Weight> > compacts;
119 compacts.push_back(make_pair(labels[i], Weight
164 typedef typename A::Weight Weight; typedef in class:fst::StringPrinter
[all...]
H A Ddeterminize.h57 typedef W Weight; typedef in class:fst::DefaultCommonDivisor
70 typedef StringWeight<L, S> Weight; typedef in class:fst::LabelCommonDivisor
72 Weight operator()(const Weight &w1, const Weight &w2) const {
77 FSTERROR() << "LabelCommonDivisor: Weight needs to be left semiring";
78 return Weight::NoWeight();
80 return Weight::One();
81 } else if (w1 == Weight::Zero()) {
82 return Weight(iter
100 typedef GallicWeight<L, W, S> Weight; typedef in class:fst::GallicCommonDivisor
117 typedef typename A::Weight Weight; typedef in struct:fst::DeterminizeElement
196 typedef typename Arc::Weight Weight; typedef in class:fst::DefaultDeterminizeStateTable
369 typedef typename A::Weight Weight; typedef in class:fst::DeterminizeFstImplBase
466 typedef typename A::Weight Weight; typedef in class:fst::DeterminizeFsaImpl
700 typedef typename A::Weight Weight; typedef in class:fst::DeterminizeFstImpl
800 typedef typename A::Weight Weight; typedef in class:fst::DeterminizeFst
945 typedef typename Arc::Weight Weight; typedef in struct:fst::DeterminizeOptions
954 DeterminizeOptions(float d = kDelta, Weight w = Weight::Zero(), StateId n = kNoStateId, Label l = 0) argument
984 typedef typename Arc::Weight Weight; typedef
[all...]
H A Dconcat.h50 typedef typename Arc::Weight Weight; typedef
93 Weight final = fst1->Final(s1);
94 if (final != Weight::Zero()) {
95 fst1->SetFinal(s1, Weight::Zero());
116 typedef typename Arc::Weight Weight; typedef
145 Weight final = fst1.Final(s1);
146 fst2->ReserveArcs(s2, fst1.NumArcs(s1) + (final != Weight::Zero() ? 1 : 0));
147 if (final != Weight
198 typedef typename A::Weight Weight; typedef in class:fst::ConcatFst
[all...]
H A Dunion.h47 typedef typename Arc::Weight Weight; typedef
98 fst1->AddArc(start1, Arc(0, 0, Weight::One(), start2 + numstates1));
102 fst1->AddArc(nstart1, Arc(0, 0, Weight::One(), start1));
103 fst1->AddArc(nstart1, Arc(0, 0, Weight::One(), start2 + numstates1));
137 typedef typename A::Weight Weight; typedef in class:fst::UnionFst
H A Drmepsilon.h53 typedef typename Arc::Weight Weight; typedef in class:fst::RmEpsilonOptions
56 Weight weight_threshold; // Pruning weight threshold.
60 Weight w = Weight::Zero(),
75 typedef typename Arc::Weight Weight; typedef in class:fst::RmEpsilonState
78 vector<Weight> *distance,
90 const Weight &Final() const { return final_; }
134 vector<Weight> *distance
59 RmEpsilonOptions(Queue *q, float d = kDelta, bool c = true, Weight w = Weight::Zero(), StateId n = kNoStateId) argument
232 typedef typename Arc::Weight Weight; typedef
355 typedef typename Arc::Weight Weight; typedef
395 typedef typename A::Weight Weight; typedef in class:fst::RmEpsilonFstImpl
[all...]
H A Darc-map.h114 typedef typename A::Weight Weight; typedef
131 fst->SetFinal(superfinal, Weight::One());
160 fst->SetFinal(superfinal, Weight::One());
164 fst->SetFinal(s, Weight::Zero());
175 final_arc.weight != Weight::Zero())
178 fst->SetFinal(s, Weight::Zero());
202 typedef typename A::Weight Weight; typedef
236 ofst->SetFinal(superfinal, B::Weight
329 typedef typename B::Weight Weight; typedef in class:fst::ArcMapFstImpl
557 typedef typename B::Weight Weight; typedef in class:fst::ArcMapFst
974 typedef typename A::Weight Weight; typedef in struct:fst::PlusMapper
1008 typedef typename A::Weight Weight; typedef in struct:fst::TimesMapper
1039 typedef typename A::Weight Weight; typedef in struct:fst::InvertWeightMapper
[all...]
/external/openfst/src/script/
H A Dweight-class.cc25 REGISTER_FST_WEIGHT(StdArc::Weight);
26 REGISTER_FST_WEIGHT(LogArc::Weight);
27 REGISTER_FST_WEIGHT(Log64Arc::Weight);
/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;
94 uint32_t Weight = getEdgeWeight(MBB, I); local
95 if (Weight > MaxWeight) {
96 MaxWeight = Weight;
[all...]
/external/openfst/src/include/fst/script/
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 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 Dprint-impl.h43 typedef typename A::Weight Weight; typedef in class:fst::FstPrinter
121 if (show_weight_one_ || arc.weight != Weight::One())
126 Weight final = fst_.Final(s);
127 if (final != Weight::Zero() || !output) {
129 if (show_weight_one_ || final != Weight::One()) {
143 bool show_weight_one_; // print weights equal to Weight::One()
H A Drmepsilon.h66 vector<typename Arc::Weight> *distance,
69 typedef typename Arc::Weight Weight; typedef
71 typename Arc::Weight weight_thresh =
72 *(opts.weight_threshold.GetWeight<Weight>());
100 NaturalShortestFirstQueue<StateId, Weight> queue(*distance);
102 Weight> > ropts(
138 vector<typename Arc::Weight> distance;
160 typename Arc::Weight w = *(args->arg3.GetWeight<typename Arc::Weight>());
[all...]
/external/openfst/src/include/fst/extensions/pdt/
H A Dexpand.h80 typedef typename A::Weight Weight; typedef in class:fst::ExpandFstImpl
137 Weight Final(StateId s) {
140 Weight w = fst_->Final(tuple.state_id);
141 if (w != Weight::Zero() && tuple.stack_id == 0)
144 SetFinal(s, Weight::Zero());
232 typedef typename A::Weight Weight; typedef in class:fst::ExpandFst
340 typedef typename A::Weight Weight; typedef in class:fst::PrunedExpand
940 typedef typename Arc::Weight Weight; typedef
[all...]
/external/llvm/lib/Analysis/
H A DBlockFrequencyInfoImpl.cpp51 typedef BlockFrequencyInfoImplBase::Weight Weight;
78 BlockMass takeMass(uint32_t Weight);
90 BlockMass DitheringDistributer::takeMass(uint32_t Weight) {
91 assert(Weight && "invalid weight");
92 assert(Weight <= RemWeight);
93 BlockMass Mass = RemMass * BranchProbability(Weight, RemWeight);
96 RemWeight -= Weight;
102 Weight::DistType Type) {
115 Weights.push_back(Weight(Typ
260 addToDist(Distribution &Dist, const LoopData *OuterLoop, const BlockNode &Pred, const BlockNode &Succ, uint64_t Weight) argument
[all...]

Completed in 3154 milliseconds

12345