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>
출력 ()
텐서의 기호 핸들을 반환합니다.
추상 T
텐서 ()
이 피연산자의 텐서를 반환합니다.
추상 모양
모양 ()
이 피연산자의 Output 에서 ​​참조하는 텐서의 (아마도 부분적으로 알려진) 모양을 반환합니다.
추상 클래스<T>
유형 ()
이 피연산자의 텐서 유형을 반환합니다.

상속된 메서드

공개 방법

공개 추상 출력 <T> asOutput ()

텐서의 기호 핸들을 반환합니다.

TensorFlow 작업에 대한 입력은 다른 TensorFlow 작업의 출력입니다. 이 메서드는 입력 계산을 나타내는 기호 핸들을 얻는 데 사용됩니다.

또한보십시오

공개 추상 T asTensor ()

이 피연산자의 텐서를 반환합니다. 즉시 실행으로 실행될 때만 작동합니다.

보고
  • 텐서
던지기
IllegalStateException 이것이 그래프의 피연산자인 경우

공개 추상 모양 모양 ()

이 피연산자의 Output 에서 ​​참조하는 텐서의 (아마도 부분적으로 알려진) 모양을 반환합니다.

공개 추상 Class<T> 유형 ()

이 피연산자의 텐서 유형을 반환합니다.