Google I/O에 참여해 주셔서 감사합니다. 주문형 모든 세션 보기 주문형 시청

tensorflow :: ops :: BroadcastTo

#include <array_ops.h>

호환되는 모양에 대한 배열을 브로드 캐스트합니다.

요약

브로드 캐스팅은 산술 연산을 위해 호환되는 모양을 갖도록 배열을 만드는 프로세스입니다. 각 차원 쌍에 대해 같거나 둘 중 하나가 하나 인 경우 두 모양이 호환됩니다. Tensor 를 모양으로 브로드 캐스트하려고 할 때 후행 차원에서 시작하여 앞으로 나아갑니다.

예를 들면

x = tf.constant ([1, 2, 3]) y = tf.broadcast_to (x, [3, 3]) print (y) tf.Tensor ([[1 2 3] [12 3] [1 2 3]], 모양 = (3, 3), dtype = int32)

위의 예에서 [1, 3] 모양의 입력 Tensor[3, 3] 모양의 Tensor 를 출력하도록 브로드 캐스팅됩니다.

인수 :

  • 범위 : 범위 개체
  • 입력 : 방송 할 텐서 .
  • 모양 : 1-D int Tensor . 원하는 출력의 모양.

보고:

생성자와 소멸자

BroadcastTo (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input shape)

공용 속성

operation
output

공공 기능

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

공용 속성

조작

Operation operation

산출

::tensorflow::Output output

공공 기능

BroadcastTo

 BroadcastTo(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input shape
)

마디

::tensorflow::Node * node() const 

연산자 :: tensorflow :: 입력

 operator::tensorflow::Input() const 

연산자 :: tensorflow :: 출력

 operator::tensorflow::Output() const