Move error throwing to default case

This commit is contained in:
Alan Turner
2024-11-18 18:10:11 +00:00
parent 57cdd70b7c
commit 3adf36beaa

View File

@@ -15,8 +15,8 @@ std::string ToString(DataType dt)
case DataType::Half: return "ck::half_t";
case DataType::Int8: return "int8_t";
case DataType::Int32: return "int32_t";
default: throw std::runtime_error("Incorrect data type");
}
throw std::runtime_error("Incorrect data type");
}
std::unordered_map<std::string_view, std::string_view> GetHeaders()