[PYTHON][SRC][BINDING] Improved code portability across compilers

This commit is contained in:
Philippe Tillet
2020-04-17 13:51:47 -04:00
committed by Philippe Tillet
parent c36ad6bf8a
commit f805ff278a

View File

@@ -408,7 +408,7 @@ oss << R"(
)"; )";
gen_tf_register_op(oss, cc_name, args, allocs); gen_tf_register_op(oss, cc_name, args, allocs);
return {oss.str(), name}; return std::tuple<std::string, std::string>{oss.str(), name};
} }
@@ -598,7 +598,7 @@ extern std::map<size_t, int64_t> i64scalar_map;
oss << std::endl; oss << std::endl;
oss << "static auto registry = torch::RegisterOperators(\"triton::" << name << "\", &" << name << ");" << std::endl; oss << "static auto registry = torch::RegisterOperators(\"triton::" << name << "\", &" << name << ");" << std::endl;
return {oss.str(), name}; return std::tuple<std::string, std::string>{oss.str(), name};
} }
/* Function signature */ /* Function signature */