tensorflow::ops::ResourceApplyAddSign
#include <training_ops.h>Cập nhật '*var' theo bản cập nhật AddSign.
Bản tóm tắt
m_t <- beta1 * m_{t-1} + (1 - beta1) * g update <- (alpha + sign_decay * sign(g) *sign(m)) * g variable <- variable - lr_t * update
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().
- m: Nên lấy từ một biến().
- lr: Hệ số tỷ lệ. Phải là một đại lượng vô hướng.
- alpha: Phải là một giá trị vô hướng.
- sign_decay: Phải là một giá trị vô hướng.
- beta: Phải là một giá trị 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à m đượ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 | |
|---|---|
ResourceApplyAddSign (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input m, :: tensorflow::Input lr, :: tensorflow::Input alpha, :: tensorflow::Input sign_decay, :: tensorflow::Input beta, :: tensorflow::Input grad) | |
ResourceApplyAddSign (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input m, :: tensorflow::Input lr, :: tensorflow::Input alpha, :: tensorflow::Input sign_decay, :: tensorflow::Input beta, :: tensorflow::Input grad, const ResourceApplyAddSign::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::ResourceApplyAddSign::Attrs | Các thiết lập thuộc tính tùy chọn cho ResourceApplyAddSign . |
Thuộc tính công khai
hoạt động
Operation operation
Chức năng công cộng
ResourceApplyAddSign
ResourceApplyAddSign( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input m, ::tensorflow::Input lr, ::tensorflow::Input alpha, ::tensorflow::Input sign_decay, ::tensorflow::Input beta, ::tensorflow::Input grad )
ResourceApplyAddSign
ResourceApplyAddSign( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input m, ::tensorflow::Input lr, ::tensorflow::Input alpha, ::tensorflow::Input sign_decay, ::tensorflow::Input beta, ::tensorflow::Input grad, const ResourceApplyAddSign::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 )