Google I/O에 참여해 주셔서 감사합니다. 주문형 모든 세션 보기 주문형 시청

tensorflow :: ops :: PreventGradient

#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

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

PreventGradient

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

마디

::tensorflow::Node * node() const 

연산자 :: tensorflow :: 입력

 operator::tensorflow::Input() const 

연산자 :: tensorflow :: 출력

 operator::tensorflow::Output() const 

공개 정적 함수

메시지

Attrs Message(
  StringPiece x
)