water.H2O.getCloudSize()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(123)

本文整理了Java中water.H2O.getCloudSize()方法的一些代码示例,展示了H2O.getCloudSize()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。H2O.getCloudSize()方法的具体详情如下:
包路径:water.H2O
类名称:H2O
方法名:getCloudSize

H2O.getCloudSize介绍

暂无

代码示例

代码示例来源:origin: h2oai/h2o-3

if (H2O.getCloudSize() != 1)
 throw new IllegalArgumentException("Deep Water currently only supports execution of 1 node.");
_output._origNames = params._train.get().names();

代码示例来源:origin: ai.h2o/h2o-ext-xgboost

final void buildModel() {
 if ((XGBoostModel.XGBoostParameters.Backend.auto.equals(_parms._backend) || XGBoostModel.XGBoostParameters.Backend.gpu.equals(_parms._backend)) &&
     hasGPU(_parms._gpu_id) && H2O.getCloudSize() == 1 && _parms.gpuIncompatibleParams().isEmpty()) {
  synchronized (XGBoostGPULock.lock(_parms._gpu_id)) {
   buildModelImpl();
  }
 } else {
  buildModelImpl();
 }
}

代码示例来源:origin: ai.h2o/h2o-ext-xgboost

if (H2O.getCloudSize() > 1) {
 Log.info("GPU backend not supported in distributed mode. Using CPU backend.");
} else if (! p.gpuIncompatibleParams().isEmpty()) {

代码示例来源:origin: ai.h2o/h2o-algos

if (H2O.getCloudSize() != 1)
 throw new IllegalArgumentException("Deep Water currently only supports execution of 1 node.");
_output._origNames = params._train.get().names();

代码示例来源:origin: ai.h2o/h2o-ext-xgboost

error("_backend", "GPU backend (gpu_id: " + _parms._gpu_id + ") is not functional. Check CUDA_PATH and/or GPU installation.");
if (H2O.getCloudSize() > 1)
 error("_backend", "GPU backend is not supported in distributed mode.");

相关文章