警告:この API は非推奨であり、置き換えが安定した後の TensorFlow の将来のバージョンでは削除される予定です。
Output
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Operation
によって生成されるテンソルへのシンボリック ハンドル。
Output<T>
Tensor<T>
への記号ハンドルです。 。テンソルの値は、 Session
でOperation
を実行することによって計算されます。
Operand
インターフェイスを実装することにより、このクラスのインスタンスはOp
インスタンスに対するオペランドとしても機能します。
パブリックメソッド
出力<T> | |
データ・タイプ | データ・タイプ() この出力によって参照されるテンソルの DataType を返します。 |
ブール値 | |
整数 | |
整数 | 索引() オペレーションの出力にインデックスを返します。 |
手術 | オプ() この出力によって参照されるテンソルを生成するオペレーションを返します。 |
形 | 形() この出力によって参照されるテンソルの (おそらく部分的に既知の) 形状を返します。 |
テンソル<T> | |
弦 | |
継承されたメソッド
クラスjava.lang.Objectからブール値 | 等しい(オブジェクト arg0) |
最終クラス<?> | getクラス() |
整数 | ハッシュコード() |
最後の空白 | 通知する() |
最後の空白 | すべて通知() |
弦 | toString () |
最後の空白 | wait (long arg0, int arg1) |
最後の空白 | 待機(長い引数0) |
最後の空白 | 待って() |
パブリックメソッド
public Output <T> asOutput ()
テンソルのシンボリック ハンドルを返します。
TensorFlow オペレーションへの入力は、別の TensorFlow オペレーションの出力です。このメソッドは、入力の計算を表すシンボリック ハンドルを取得するために使用されます。
public DataType dataType ()
この出力によって参照されるテンソルの DataType を返します。
public booleanに等しい(オブジェクト o)
この出力によって参照されるテンソルを生成するオペレーションを返します。
パブリックシェイプシェイプ()
この出力によって参照されるテンソルの (おそらく部分的に既知の) 形状を返します。
パブリックテンソル<T> tensor ()
投げる
IllegalStateException | この出力がグラフから得られたものである場合 |
---|
public String toString ()
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[],[],null,["# Output\n\npublic final class **Output** \nA symbolic handle to a tensor produced by an [Operation](/api_docs/java/org/tensorflow/Operation).\n\nAn `Output<T>` is a symbolic handle to a `Tensor<T>`. The value of the tensor is\ncomputed by executing the [Operation](/api_docs/java/org/tensorflow/Operation) in a [Session](/api_docs/java/org/tensorflow/Session).\n\nBy implementing the [Operand](/api_docs/java/org/tensorflow/Operand) interface, instances of this class also act as operands to\n[Op](/api_docs/java/org/tensorflow/op/Op) instances.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### Public Methods\n\n|------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Output](/api_docs/java/org/tensorflow/Output)\\\u003cT\\\u003e | [asOutput](/api_docs/java/org/tensorflow/Output#asOutput())() Returns the symbolic handle of a tensor. |\n| [DataType](/api_docs/java/org/tensorflow/DataType) | [dataType](/api_docs/java/org/tensorflow/Output#dataType())() Returns the DataType of the tensor referred to by this Output. |\n| boolean | [equals](/api_docs/java/org/tensorflow/Output#equals(java.lang.Object))(Object o) |\n| int | [hashCode](/api_docs/java/org/tensorflow/Output#hashCode())() |\n| int | [index](/api_docs/java/org/tensorflow/Output#index())() Returns the index into the outputs of the Operation. |\n| [Operation](/api_docs/java/org/tensorflow/Operation) | [op](/api_docs/java/org/tensorflow/Output#op())() Returns the Operation that will produce the tensor referred to by this Output. |\n| [Shape](/api_docs/java/org/tensorflow/Shape) | [shape](/api_docs/java/org/tensorflow/Output#shape())() Returns the (possibly partially known) shape of the tensor referred to by this Output. |\n| [Tensor](/api_docs/java/org/tensorflow/Tensor)\\\u003cT\\\u003e | [tensor](/api_docs/java/org/tensorflow/Output#tensor())() Returns the tensor at this output. |\n| String | [toString](/api_docs/java/org/tensorflow/Output#toString())() |\n\n### Inherited Methods\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| boolean | equals(Object arg0) |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nFrom interface [org.tensorflow.Operand](/api_docs/java/org/tensorflow/Operand) \n\n|--------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| abstract [Output](/api_docs/java/org/tensorflow/Output)\\\u003cT\\\u003e | [asOutput](/api_docs/java/org/tensorflow/Operand#asOutput())() Returns the symbolic handle of a tensor. |\n\nPublic Methods\n--------------\n\n#### public [Output](/api_docs/java/org/tensorflow/Output)\\\u003cT\\\u003e\n**asOutput**\n()\n\nReturns the symbolic handle of a tensor.\n\nInputs to TensorFlow operations are outputs of another TensorFlow operation. This method is\nused to obtain a symbolic handle that represents the computation of the input.\n\n\u003cbr /\u003e\n\n#### public [DataType](/api_docs/java/org/tensorflow/DataType)\n**dataType**\n()\n\nReturns the DataType of the tensor referred to by this Output. \n\n#### public boolean\n**equals**\n(Object o)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| o | |\n|---|---|\n\n#### public int\n**hashCode**\n()\n\n\u003cbr /\u003e\n\n#### public int\n**index**\n()\n\nReturns the index into the outputs of the Operation. \n\n#### public [Operation](/api_docs/java/org/tensorflow/Operation)\n**op**\n()\n\nReturns the Operation that will produce the tensor referred to by this Output. \n\n#### public [Shape](/api_docs/java/org/tensorflow/Shape)\n**shape**\n()\n\nReturns the (possibly partially known) shape of the tensor referred to by this Output. \n\n#### public [Tensor](/api_docs/java/org/tensorflow/Tensor)\\\u003cT\\\u003e\n**tensor**\n()\n\nReturns the tensor at this output.\n\nThis operation is only supported on the outputs of an operation executed eagerly. For graph\nenvironments, output tensors must be fetched by running a session, using [Session.Runner.fetch(Output)](/api_docs/java/org/tensorflow/Session.Runner#fetch(org.tensorflow.Output\u003c?\u003e)).\n\n\u003cbr /\u003e\n\n##### Returns\n\n- tensor \n\n##### Throws\n\n| IllegalStateException | if this output results from a graph |\n|-----------------------|-------------------------------------|\n\n##### See Also\n\n- [EagerSession](/api_docs/java/org/tensorflow/EagerSession) \n\n#### public String\n**toString**\n()\n\n\u003cbr /\u003e"]]