本文整理了Java中org.nd4j.linalg.factory.Nd4j.accumulate()
方法的一些代码示例,展示了Nd4j.accumulate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Nd4j.accumulate()
方法的具体详情如下:
包路径:org.nd4j.linalg.factory.Nd4j
类名称:Nd4j
方法名:accumulate
[英]This method sums given arrays and stores them to a new target array
[中]此方法对给定数组求和,并将其存储到新的目标数组
代码示例来源:origin: deeplearning4j/nd4j
/**
* This method sums given arrays and stores them to a given target array
*
* @param target
* @param arrays
* @return
*/
public static INDArray accumulate(INDArray target, Collection<INDArray> arrays) {
return accumulate(target, arrays.toArray(new INDArray[0]));
}
代码示例来源:origin: deeplearning4j/nd4j
/**
* This method sums given arrays and stores them to a new target array
*
* @param arrays
* @return
*/
public static INDArray accumulate(Collection<INDArray> arrays) {
if (arrays == null|| arrays.size() == 0)
throw new ND4JIllegalStateException("Input for accumulation is null or empty");
return accumulate(arrays.toArray(new INDArray[0]));
}
代码示例来源:origin: deeplearning4j/nd4j
/**
* This method sums given arrays and stores them to a new array
*
* @param arrays
* @return
*/
public static INDArray accumulate(INDArray... arrays) {
if (arrays == null|| arrays.length == 0)
throw new ND4JIllegalStateException("Input for accumulation is null or empty");
return accumulate(Nd4j.create(arrays[0].shape(), arrays[0].ordering()), arrays);
}
代码示例来源:origin: org.nd4j/nd4j-api
/**
* This method sums given arrays and stores them to a given target array
*
* @param target
* @param arrays
* @return
*/
public static INDArray accumulate(INDArray target, Collection<INDArray> arrays) {
return accumulate(target, arrays.toArray(new INDArray[0]));
}
代码示例来源:origin: org.nd4j/nd4j-api
/**
* This method sums given arrays and stores them to a new target array
*
* @param arrays
* @return
*/
public static INDArray accumulate(Collection<INDArray> arrays) {
if (arrays == null|| arrays.size() == 0)
throw new ND4JIllegalStateException("Input for accumulation is null or empty");
return accumulate(arrays.toArray(new INDArray[0]));
}
代码示例来源:origin: org.nd4j/nd4j-api
/**
* This method sums given arrays and stores them to a new array
*
* @param arrays
* @return
*/
public static INDArray accumulate(INDArray... arrays) {
if (arrays == null|| arrays.length == 0)
throw new ND4JIllegalStateException("Input for accumulation is null or empty");
return accumulate(Nd4j.create(arrays[0].shape(), arrays[0].ordering()), arrays);
}
代码示例来源:origin: org.deeplearning4j/deeplearning4j-nn
Nd4j.accumulate(storage, candidates);
内容来源于网络,如有侵权,请联系作者删除!