Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 24 of file nnet-info.cc.
References ParseOptions::GetArg(), Nnet::Info(), KALDI_LOG, ParseOptions::NumArgs(), ParseOptions::PrintUsage(), ParseOptions::Read(), Nnet::Read(), and Input::Stream().
26 using namespace kaldi;
31 "Print human-readable information about the neural network.\n" 32 "(topology, various weight statistics, etc.) It prints to stdout.\n" 33 "Usage: nnet-info [options] <nnet-in>\n" 35 " nnet-info 1.nnet\n";
40 if (po.NumArgs() != 1) {
45 std::string nnet_rxfilename = po.GetArg(1);
51 Input ki(nnet_rxfilename, &binary_read);
52 nnet.
Read(ki.Stream(), binary_read);
55 std::cout << nnet.
Info();
57 KALDI_LOG <<
"Printed info about " << nnet_rxfilename;
59 }
catch(
const std::exception &e) {
60 std::cerr << e.what();
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
The class ParseOptions is for parsing command-line options; see Parsing command-line options for more...
void Read(const std::string &rxfilename)
Read Nnet from 'rxfilename',.
std::string Info() const
Create string with human readable description of the nnet,.