23int entry(
const int argc,
char **argv)
26 arser.add_argument(
"--num_inputs")
27 .type(arser::DataType::INT32)
29 .help(
"number of input layers (default:1)");
30 arser.add_argument(
"--num_ops")
31 .type(arser::DataType::INT32)
33 .help(
"number of operators (default:1)");
34 arser.add_argument(
"minmax").help(
"path to generated minmax data");
38 arser.parse(argc, argv);
40 catch (
const std::runtime_error &err)
42 std::cout << err.what() << std::endl;
47 auto num_inputs =
arser.get<
int>(
"--num_inputs");
48 auto num_ops =
arser.get<
int>(
"--num_ops");
49 auto data_output_path =
arser.get<std::string>(
"minmax");
53 if (num_inputs <= 0 || num_ops <= 0)
55 std::cout <<
"num_inputs and num_ops must be positive integers." << std::endl;
59 mspec.n_ops = num_ops;
61 H5Writer writer(mspec, data_output_path);