xref: /aosp_15_r20/external/pytorch/aten/src/ATen/native/CanUse32BitIndexMath.h (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
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