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
.
출력의 각 차원 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
연산자 :: tensorflow :: 입력
operator::tensorflow::Input() const
연산자 :: tensorflow :: 출력
operator::tensorflow::Output() const