org.nd4j.linalg.factory.Nd4j.zerosLike()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(102)

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

Nd4j.zerosLike介绍

[英]Empty like
[中]空空如也

代码示例

代码示例来源:origin: deeplearning4j/nd4j

@Override
public INDArray noOp() {
  return Nd4j.zerosLike(x());
}

代码示例来源:origin: org.nd4j/nd4j-api

@Override
public INDArray noOp() {
  return Nd4j.zerosLike(x());
}

代码示例来源:origin: apache/opennlp-sandbox

INDArray mWxh = Nd4j.zerosLike(wxh);
INDArray mWhh = Nd4j.zerosLike(whh);
INDArray mWhy = Nd4j.zerosLike(why);
INDArray mbh = Nd4j.zerosLike(bh);
INDArray mby = Nd4j.zerosLike(by);
 INDArray dWxh = Nd4j.zerosLike(wxh);
 INDArray dWhh = Nd4j.zerosLike(whh);
 INDArray dWhy = Nd4j.zerosLike(why);
 INDArray dbh = Nd4j.zerosLike(bh);
 INDArray dby = Nd4j.zerosLike(by);

代码示例来源:origin: apache/opennlp-sandbox

INDArray mWxh = Nd4j.zerosLike(wxh);
INDArray mWxh2 = Nd4j.zerosLike(wxh2);
INDArray mWhh = Nd4j.zerosLike(whh);
INDArray mWhh2 = Nd4j.zerosLike(whh2);
INDArray mWh2y = Nd4j.zerosLike(wh2y);
INDArray mbh = Nd4j.zerosLike(bh);
INDArray mbh2 = Nd4j.zerosLike(bh2);
INDArray mby = Nd4j.zerosLike(by);
 INDArray dWxh = Nd4j.zerosLike(wxh);
 INDArray dWxh2 = Nd4j.zerosLike(wxh2);
 INDArray dWhh = Nd4j.zerosLike(whh);
 INDArray dWhh2 = Nd4j.zerosLike(whh2);
 INDArray dWh2y = Nd4j.zerosLike(wh2y);
 INDArray dbh = Nd4j.zerosLike(bh);
 INDArray dbh2 = Nd4j.zerosLike(bh);
 INDArray dby = Nd4j.zerosLike(by);

代码示例来源:origin: neo4j-graph-analytics/ml-models

progressLogger.log("Populating adjacency matrix 2");
final INDArray transpose = embedding.transpose();
final INDArray zeros = Nd4j.zerosLike(transpose);
final double newLambda = transpose.columns() * lambda;
final INDArray temp = Nd4j.zerosLike(transpose);
for (int i = numPrevFeatures; i < embedding.columns(); i++) {
  Nd4j.copy(transpose, temp);

代码示例来源:origin: apache/opennlp-sandbox

INDArray dhNext = Nd4j.zerosLike(hPrev);
INDArray dh2Next = Nd4j.zerosLike(hPrev2);

代码示例来源:origin: apache/opennlp-sandbox

INDArray dhNext = Nd4j.zerosLike(hPrev);
for (int t = (int) (inputs.length() - 1); t >= 0; t--) {
 INDArray dy = ps.getRow(t);

相关文章