10namespace Autoscheduler {
13 std::map<std::string, std::string> extra;
18 static void parse_or_die(
const std::string &str, T *value) {
19 std::istringstream
iss(str);
24 if constexpr (
sizeof(T) ==
sizeof(
char) && !std::is_same<T, bool>::value) {
44 bool parse(
const std::string &key, T *value) {
45 auto it = extra.find(key);
46 if (
it == extra.end()) {
49 parse_or_die(
it->second, value);
56 std::ostringstream
oss;
57 oss <<
"Autoscheduler Params contain unknown keys:\n";
58 for (
const auto &
it : extra) {
59 oss <<
" " <<
it.first <<
"\n";
bool parse(const std::string &key, T *value)
ParamParser(const std::map< std::string, std::string > &m)
This file defines the class FunctionDAG, which is our representation of a Halide pipeline,...
@ Internal
Not visible externally, similar to 'static' linkage in C.
Internal::ConstantInterval cast(Type t, const Internal::ConstantInterval &a)
Cast operators for ConstantIntervals.