24 int main(
int argc,
char *argv[]) {
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";
45 std::string nnet_rxfilename = po.
GetArg(1);
51 Input ki(nnet_rxfilename, &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...
void PrintUsage(bool print_command_line=false)
Prints the usage documentation [provided in the constructor].
The class ParseOptions is for parsing command-line options; see Parsing command-line options for more...
int Read(int argc, const char *const *argv)
Parses the command line options and fills the ParseOptions-registered variables.
void Read(const std::string &rxfilename)
Read Nnet from 'rxfilename',.
std::string GetArg(int param) const
Returns one of the positional parameters; 1-based indexing for argc/argv compatibility.
int NumArgs() const
Number of positional parameters (c.f. argc-1).
std::string Info() const
Create string with human readable description of the nnet,.
int main(int argc, char *argv[])