tensorflow :: ops ::パッド
#include <array_ops.h>
テンソルをゼロで埋めます。
概要
この操作は、パッドinput
に応じてゼロでpaddings
は、指定を。 paddings
は、形状[Dn, 2]
整数テンソルです。ここで、nはinput
のランクです。 input
各次元Dについて、 paddings[D, 0]
は、その次元のinput
の内容の前に追加するゼロの数を示し、 paddings[D, 1]
は、その次元のinput
の内容の後に追加するゼロの数を示します。
出力の各次元Dのパッドサイズは次のとおりです。
paddings(D, 0) + input.dim_size(D) + paddings(D, 1)
例えば:
# 't' is [[1, 1], [2, 2]] # 'paddings' is [[1, 1], [2, 2]] # rank of 't' is 2 pad(t, paddings) ==> [[0, 0, 0, 0, 0, 0] [0, 0, 1, 1, 0, 0] [0, 0, 2, 2, 0, 0] [0, 0, 0, 0, 0, 0]]
引数:
- スコープ:スコープオブジェクト
戻り値:
-
Output
:出力テンソル。
コンストラクタとデストラクタ | |
---|---|
Pad (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input paddings) |
パブリック属性 | |
---|---|
operation | |
output |
公の行事 | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
パブリック属性
操作
Operation operation
出力
::tensorflow::Output output
公の行事
パッド
Pad( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input paddings )
ノード
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const