--- aten/src/ATen/core/boxing/impl/boxing.h.orig 2024-06-16 07:55:38.662684245 +0200 +++ aten/src/ATen/core/boxing/impl/boxing.h 2024-06-16 07:58:43.690715864 +0200 @@ -39,7 +39,15 @@ struct has_ivalue_to : std::false_type {}; template -struct has_ivalue_to().to())>> +struct ivalue_to_helper +{ + using type = decltype(std::declval().template to()); +}; +template +using ivalue_to_helper_t = typename ivalue_to_helper::type; + +template +struct has_ivalue_to>> : std::true_type {};