tensorflow :: ops :: PadV2
#include <array_ops.h>
テンソルを埋めます。
概要
この操作は、指定したpaddings
とconstant_values
に従ってinput
をpaddings
します。 paddings
は、形状[Dn, 2]
整数テンソルです。ここで、nはinput
のランクです。 input
各次元Dについて、 paddings[D, 0]
は、その次元のinput
の内容の前に追加するパディング値の数を示し、 paddings[D, 1]
は、そのinput
の内容の後に追加するパディング値の数を示します。寸法。 constant_values
は、 input
と同じタイプのスカラーテンソルであり、 input
パディングに使用する値を示しinput
。
出力の各次元Dのパッドサイズは次のとおりです。
paddings(D, 0) + input.dim_size(D) + paddings(D, 1)
例えば:
# 't' is [[1, 1], [2, 2]] # 'paddings' is [[1, 1], [2, 2]] # 'constant_values' is 0 # 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
:出力テンソル。
コンストラクタとデストラクタ | |
---|---|
PadV2 (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input paddings, :: tensorflow::Input constant_values) |
パブリック属性 | |
---|---|
operation | |
output |
公の行事 | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
パブリック属性
操作
Operation operation
出力
::tensorflow::Output output
公の行事
PadV2
PadV2( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input paddings, ::tensorflow::Input constant_values )
ノード
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const