/external/openfst/src/test/ |
H A D | weight-tester.h | 32 // 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/srec/tools/thirdparty/OpenFst/fst/lib/ |
H A D | random-weight.h | 39 typedef TropicalWeight Weight; typedef in class:fst::TropicalWeightGenerator 46 Weight operator() () const { 49 return Weight::Zero(); 51 return Weight(static_cast<float>(n)); 66 typedef LogWeight Weight; typedef in class:fst::LogWeightGenerator 73 Weight operator() () const { 76 return Weight::Zero(); 78 return Weight(static_cast<float>(n)); 94 typedef StringWeight<L, S> Weight; typedef in class:fst::StringWeightGenerator 101 Weight operato 129 typedef ProductWeight<W1, W2> Weight; typedef in class:fst::ProductWeightGenerator 154 typedef GallicWeight<L, W, S> Weight; typedef in class:fst::GallicWeightGenerator [all...] |
H A D | prune.h | 31 typedef typename A::Weight Weight; typedef in class:fst::PruneOptions 34 Weight threshold; 39 vector<Weight> *idistance; 42 vector<Weight> *fdistance; 44 PruneOptions(const Weight& t, ArcFilter f, vector<Weight> *id = 0, 45 vector<Weight> *fd = 0) 58 typedef typename Arc::Weight Weight; typedef 144 typedef typename Arc::Weight Weight; typedef [all...] |
H A D | reweight.h | 30 // 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 D | shortest-distance.h | 58 typedef typename Arc::Weight Weight; typedef in class:fst::ShortestDistanceState 62 vector<Weight> *distance, 79 vector<Weight> *distance_; 85 vector<Weight> rdistance_; // Relaxation distance. 99 if (!(Weight::Properties() & kRightSemiring)) 100 LOG(FATAL) << "ShortestDistance: Weight needs to be right distributive: " 101 << Weight::Type(); 115 distance_->push_back(Weight::Zero()); 116 rdistance_.push_back(Weight 234 typedef typename Arc::Weight Weight; typedef [all...] |
H A D | arc.h | 32 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 D | shortest-path.h | 63 vector<typename Arc::Weight> *distance, 66 typedef typename Arc::Weight Weight; typedef 75 vector<Weight> rdistance; 82 Weight f_distance = Weight::Zero(); 90 if ((Weight::Properties() & (kPath | kRightSemiring)) 92 LOG(FATAL) << "SingleShortestPath: Weight needs to have the path" 93 << " property and be right distributive: " << Weight::Type(); 96 distance->push_back(Weight 170 typedef W Weight; typedef in class:fst::ShortestPathCompare 232 typedef typename Arc::Weight Weight; typedef [all...] |
H A D | randgen.h | 44 typedef typename A::Weight Weight; typedef in struct:fst::UniformArcSelector 51 if (fst.Final(s) != Weight::Zero()) 59 // the state). Weight::zero transitions are disregarded. 60 // Assumes Weight::Value() accesses the floating point 65 typedef typename A::Weight Weight; typedef in struct:fst::LogProbArcSelector 119 typedef typename Arc::Weight Weight; typedef 136 ifst.Final(opts.source) == Weight [all...] |
H A D | reverse.h | 34 // 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()) {
|
/external/openfst/src/include/fst/ |
H A D | random-weight.h | 50 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 D | shortest-distance.h | 75 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 D | prune.h | 37 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 D | reweight.h | 35 // 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 D | shortest-path.h | 43 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 D | arc.h | 46 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 D | accumulator.h | 46 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 D | push.h | 44 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 D | reverse.h | 41 // 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 D | randequivalent.h | 48 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);
|
/external/openfst/src/script/ |
H A D | weight-class.cc | 25 REGISTER_FST_WEIGHT(StdArc::Weight); 26 REGISTER_FST_WEIGHT(LogArc::Weight); 27 REGISTER_FST_WEIGHT(Log64Arc::Weight);
|
/external/llvm/lib/CodeGen/ |
H A D | MachineBranchProbabilityInfo.cpp | 41 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...] |
/external/openfst/src/include/fst/script/ |
H A D | prune.h | 56 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 D | reweight.h | 37 typedef typename Arc::Weight Weight; typedef 38 vector<Weight> potentials(args->arg2.size()); 41 potentials[i] = *(args->arg2[i].GetWeight<Weight>());
|
H A D | print-impl.h | 43 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()
|
/external/openfst/src/include/fst/extensions/pdt/ |
H A D | expand.h | 80 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...] |