blob: 0e3c2f30a83e3d0e2ca4eb7fc0e3e0ff026560e5 [file] [log] [blame]
#pragma once
namespace torch::utils {
inline constexpr bool cuda_enabled() {
#ifdef USE_CUDA
return true;
#else
return false;
#endif
}
} // namespace torch::utils