Operand

পাবলিক ইন্টারফেস অপারেন্ড
পরিচিত পরোক্ষ উপশ্রেণী

Interface implemented by operands of a TensorFlow operation.

উদাহরণ ব্যবহার:

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));
 

পাবলিক পদ্ধতি

abstract Output <T>
asOutput ()
Returns the symbolic handle of the tensor.
abstract T
asTensor ()
Returns the tensor at this operand.
abstract Shape
আকৃতি ()
Returns the (possibly partially known) shape of the tensor referred to by the Output of this operand.
abstract Class<T>
type ()
Returns the tensor type of this operand

উত্তরাধিকারসূত্রে প্রাপ্ত পদ্ধতি

পাবলিক পদ্ধতি

public abstract Output <T> asOutput ()

Returns the symbolic handle of the tensor.

Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.

এছাড়াও দেখুন

public abstract T asTensor ()

Returns the tensor at this operand. Only works when running in an eager execution

রিটার্নস
  • টেনসর
নিক্ষেপ করে
অবৈধ রাজ্য ব্যতিক্রম if this is an operand of a graph

public abstract Shape shape ()

Returns the (possibly partially known) shape of the tensor referred to by the Output of this operand.

public abstract Class<T> type ()

Returns the tensor type of this operand