本文整理了Java中org.deeplearning4j.nn.multilayer.MultiLayerNetwork.isInitCalled()
方法的一些代码示例,展示了MultiLayerNetwork.isInitCalled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MultiLayerNetwork.isInitCalled()
方法的具体详情如下:
包路径:org.deeplearning4j.nn.multilayer.MultiLayerNetwork
类名称:MultiLayerNetwork
方法名:isInitCalled
暂无
代码示例来源:origin: org.deeplearning4j/deeplearning4j-nn
/**
* Returns a 1 x m vector where the vector is composed of
* a flattened vector of all of the weights for the
* various neuralNets and output layer
*
* @return the params for this neural net
*/
@Override
public int numParams() {
if (isInitCalled())
return numParams(false);
else
log.info("Model is not initialized. Initialize net with init()");
return 0;
}
代码示例来源:origin: org.deeplearning4j/deeplearning4j-nn
/**
* This method allows you to specificy GradientsAccumulator instance to be used with this model
*
* PLEASE NOTE: Do not use this method unless you understand how to use GradientsAccumulator & updates sharing.
* PLEASE NOTE: Do not use this method on standalone model
*
* @param accumulator
*/
public void setGradientsAccumulator(GradientsAccumulator accumulator) {
if (!isInitCalled())
init();
solver.getOptimizer().setGradientsAccumulator(accumulator);
}
代码示例来源:origin: org.deeplearning4j/deeplearning4j-parallel-wrapper_2.11
if (!((MultiLayerNetwork) replicatedModel).isInitCalled())
this.replicatedModel.init();
代码示例来源:origin: org.deeplearning4j/deeplearning4j-parallel-wrapper
if (!((MultiLayerNetwork) replicatedModel).isInitCalled())
this.replicatedModel.init();
内容来源于网络,如有侵权,请联系作者删除!