Fix a bug that ncf_keras model cannot be serialized as JSON.
Fix a bug that ncf_keras model cannot be serialized as JSON.

PiperOrigin-RevId: 314664026

tombstone/models,tombstone/models,tombstone/models,tombstone/models,tombstone/models,tombstone/models