Sign in
◑
Theme
android
/
platform
/
external
/
pytorch
/
d0e12d1cc8b08ea8770b6ec941372793c4e4d4d0
/
.
/
aten
/
src
/
ATen
/
native
/
CanUse32BitIndexMath.h
blob: 26aa7befd06ed7c53edcc66059a0f043f3298341 [
file
]
#pragma
once
#include
<c10/macros/Export.h>
#include
<limits>
namespace
at
{
class
TensorBase
;
}
namespace
at
{
namespace
native
{
TORCH_API
bool
canUse32BitIndexMath
(
const
at
::
TensorBase
&
t
,
int64_t
max_elem
=
std
::
numeric_limits
<int32_t>
::
max
());
}}