텐서플로우:: 작전:: 인주

#include <array_ops.h>

텐서를 0으로 채웁니다.

요약

이 작업은 지정한 paddings 에 따라 input 0으로 채웁니다. paddings [Dn, 2] 형태의 정수 텐서입니다. 여기서 n은 input 의 순위입니다. input 의 각 차원 D에 대해 paddings[D, 0] 해당 차원의 input 내용 앞에 추가할 0의 수를 나타내고, paddings[D, 1] 해당 차원의 input 내용 뒤에 추가할 0의 수를 나타냅니다.

출력의 각 차원 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]]

인수:

보고:

생성자와 소멸자

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() const 

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

 operator::tensorflow::Output() const