Operand

パブリックインターフェースオペランド
既知の間接サブクラス

Tensorflow操作のオペランドによって実装されたインターフェイス。

使用方法:

Ops tf = Ops.create();

 // The "decodeJpeg" operation can be used as an operand to the "cast" operation
 Operand<TUint8> decodeJpeg = tf.image.decodeJpeg(...);
 tf.dtypes.cast(decodeJpeg, TFloat32.class);

 // The output "y" of the "unique" operation can be used as an operand to the "cast" operation
 Output<TInt32> y = tf.unique(...).y();
 tf.dtypes.cast(y, TFloat32.class);

 // The "split" operation can be used as operand list to the "concat" operation
 Iterable<? extends Operand<TFloat32>> split = tf.split(...);
 tf.concat(split, tf.constant(0));
 

パブリックメソッド

抽象出力<T>
asOutput ()
テンソルのシンボリック ハンドルを返します。
抽象的なT
asTensor ()
このオペランドのテンソルを返します。
抽象的な
()
このオペランドのOutputによって参照されるテンソルの (おそらく部分的に既知の) 形状を返します。
抽象クラス<T>
タイプ()
このオペランドのテンソル型を返します。

継承されたメソッド

パブリックメソッド

パブリックアブストラクト出力<t> asoutput ()

テンソルのシンボリック ハンドルを返します。

TensorFlow オペレーションへの入力は、別の TensorFlow オペレーションの出力です。このメソッドは、入力の計算を表すシンボリック ハンドルを取得するために使用されます。

関連項目

パブリックアブストラクトtアセンサー()

このオペランドのテンソルを返します。熱心な実行で実行するときにのみ機能します

戻り値
  • テンソル
投げる
IllegalStateExceptionこれがグラフのオペランドの場合

パブリックアブストラクトシェイプ形状()

このオペランドのOutputによって参照されるテンソルの (おそらく部分的に既知の) 形状を返します。

パブリックアブストラクトクラス<t> type ()

このオペランドのテンソル型を返します。