1 #include "c10/util/Flags.h" 5 #include "c10/macros/Macros.h" 18 gflags::SetUsageMessage(str);
22 return gflags::ProgramUsage();
29 return gflags::ParseCommandLineFlags(pargc, pargv,
true);
38 #endif // C10_USE_GFLAGS C10_API void SetUsageMessage(const std::string &str)
Sets the usage message when a commandline tool is called with "--help".
C10_API const char * UsageMessage()
Returns the usage message for the commandline tool set by SetUsageMessage.
To register your own kernel for an operator, do in one (!) cpp file: C10_REGISTER_KERNEL(OperatorHand...
C10_API bool CommandLineFlagsHasBeenParsed()
Checks if the commandline flags has already been passed.
C10_API bool ParseCommandLineFlags(int *pargc, char ***pargv)
Parses the commandline flags.