Put @keras_serializable only on layers it works on
And only run the test on TF*MainLayer classes so marked.
This commit is contained in:
@@ -71,6 +71,7 @@ def keras_serializable(cls):
|
||||
|
||||
cls.get_config = get_config
|
||||
|
||||
cls._keras_serializable = True
|
||||
return tf.keras.utils.register_keras_serializable()(cls)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user