18 #include "c10/util/Flags.h" 23 "The backend to use when running the model. The allowed " 24 "backend choices are: builtin, default, nnpack, eigen, mkl, cuda");
26 C10_DEFINE_string(init_net,
"",
"The given net to initialize any parameters.");
30 "Input that is needed for running the network. If " 31 "multiple input needed, use comma separated string.");
35 "Alternate to input_files, if all inputs are simple " 36 "float TensorCPUs, specify the dimension using comma " 37 "separated numbers. If multiple input needed, use " 38 "semicolon to separate the dimension of different " 43 "Input file that contain the serialized protobuf for " 44 "the input blobs. If multiple input needed, use comma " 45 "separated string. Must have the same number of items " 50 "Input type when specifying the input dimension." 51 "The supported types are float, uint8_t.");
52 C10_DEFINE_int(iter, 10,
"The number of iterations to run.");
53 C10_DEFINE_string(net,
"",
"The given net to benchmark.");
57 "Output that should be dumped after the execution " 58 "finishes. If multiple outputs are needed, use comma " 59 "separated string. If you want to dump everything, pass " 60 "'*' as the output value.");
64 "The folder that the output should be written to. This " 65 "folder must already exist in the file system.");
69 "Whether to benchmark individual operators.");
73 "The seconds to sleep before starting the benchmarking.");
75 sleep_between_iteration,
77 "The seconds to sleep between the individual iterations.");
79 sleep_between_net_and_operator,
81 "The seconds to sleep between net and operator runs.");
85 "Whether to write out output in text format for regression purpose.");
86 C10_DEFINE_int(warmup, 0,
"The number of iterations to warm up.");
90 "Whether to evict the cache before running network.");