27 int32 input_dim = 40, output_dim = 500;
30 bool binary = (rand() % 2 == 0);
31 std::ostringstream os;
32 nnet->
Write(os, binary);
34 std::istringstream is(os.str());
35 nnet2.
Read(is, binary);
37 std::ostringstream os2;
38 nnet2.
Write(os2, binary);
51 using namespace kaldi;
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
void Read(std::istream &is, bool binary)
Nnet * GenRandomNnet(int32 input_dim, int32 output_dim)
This function generates a random neural net, for testing purposes.
void Write(std::ostream &os, bool binary) const
#define KALDI_ASSERT(cond)