ClipGradientByValue

class ClipGradientByValue(clipValue: Float) : ClipGradientAction

Clips gradient value to clipValue if gradient value more than clipValue and to -clipValue if gradient value less than -clipValue.

Constructors

ClipGradientByValue
Link copied to clipboard
fun ClipGradientByValue(clipValue: Float)

Functions

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

Clips gradient.