idan ahal
idan ahal

Reputation: 913

What is the difference between clipnorm and clipval on Keras

What is the difference between clipnorm and clipval.

Ex: opt = SGD(lr=0.01, momentum=0.9, clipnorm=1.0)

Upvotes: 4

Views: 6198

Answers (1)

Srihari Humbarwadi
Srihari Humbarwadi

Reputation: 2632

Incase of clipnorm, the l2 norm of the gradients is capped at the specified value.

While clipvalue caps the gradient values such that they don't exceed the specified value

Upvotes: 8

Related Questions