Sign in
◑
Theme
android
/
platform
/
external
/
pytorch
/
d0e12d1cc8b08ea8770b6ec941372793c4e4d4d0
/
.
/
torch
/
csrc
/
utils
/
cuda_enabled.h
blob: e27c168a8ef46a5860f793e79e9be05a80f27e18 [
file
]
#pragma
once
namespace
torch
{
namespace
utils
{
static
inline
bool
cuda_enabled
()
{
#ifdef
USE_CUDA
return
true
;
#else
return
false
;
#endif
}
}
// namespace utils
}
// namespace torch