警告:このAPIは非推奨であり、置き換えが安定した後、 TensorFlowの将来のバージョンで削除される予定です。
Graph.WhileSubgraphBuilder
buildSubgraphメソッドをオーバーライドしてwhileループの条件付きサブグラフまたは本体サブグラフを作成する抽象クラスをインスタンス化するために使用されます。 Java 8以降、これを代わりに使用して、同じ目的でラムダを作成することもできます。
whileLoop(Output[], org.tensorflow.Graph.WhileSubgraphBuilder, org.tensorflow.Graph.WhileSubgraphBuilder, String)
呼び出すときに使用されます
使用例(Java 8より前):
WhileSubgraphBuilder bodyGraphBuilder = new WhileSubgraphBuilder() { @Override public void buildSubgraph(Graph bodyGraph, Output<?>[] bodyInputs, Output<?>[] bodyOutputs) { // build body subgraph
}; }
使用例(Java 8以降):
WhileSubgraphBuilder bodyGraphBuilder = (bodyGraph, bodyInputs, bodyOutputs) -> { // build body subgraph
ます;}
パブリックメソッド
whileループの条件付きサブグラフまたは本文サブグラフを作成するコードを使用してユーザーがオーバーライドする
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-05-14 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"必要な情報がない"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"複雑すぎる / 手順が多すぎる"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"最新ではない"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻訳に関する問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"サンプル / コードに問題がある"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"その他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"わかりやすい"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"問題の解決に役立った"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"その他"
}]