tensorflow / addons

Useful extra functionality for TensorFlow 2.x maintained by SIG-addons
Apache License 2.0
1.69k stars 610 forks source link

EmbeddingBag saving/loading in 'tf' save_model mode #2803

Closed AlexanderLavelle closed 1 year ago

AlexanderLavelle commented 1 year ago

While using TFX recently, it came to my attention that the EmbeddingBag layer does not save correctly in 'tf' format. This is because there is an attribute that is undefined -- in VSCode it can easily be seen as undefined. After some research into this issue, self.input_length should not be be present in EmbeddingBag as it would require a modification to documentation and because it does not appear necessary to use.