ScalingStep¶
Chainable step that scales the gradients by a fixed factor and/or a factor that varies on a schedule.
If both are given, the product of the two is applied. This node can be used to apply things like a fixed learning rate, a learning rate schedule, and/or the sign flip at the end of the chain to turn the processed gradient into an additive update. Version 0.2.0
Ports/Properties¶
gradients¶
Gradients to be transformed.
weights¶
Optional current weights.
state¶
Explicit state of the node.
factor_schedule¶
Optional schedule for the factor.
factor¶
Scaling factor to apply to the gradients.
set_breakpoint¶
Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.
metadata¶
User-definable meta-data associated with the node. Usually reserved for technical purposes.