dòng chảy :: ops :: ResourceApplyAdagrad
#include <training_ops.h>
Cập nhật '* var' theo lược đồ adagrad.
Tóm lược
Accu + = grad * grad var - = lr * grad * (1 / sqrt (ắc))
Tranh luận:
- phạm vi: Một đối tượng Phạm vi
- var: Phải từ một Biến ().
- Tích lũy: Phải từ một Biến ().
- lr: Hệ số tỷ lệ. Phải là một vô hướng.
- grad: Độ dốc.
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 hàng chục 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:
-
Operation
đã tạo
Người xây dựng và Người phá 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 cộng | |
---|---|
operation |
Chức năng công cộng | |
---|---|
operator::tensorflow::Operation () const |
Chức năng tĩnh công khai | |
---|---|
UpdateSlots (bool x) | |
UseLocking (bool x) |
Cấu trúc | |
---|---|
tensorflow :: ops :: ResourceApplyAdagrad :: Attrs | Bộ thiết lập thuộc tính tùy chọn cho ResourceApplyAdagrad . |
Thuộc tính công cộng
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 )
toán tử :: tensorflow :: Hoạt động
operator::tensorflow::Operation() const
Chức năng tĩnh công khai
UpdateSlots
Attrs UpdateSlots( bool x )
UseLocking
Attrs UseLocking( bool x )