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

edgify / torch   python

Repository URL to install this package:

Version: 2.0.1+cpu 

/ include / torch / csrc / utils / cuda_enabled.h

#pragma once

namespace torch {
namespace utils {

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

} // namespace utils
} // namespace torch