131 {
132 TypeFilterInitOption one_shot_fuser_options;
133 one_shot_fuser_options.config_path = options.config_path;
135
136 std::string config_file = "ccrf_type_fusion.conf";
137 if (!options.config_file.empty()) {
138 config_file = options.config_file;
139 }
140 config_file =
GetConfigFile(options.config_path, config_file);
141 CCRFTypeFusionConfig config;
143
144 std::string transition_property_file_path
146 config.transition_property_file_path());
147 s_alpha_ = config.transition_matrix_alpha();
154 }
156
160 }
161 }
163 return true;
164}
EIGEN_MAKE_ALIGNED_OPERATOR_NEW bool Init(const TypeFilterInitOption &option) override
bool GetProtoFromFile(const std::string &file_name, google::protobuf::Message *message)
Parses the content of the file specified by the file_name as a representation of protobufs,...
bool LoadSingleMatrixFile(const std::string &filename, Matrixd *matrix)
Load single matrix from file
void NormalizeRow(Matrixd *prob)
Compute normalize row of Matrixd
std::string GetConfigFile(const std::string &config_path, const std::string &config_file)