ReweightPlusLogArc Struct Reference

#include <remove-eps-local-inl.h>

Public Member Functions

TropicalWeight operator() (const TropicalWeight &a, const TropicalWeight &b)

Detailed Description

Definition at line 35 of file remove-eps-local-inl.h.

Member Function Documentation

◆ operator()()

TropicalWeight operator() ( const TropicalWeight &  a,
const TropicalWeight &  b 

Definition at line 36 of file remove-eps-local-inl.h.

References fst::Plus().

37  {
38  LogWeight a_log(a.Value()), b_log(b.Value());
39  return TropicalWeight(Plus(a_log, b_log).Value());
40  }
LatticeWeightTpl< FloatType > Plus(const LatticeWeightTpl< FloatType > &w1, const LatticeWeightTpl< FloatType > &w2)

The documentation for this struct was generated from the following file: