tensorflow::ops::ResourceApplyAdagrad
#include <training_ops.h>Cập nhật '*var' theo lược đồ adagrad.
Bản tóm tắt
tích lũy += grad * grad var -= lr * grad * (1 / sqrt(accum))
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().
- tích lũy: Nên được lấy từ một biến().
- lr: Hệ số tỷ lệ. Phải là một đại lượng vô hướng.
- grad: Độ dốc.
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 | |
|---|---|
ResourceApplyAdagrad (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input grad) | |
ResourceApplyAdagrad (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input accum, :: tensorflow::Input lr, :: tensorflow::Input grad, const ResourceApplyAdagrad::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 | |
|---|---|
UpdateSlots (bool x) | |
UseLocking (bool x) | |
Cấu trúc | |
|---|---|
| tensorflow::ops::ResourceApplyAdagrad::Attrs | Các thiết lập thuộc tính tùy chọn cho ResourceApplyAdagrad . |
Thuộc tính công khai
hoạt động
Operation operation
Chức năng công cộng
ResourceApplyAdagrad
ResourceApplyAdagrad( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input accum, ::tensorflow::Input lr, ::tensorflow::Input grad )
ResourceApplyAdagrad
ResourceApplyAdagrad( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input accum, ::tensorflow::Input lr, ::tensorflow::Input grad, const ResourceApplyAdagrad::Attrs & attrs )
operator::tensorflow::Operation
operator::tensorflow::Operation() const
Các hàm tĩnh công khai
UpdateSlots
Attrs UpdateSlots( bool x )
Sử dụng khóa
Attrs UseLocking( bool x )