tensorflow::ops::ResourceApplyGradientDescent

#include <training_ops.h>

Cập nhật '*var' bằng cách trừ đi 'alpha' * 'delta'.

Bản tóm tắt

Luận điểm:

  • phạm vi: Một đối tượng Phạm vi
  • var: Nên được lấy từ một biến Variable().
  • alpha: Hệ số tỷ lệ. Phải là một số vô hướng.
  • delta: Sự thay đổi.

Các thuộc tính tùy chọn (xem Attrs ):

  • use_locking: Nếu True , phép trừ sẽ được bảo vệ bằng khóa; ngược lại, hành vi không được xác định, nhưng có thể ít xảy ra xung đột hơn.

Trả về:

Hàm khởi tạo và hàm hủy

ResourceApplyGradientDescent (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input alpha, :: tensorflow::Input delta)
ResourceApplyGradientDescent (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input alpha, :: tensorflow::Input delta, const ResourceApplyGradientDescent::Attrs & attrs)

Thuộc tính công khai

operation

Chức năng công cộng

operator::tensorflow::Operation () const

Các hàm tĩnh công khai

UseLocking (bool x)

Cấu trúc

tensorflow::ops::ResourceApplyGradientDescent::Attrs

Các thiết lập thuộc tính tùy chọn cho ResourceApplyGradientDescent .

Thuộc tính công khai

hoạt động

Operation operation

Chức năng công cộng

ResourceApplyGradientDescent

 ResourceApplyGradientDescent(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input alpha,
  ::tensorflow::Input delta
)

ResourceApplyGradientDescent

 ResourceApplyGradientDescent(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input alpha,
  ::tensorflow::Input delta,
  const ResourceApplyGradientDescent::Attrs & attrs
)

operator::tensorflow::Operation

 operator::tensorflow::Operation() const 

Các hàm tĩnh công khai

Sử dụng khóa

Attrs UseLocking(
  bool x
)