텐서플로우:: 작전:: 아이덴티티N
#include <array_ops.h>
입력과 모양 및 내용이 동일한 텐서 목록을 반환합니다.
요약
텐서.
이 작업은 복잡한 기능의 그라데이션을 재정의하는 데 사용할 수 있습니다. 예를 들어, y = f(x)이고 dx = g(dy)가 되는 역전파에 대한 사용자 정의 함수 g를 적용하려고 한다고 가정합니다. 파이썬에서는
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).
인수:
- 범위: 범위 개체
보고:
-
OutputList
: 출력 텐서.
생성자와 소멸자 | |
---|---|
IdentityN (const :: tensorflow::Scope & scope, :: tensorflow::InputList input) |
공공 기능 | |
---|---|
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