1 #ifndef CAFFE2_OPERATORS_CTC_BEAM_SEARCH_OP_H_ 2 #define CAFFE2_OPERATORS_CTC_BEAM_SEARCH_OP_H_ 4 #include "caffe2/core/context.h" 5 #include "caffe2/core/operator.h" 9 template <
class Context>
12 USE_OPERATOR_CONTEXT_FUNCTIONS;
13 template <
class... Args>
16 beam_width_ = this->
template GetSingleArgument<int32_t>(
"beam_width", 10);
18 this->
template GetSingleArgument<float>(
"prune_threshold", 0.001);
21 bool RunOnDevice()
override;
25 float prune_threshold_;
26 INPUT_TAGS(INPUTS, SEQ_LEN);
27 OUTPUT_TAGS(OUTPUT_LEN, VALUES);
33 #endif // CAFFE2_OPERATORS_CTC_BEAM_SEARCH_OP_H_
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...