Commit 75a83c9a authored by Mustafa Ispir's avatar Mustafa Ispir Committed by TensorFlower Gardener
Browse files

Supports 0. regularization. Without this user needs to add an 'if else' when...

Supports 0. regularization. Without this user needs to add an 'if else' when they do hyper parameter tuning for regularization.
Currently it crashes if you provide `activity_regularizer=l2(0.)`. Core reason is that L1L2(..)() returns non-tensor object in case of `l=0.`.

PiperOrigin-RevId: 234689073
parent 505b11b8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment