dòng chảy :: hoạt động :: SparseApplyAdagradDA

#include <training_ops.h>

Cập nhật các mục nhập trong '* var' và '* Accu' theo lược đồ adagrad gần.

Tóm lược

Tranh luận:

  • phạm vi: Một đối tượng Phạm vi
  • var: Phải từ một Biến ().
  • gradient_accumulator: Phải từ một Biến ().
  • gradient_squared_accumulator: Phải từ một Biến ().
  • grad: Độ dốc.
  • chỉ số: Một vectơ của các chỉ số trong thứ nguyên đầu tiên của var và Accu.
  • lr: Tỷ lệ học tập. Phải là một vô hướng.
  • l1: Chính quy hóa L1. Phải là một vô hướng.
  • l2: Chính quy hóa L2. Phải là một vô hướng.
  • global_step: Số bước huấn luyện. Phải là một vô hướng.

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

  • use_locking: Nếu True, việc cập nhật các tenxơ var và tích lũy sẽ được bảo vệ bằng một khóa; nếu không thì hành vi không được xác định, nhưng có thể ít biểu hiện sự cạnh tranh hơn.

Lợi nhuận:

  • Output : Giống như "var".

Người xây dựng và Người phá hủy

SparseApplyAdagradDA (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input gradient_accumulator, :: tensorflow::Input gradient_squared_accumulator, :: tensorflow::Input grad, :: tensorflow::Input indices, :: tensorflow::Input lr, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input global_step)
SparseApplyAdagradDA (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input gradient_accumulator, :: tensorflow::Input gradient_squared_accumulator, :: tensorflow::Input grad, :: tensorflow::Input indices, :: tensorflow::Input lr, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input global_step, const SparseApplyAdagradDA::Attrs & attrs)

Thuộc tính công khai

operation
out

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

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

Các chức năng tĩnh công khai

UseLocking (bool x)

Cấu trúc

tensorflow :: ops :: SparseApplyAdagradDA :: Attrs

Bộ thiết lập thuộc tính tùy chọn cho SparseApplyAdagradDA .

Thuộc tính công khai

hoạt động

Operation operation

ngoài

::tensorflow::Output out

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

SparseApplyAdagradDA

 SparseApplyAdagradDA(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input gradient_accumulator,
  ::tensorflow::Input gradient_squared_accumulator,
  ::tensorflow::Input grad,
  ::tensorflow::Input indices,
  ::tensorflow::Input lr,
  ::tensorflow::Input l1,
  ::tensorflow::Input l2,
  ::tensorflow::Input global_step
)

SparseApplyAdagradDA

 SparseApplyAdagradDA(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input gradient_accumulator,
  ::tensorflow::Input gradient_squared_accumulator,
  ::tensorflow::Input grad,
  ::tensorflow::Input indices,
  ::tensorflow::Input lr,
  ::tensorflow::Input l1,
  ::tensorflow::Input l2,
  ::tensorflow::Input global_step,
  const SparseApplyAdagradDA::Attrs & attrs
)

nút

::tensorflow::Node * node() const 

toán tử :: tensorflow :: Đầu vào

 operator::tensorflow::Input() const 

toán tử :: tensorflow :: Đầu ra

 operator::tensorflow::Output() const 

Các chức năng tĩnh công khai

UseLocking

Attrs UseLocking(
  bool x
)