텐서플로우:: 작전:: 브로드캐스트 대상

#include <array_ops.h>

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

요약

브로드캐스트는 산술 연산에 적합한 모양을 갖도록 배열을 만드는 프로세스입니다. 각 차원 쌍에 대해 두 모양이 동일하거나 그 중 하나가 하나인 경우 두 모양이 호환됩니다. Tensor를 모양으로 브로드캐스트하려고 하면 후행 차원에서 시작하여 앞으로 나아갑니다.

예를 들어,

>>> x = tf.constant([1, 2, 3])
>>> y = tf.broadcast_to(x, [3, 3])
>>> sess.run(y)
array([[1, 2, 3],
       [1, 2, 3],
       [1, 2, 3]], dtype=int32)

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

인수:

  • 범위: 범위 개체
  • 입력: 브로드캐스트할 Tensor .
  • 모양: 1차원 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(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input shape
)

마디

::tensorflow::Node * node() const 

연산자::텐서플로우::입력

 operator::tensorflow::Input() const 

연산자::텐서플로우::출력

 operator::tensorflow::Output() const