nnet-functions.cc File Reference
#include "nnet2/nnet-nnet.h"
#include "util/stl-utils.h"
Include dependency graph for nnet-functions.cc:

Go to the source code of this file.

Namespaces

 kaldi
 This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for mispronunciations detection tasks, the reference:
 
 kaldi::nnet2
 

Functions

int32 IndexOfSoftmaxLayer (const Nnet &nnet)
 If "nnet" has exactly one softmax layer, this function will return its index; otherwise it will return -1. More...
 
void InsertComponents (const Nnet &src_nnet, int32 c, Nnet *dest_nnet)
 Inserts the components of one neural network into a particular place in the other one. More...
 
void ReplaceLastComponents (const Nnet &src_nnet, int32 num_to_remove, Nnet *dest_nnet)
 Removes the last "num_to_remove" components and adds the components from "src_nnet". More...