本文整理了Java中org.nd4j.linalg.factory.Nd4j.readBinary()
方法的一些代码示例,展示了Nd4j.readBinary()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Nd4j.readBinary()
方法的具体详情如下:
包路径:org.nd4j.linalg.factory.Nd4j
类名称:Nd4j
方法名:readBinary
[英]Read a binary ndarray from the given file
[中]从给定文件中读取二进制数据数组
代码示例来源:origin: deeplearning4j/nd4j
/**
* Load the given mean and std
* @param mean the mean file
* @param std the std file
* @throws IOException
*/
public void load(File mean, File std) throws IOException {
this.mean = Nd4j.readBinary(mean);
this.std = Nd4j.readBinary(std);
}
代码示例来源:origin: deeplearning4j/nd4j
/**
* Load distribution statistics from the file system
*
* @param meanFile file containing the means
* @param stdFile file containing the standard deviations
*/
public static DistributionStats load(@NonNull File meanFile, @NonNull File stdFile) throws IOException {
return new DistributionStats(Nd4j.readBinary(meanFile), Nd4j.readBinary(stdFile));
}
代码示例来源:origin: deeplearning4j/nd4j
/**
* Load the given min and max
*
* @param statistics the statistics to load
* @throws IOException
*/
public void load(File... statistics) throws IOException {
setFeatureStats(new MinMaxStats(Nd4j.readBinary(statistics[0]), Nd4j.readBinary(statistics[1])));
if (isFitLabel()) {
setLabelStats(new MinMaxStats(Nd4j.readBinary(statistics[2]), Nd4j.readBinary(statistics[3])));
}
}
代码示例来源:origin: deeplearning4j/dl4j-examples
params = Nd4j.readBinary(content[i]);
} catch (Throwable t){
log.error("Error loading file: {}", content[i].getAbsolutePath(), t);
代码示例来源:origin: deeplearning4j/dl4j-examples
SparkComputationGraph scgForEval = new SparkComputationGraph(sc, cgForEval, null);
for (ToEval te : toEval) {
INDArray params = Nd4j.readBinary(te.getFile());
cgForEval.params().assign(params);
代码示例来源:origin: org.nd4j/nd4j-api
/**
* Load the given mean and std
* @param mean the mean file
* @param std the std file
* @throws IOException
*/
public void load(File mean, File std) throws IOException {
this.mean = Nd4j.readBinary(mean);
this.std = Nd4j.readBinary(std);
}
代码示例来源:origin: org.nd4j/nd4j-api
/**
* Load distribution statistics from the file system
*
* @param meanFile file containing the means
* @param stdFile file containing the standard deviations
*/
public static DistributionStats load(@NonNull File meanFile, @NonNull File stdFile) throws IOException {
return new DistributionStats(Nd4j.readBinary(meanFile), Nd4j.readBinary(stdFile));
}
代码示例来源:origin: org.nd4j/nd4j-api
/**
* Load the given min and max
*
* @param statistics the statistics to load
* @throws IOException
*/
public void load(File... statistics) throws IOException {
setFeatureStats(new MinMaxStats(Nd4j.readBinary(statistics[0]), Nd4j.readBinary(statistics[1])));
if (isFitLabel()) {
setLabelStats(new MinMaxStats(Nd4j.readBinary(statistics[2]), Nd4j.readBinary(statistics[3])));
}
}
内容来源于网络,如有侵权,请联系作者删除!