텐서플로우:: ops:: IdentityN
#include <array_ops.h>입력과 동일한 모양과 내용을 가진 텐서들의 리스트를 반환합니다.
요약
텐서.
이 연산자는 복잡한 함수의 기울기를 재정의하는 데 사용할 수 있습니다. 예를 들어, y = f(x)이고 역전파에 사용자 정의 함수 g를 적용하여 dx = g(dy)가 되도록 하려는 경우를 생각해 보겠습니다. 파이썬에서는 다음과 같습니다.
with tf.get_default_graph().gradient_override_map(
{'IdentityN': 'OverrideGradientWithG'}):
y, _ = identity_n([f(x), x]).RegisterGradient('OverrideGradientWithG') def ApplyG(op, dy, _): return [None, g(dy)] # Do not backprop to f(x).
논거:
- 범위: Scope 객체
보고:
-
OutputList: 출력 텐서입니다.
생성자와 소멸자 | |
|---|---|
IdentityN (const :: tensorflow::Scope & scope, :: tensorflow::InputList input) |
공개 속성 | |
|---|---|
operation | |
output | |
공공 기능 | |
|---|---|
operator[] (size_t index) const | |
공개 속성
작업
Operation operation
산출
::tensorflow::OutputList output
공공 기능
아이덴티티N
IdentityN( const ::tensorflow::Scope & scope, ::tensorflow::InputList input )
연산자[]
::tensorflow::Output operator[]( size_t index ) const