tensorflow::ops::ResourceSparseApplyAdagradDA
#include <training_ops.h>Cập nhật các mục trong '*var' và '*accum' theo lược đồ adagrad gần đúng.
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().
- gradient_accumulator: Nên được lấy từ một Variable().
- gradient_squared_accumulator: Nên được lấy từ một Variable().
- grad: Độ dốc.
- chỉ số: Một vectơ các chỉ số vào chiều thứ nhất của var và accum.
- lr: Tốc độ học. Phải là một đại lượng vô hướng.
- l1: Chuẩn hóa L1. Phải là một giá trị vô hướng.
- l2: Chuẩn hóa L2. Phải là một giá trị vô hướng.
- global_step: Số bước huấn luyện. Phải là một giá trị vô hướng.
Các thuộc tính tùy chọn (xem Attrs ):
- use_locking: Nếu True, việc cập nhật các tensor var và accum 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ề:
-
Operationđược tạo
Hàm khởi tạo và hàm hủy | |
|---|---|
ResourceSparseApplyAdagradDA (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) | |
ResourceSparseApplyAdagradDA (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 ResourceSparseApplyAdagradDA::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::ResourceSparseApplyAdagradDA::Attrs | Các thiết lập thuộc tính tùy chọn cho ResourceSparseApplyAdagradDA . |
Thuộc tính công khai
hoạt động
Operation operation
Chức năng công cộng
ResourceSparseApplyAdagradDA
ResourceSparseApplyAdagradDA( 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 )
ResourceSparseApplyAdagradDA
ResourceSparseApplyAdagradDA( 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 ResourceSparseApplyAdagradDA::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 )