ClipGradientAction

abstract class ClipGradientAction

Base abstract class for approaches to clip gradient values from step to step in optimizer.

Constructors

ClipGradientAction
Link copied to clipboard
fun ClipGradientAction()

Functions

clipGradient
Link copied to clipboard
abstract fun clipGradient(tf: Ops, gradient: Operand<Float>): Operand<Float>

Clips gradient.

Inheritors

NoClipGradient
Link copied to clipboard
ClipGradientByValue
Link copied to clipboard
ClipGradientByNorm
Link copied to clipboard