텐서플로우::ops::PreventGradient

#include <array_ops.h>

그라디언트가 요청될 경우 오류를 발생시키는 ID 연산입니다.

요약

그래프에서 실행될 때, 이 연산은 입력 텐서를 그대로 출력합니다.

기울기를 계산하는 연산을 만들 때, TensorFlow의 기울기 시스템은 이 연산의 기울기를 조회하려고 하면 오류를 반환합니다. 이 함수에는 기울기를 등록할 필요가 없기 때문입니다. 이 연산은 특정 예외 상황에서 구현되지 않은 기울기를 조용히 반환하는 미묘한 버그를 방지하기 위해 존재합니다.

논거:

  • 범위: Scope 객체
  • 입력: 임의의 텐서.

선택적 속성( 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)

구조

텐서플로우:: ops:: PreventGradient:: Attrs

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
)