29#include "neml2/misc/types.h"
54 static const std::vector<std::
string>
sections;
65 const std::
string & additional_input =
"") const = 0;
71T
parse(
const std::string & raw_str);
Selection of an enum value from a list of choices.
Definition EnumSelection.h:41
Selection of multiple enum value from a list of choices.
Definition MultiEnumSelection.h:41
virtual InputFile parse(const std::filesystem::path &filename, const std::string &additional_input="") const =0
Deserialize a file.
static const std::vector< std::string > sections
Known top-level sections in the input file.
Definition Parser.h:54
Parser(const Parser &)=default
Parser(Parser &&) noexcept=default
T parse(const std::string &raw_str)
Definition DiagnosticsInterface.h:31
c10::Device Device
Definition types.h:69
c10::SmallVector< Size, 8 > TensorShape
Definition types.h:72