dòng chảy :: hoạt động :: ResourceApplyPowerSign
#include <training_ops.h>
Cập nhật '* var' theo bản cập nhật AddSign.
Tóm lược
m_t <- beta1 * m_ {t-1} + (1 - beta1) * g update <- exp (logbase * sign_decay * sign (g) * sign (m_t)) * g variable <- variable - lr_t * update
Tranh luận:
- phạm vi: Một đối tượng Phạm vi
- var: Phải từ một Biến ().
- m: Nên từ một Biến ().
- lr: Hệ số tỷ lệ. Phải là một vô hướng.
- logbase: Phải là một đại lượng vô hướng.
- sign_decay: Phải là một đại lượng vô hướng.
- beta: 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 Phần Attrs
):
- use_locking: Nếu
True
, việc cập nhật các tenxơ var và m đượ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 | |
---|---|
ResourceApplyPowerSign (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input m, :: tensorflow::Input lr, :: tensorflow::Input logbase, :: tensorflow::Input sign_decay, :: tensorflow::Input beta, :: tensorflow::Input grad) | |
ResourceApplyPowerSign (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input m, :: tensorflow::Input lr, :: tensorflow::Input logbase, :: tensorflow::Input sign_decay, :: tensorflow::Input beta, :: tensorflow::Input grad, const ResourceApplyPowerSign::Attrs & attrs) |
Thuộc tính công cộng | |
---|---|
operation |
Chức năng công cộng | |
---|---|
operator::tensorflow::Operation () const |
Các chức năng tĩnh công khai | |
---|---|
UseLocking (bool x) |
Cấu trúc | |
---|---|
tensorflow :: ops :: ResourceApplyPowerSign :: Attrs | Bộ thiết lập thuộc tính tùy chọn cho ResourceApplyPowerSign . |
Thuộc tính công cộng
hoạt động
Operation operation
Chức năng công cộng
ResourceApplyPowerSign
ResourceApplyPowerSign( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input m, ::tensorflow::Input lr, ::tensorflow::Input logbase, ::tensorflow::Input sign_decay, ::tensorflow::Input beta, ::tensorflow::Input grad )
ResourceApplyPowerSign
ResourceApplyPowerSign( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input m, ::tensorflow::Input lr, ::tensorflow::Input logbase, ::tensorflow::Input sign_decay, ::tensorflow::Input beta, ::tensorflow::Input grad, const ResourceApplyPowerSign::Attrs & attrs )
toán tử :: tensorflow :: Hoạt động
operator::tensorflow::Operation() const
Các chức năng tĩnh công khai
UseLocking
Attrs UseLocking( bool x )