dòng chảy căng:: ôi:: Tài nguyênÁp dụngPowerSign

#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 cập nhật <- exp(logbase * sign_decay * sign(g) * sign(m_t)) * g biến <- biến - lr_t * cập nhật

Tranh luận:

  • phạm vi: Một đối tượng Phạm vi
  • var: Phải từ một Biến().
  • m: Phải từ một Biến().
  • lr: Hệ số tỷ lệ. Phải là một vô hướng.
  • logbase: Phải là số vô hướng.
  • sign_decay: Phải là số vô hướng.
  • beta: Phải là một đại lượng vô hướng.
  • grad: Độ dố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; mặt khác, hành vi không được xác định, nhưng có thể ít gây tranh cãi hơn.

Trả về:

Hàm tạo và hàm 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 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:: ResourceApplyPowerSign:: Attrs

Trình thiết lập thuộc tính tùy chọn cho ResourceApplyPowerSign .

Thuộc tính công khai

hoạt động

Operation operation

Chức năng công cộng

Tài nguyênÁp dụngPowerSign

 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
)

Tài nguyênÁp dụngPowerSign

 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ử::tenorflow::Hoạt động

 operator::tensorflow::Operation() const 

Các hàm tĩnh công khai

Sử dụngKhóa

Attrs UseLocking(
  bool x
)