Hi @vdw,
Thank you very much, the only reason is because I want to start from the basics to understand it well. I spot an important thing, the loss decreases within each epoch, but it doesn’t  between epochs. In other words, when a new epoch starts, the model forget everything.
I’m attaching an image that shows this effect. Do you have any idea what in my code is generating this?