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

tensorflow :: ops :: 양수인

#include <state_ops.h>

'value'를 할당하여 'ref'를 업데이트합니다.

요약

이 작업은 할당이 완료된 후 "ref"를 출력합니다. 이렇게하면 재설정 값을 사용해야하는 작업을 더 쉽게 연결할 수 있습니다.

인수 :

  • 범위 : 범위 개체
  • ref : Variable 노드에서 Variable 합니다. 초기화되지 않을 수 있습니다.
  • value : 변수에 할당 할 값입니다.

선택적 속성 ( Attrs 참조) :

  • validate_shape : true이면 작업에서 'value'의 모양이 할당되는 Tensor 의 모양과 일치하는지 확인합니다. 거짓이면 'ref'는 '값'의 형태를 취합니다.
  • use_locking : True이면 할당이 잠금으로 보호됩니다. 그렇지 않으면 동작이 정의되지 않지만 경합이 적을 수 있습니다.

보고:

  • Output : = "ref"와 동일. 변수가 재설정 된 후 새 값을 사용하려는 작업의 편의를 위해 반환됩니다.

생성자와 소멸자

Assign (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input value)
Assign (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input value, const Assign::Attrs & attrs)

공용 속성

operation
output_ref

공공 기능

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

공개 정적 함수

UseLocking (bool x)
ValidateShape (bool x)

구조체

tensorflow :: ops :: 할당 :: 속성

Assign에 대한 선택적 속성 setter입니다.

공용 속성

조작

Operation operation

output_ref

::tensorflow::Output output_ref

공공 기능

양수인

 Assign(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input value
)

양수인

 Assign(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input value,
  const Assign::Attrs & attrs
)

마디

::tensorflow::Node * node() const 

연산자 :: tensorflow :: 입력

 operator::tensorflow::Input() const 

연산자 :: tensorflow :: 출력

 operator::tensorflow::Output() const 

공개 정적 함수

사용 잠금

Attrs UseLocking(
  bool x
)

ValidateShape

Attrs ValidateShape(
  bool x
)