tr_st_cstr_0.cc

来自「这是处理语音信号的程序」· CC 代码 · 共 66 行

CC
66
字号
// file: tr_st_cstr_0.cc//// isip include files//#include "train_state.h"#include "train_state_constants.h" // method: destructor//// arguments: none//// return: none//// this is the destructor for the class//Train_State::~Train_State() {  // free memory in scale  //  if (scale_d != (float_4*)NULL) {    delete [] scale_d;  }  scale_d = (float_4*)NULL;    // free memory in weights  //  if (weights_d != (float_4*)NULL) {    delete [] weights_d;  }  weights_d = (float_4*)NULL;    // free memory in mean  //  if (mean_d != (float_4**)NULL) {    for (int_4 i = 0; i < num_mixtures_d; i++) {      if (mean_d[i] != (float_4*)NULL) {        delete [] mean_d[i];        mean_d[i] = (float_4*)NULL;      }    }    delete [] mean_d;    mean_d = (float_4**)NULL;  }    // free memory in covar  //  if (covar_d != (float_4**)NULL) {    for (int_4 i = 0; i < num_mixtures_d; i++) {      if (covar_d[i] != (float_4*)NULL) {        delete [] covar_d[i];        covar_d[i] = (float_4*)NULL;      }    }    delete [] covar_d;    covar_d = (float_4**)NULL;  }  // reset the mixture number  //  num_mixtures_d = TRAIN_STATE_NUM_MIXTURES;    // exit gracefully  //}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?