tensorflow:: ops:: BroadcastTo

#include <array_ops.h>

互換性のある形状の配列をブロードキャストします。

まとめ

ブロードキャストとは、配列の形状を算術演算に適したものにするプロセスです。2つの形状は、各次元ペアについて、それらが等しいか、どちらか一方が1である場合に互換性があるとみなされます。テンソルを形状にブロードキャストしようとすると、まず末尾の次元から始まり、順に処理が進められます。

例えば、

>>> 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]の入力テンソルが、形状が[3, 3]の出力テンソルにブロードキャストされます。

議論:

返品:

コンストラクターとデストラクタ

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

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const