📄 tr_st_set_1.cc
字号:
// file: tr_st_set_1.cc//// isip include files//#include "train_state.h"#include "train_state_constants.h" // method: set_weights_cc//// arguments:// float_4* weights : (input) mixture weights //// return: a logical_1 indicating success//// this method sets the mixture weights//logical_1 Train_State::set_weights_cc(float_4* weights_a) { // delete existing memory // if (weights_d != (float_4*)NULL) { delete [] weights_d; } weights_d = (float_4*)NULL; // allocate memory for mixture weights and copy data // weights_d = new float_4[num_mixtures_d]; memcpy(weights_d, weights_a, num_mixtures_d * sizeof(float_4)); // exit gracefully // return ISIP_TRUE;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -