Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
torch / include / torch / csrc / utils / cuda_enabled.h
Size: Mime:
#pragma once

namespace torch::utils {

inline constexpr bool cuda_enabled() {
#ifdef USE_CUDA
  return true;
#else
  return false;
#endif
}

} // namespace torch::utils