BitwiseAnd

공개 최종 수업 BitwiseAnd

Elementwise는 `x`와 `y`의 비트별 AND를 계산합니다.

결과에는 'x'와 'y' 모두에 설정된 비트가 포함됩니다. 계산은 `x`와 `y`의 기본 표현에 대해 수행됩니다.

예:

import tensorflow as tf
 from tensorflow.python.ops import bitwise_ops
 dtype_list = [tf.int8, tf.int16, tf.int32, tf.int64,
               tf.uint8, tf.uint16, tf.uint32, tf.uint64]
 
 for dtype in dtype_list:
   lhs = tf.constant([0, 5, 3, 14], dtype=dtype)
   rhs = tf.constant([5, 0, 7, 11], dtype=dtype)
   exp = tf.constant([0, 0, 3, 10], dtype=tf.float32)
 
   res = bitwise_ops.bitwise_and(lhs, rhs)
   tf.assert_equal(tf.cast(res, tf.float32), exp) # TRUE
 

상수

OP_NAME TensorFlow 코어 엔진에서 알려진 이 작업의 이름

공개 방법

출력 <T>
출력 ()
텐서의 기호 핸들을 반환합니다.
static <T는 TNumber를 확장합니다. > BitwiseAnd <T>
생성 ( 범위 범위, 피연산자 <T> x, 피연산자 <T> y)
새로운 BitwiseAnd 작업을 래핑하는 클래스를 생성하는 팩토리 메서드입니다.
출력 <T>
z ()

상속된 메서드

상수

공개 정적 최종 문자열 OP_NAME

TensorFlow 코어 엔진에서 알려진 이 작업의 이름

상수 값: "BitwiseAnd"

공개 방법

공개 출력 <T> asOutput ()

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

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

공개 정적 BitwiseAnd <T> 생성 ( 범위 범위, 피연산자 <T> x, 피연산자 <T> y)

새로운 BitwiseAnd 작업을 래핑하는 클래스를 생성하는 팩토리 메서드입니다.

매개변수
범위 현재 범위
보고
  • BitwiseAnd의 새로운 인스턴스

공개 출력 <T> z ()