1 #pragma once 2 #include <c10/macros/Export.h> 3 #include <limits> 4 5 namespace at { 6 class TensorBase; 7 } 8 9 namespace at::native { 10 11 TORCH_API bool canUse32BitIndexMath(const at::TensorBase &t, int64_t max_elem=std::numeric_limits<int32_t>::max()); 12 13 } 14