28 const WeightClass &weight_threshold, int64_t state_threshold,
35 FstPruneArgs1 args{ifst, ofst, weight_threshold, state_threshold, delta};
36 Apply<Operation<FstPruneArgs1>>(
"Prune", ifst.
ArcType(), &args);
40 int64_t state_threshold,
float delta) {
45 FstPruneArgs2 args{fst, weight_threshold, state_threshold, delta};
46 Apply<Operation<FstPruneArgs2>>(
"Prune", fst->
ArcType(), &args);
REGISTER_FST_OPERATION_3ARCS(Compress, CompressArgs)
std::tuple< MutableFstClass *, const WeightClass &, int64_t, float > FstPruneArgs2
constexpr uint64_t kError
const std::string & ArcType() const final
bool ArcTypesMatch(const M &m, const N &n, const std::string &op_name)
std::tuple< const FstClass &, MutableFstClass *, const WeightClass &, int64_t, float > FstPruneArgs1
bool WeightTypesMatch(const WeightClass &weight, std::string_view op_name) const
void SetProperties(uint64_t props, uint64_t mask)
void Prune(FstPruneArgs1 *args)