텐서플로우:: 작전:: 그라데이션 방지

#include <array_ops.h>

그라데이션이 요청되면 오류를 트리거하는 ID 작업입니다.

요약

그래프에서 실행될 때 이 작업은 입력 텐서를 있는 그대로 출력합니다.

경사도를 계산하기 위한 연산을 구축할 때 TensorFlow 경사도 시스템은 이 연산의 경사도를 조회하려고 하면 오류를 반환합니다. 왜냐하면 이 함수에 대해 경사도를 등록하면 안 되기 때문입니다. 이 작업은 일부 경우에 미묘한 버그가 구현되지 않은 그래디언트를 자동으로 반환하는 것을 방지하기 위해 존재합니다.

인수:

  • 범위: 범위 개체
  • 입력: 모든 텐서.

선택적 속성( Attrs 참조):

  • 메시지: 누구든지 이 작업을 구별하려고 하면 오류에 인쇄됩니다.

보고:

  • Output : 동일한 입력 텐서.

생성자와 소멸자

PreventGradient (const :: tensorflow::Scope & scope, :: tensorflow::Input input)
PreventGradient (const :: tensorflow::Scope & scope, :: tensorflow::Input input, const PreventGradient::Attrs & attrs)

공개 속성

operation
output

공공 기능

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

공개 정적 함수

Message (StringPiece x)

구조체

tensorflow:: ops:: PreventGradient:: 속성

PreventGradient 에 대한 선택적 속성 설정자입니다.

공개 속성

작업

Operation operation

산출

::tensorflow::Output output

공공 기능

그라데이션 방지

 PreventGradient(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input
)

그라데이션 방지

 PreventGradient(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  const PreventGradient::Attrs & attrs
)

마디

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

공개 정적 함수

메시지

Attrs Message(
  StringPiece x
)