Skip to content

Conversation

@WindQAQ
Copy link
Member

@WindQAQ WindQAQ commented Aug 23, 2019

The order of decorators do matter! If we put @tf.function outer, then the function after deserialization will not be the same with the original one (before: tf.function, deserialize: python function).

Also, I think serialization/deserialization is also one of the features in keras. Maybe we have to make sure all subclasses from tf.keras.* could be serialized/de-serialized and be well tested.

Copy link
Member

@facaiy facaiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Make sense.

@facaiy facaiy merged commit ddf7e38 into tensorflow:master Aug 27, 2019
@seanpmorgan
Copy link
Member

The order of decorators do matter! If we put @tf.function outer, then the function after deserialization will not be the same with the original one (before: tf.function, deserialize: python function).

Also, I think serialization/deserialization is also one of the features in keras. Maybe we have to make sure all subclasses from tf.keras.* could be serialized/de-serialized and be well tested.

Think it's a great idea that we test all tf.keras* things for ser/de validity. the keras_layer includes that check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants