Thanks ptrblck, i wish there is something wrong with the code. but seems you also agree there is no major problem. i thought for this simple example it would converge very fast since embedding should be powerful enough for simple text classification. but the above code never gets the loss below 0.6 after many epochs. accuracy is just a bit above 50%.
anyway, I will keep looking into other example scripts online to see if I can reproduce the expected good result.
thanks again for the quick reply! ptrblck