mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Remove apparently unnecessary std::remove_cv_t (#66254)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/66254 `std::decay_t` already implies dropping the const Test Plan: Sandcastle Reviewed By: malfet Differential Revision: D31465856 fbshipit-source-id: 851cdb9194354fe9a89b3a37a4463a43dbbcd77a
This commit is contained in:
parent
4cb4d11e0b
commit
109aa135e6
|
|
@ -151,7 +151,7 @@ inline constexpr type_index get_type_index() {
|
|||
// type index through std::integral_constant.
|
||||
return type_index{std::integral_constant<
|
||||
uint64_t,
|
||||
detail::type_index_impl<std::remove_cv_t<std::decay_t<T>>>()>::value};
|
||||
detail::type_index_impl<std::decay_t<T>>()>::value};
|
||||
#else
|
||||
// There's nothing in theory preventing us from running this on device code
|
||||
// except for nvcc throwing a compiler error if we enable it.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user