Transformer model not able to be saved

I’m trying to follow this tutrial https://colab.research.google.com/github/tensorflow/examples/blob/master/community/en/transformer_chatbot.ipynb, However, when I tried to save the model in order to load it again without training I got an error mentioned here NotImplementedError: Layers with arguments in `__init__` must override `get_config` I understood from the answer that I need to make the encoder and decoder as classes and…

Details

How to ignore LAZY types dynamically on SpringBoot app?

I have a class: @Entity @Table(name = “restaurants”) public class Restaurant extends AbstractNamedEntity implements Serializable { @OneToMany(fetch = FetchType.LAZY, mappedBy = “restaurant”) private Set<Meal> meals = Collections.emptySet(); //other fields, getters, setters, constructors } I’m getting my data with Spring Data: @Repository public interface RestaurantRepository extends CrudRepository<Restaurant, Integer> { } I have REST-controller, which produces JSON…

Details