Fix YAML serialization when using Regularizers (#2883)
Fix YAML serialization when using Regularizers (#2883)

Fix #2871
DeepGnosis/keras,dolaameng/keras,nebw/keras,keras-team/keras,keras-team/keras,relh/keras,kuza55/keras,kemaswill/keras