Tensorflow Type Error: Type already registered for SparseTensorValue "pywrap_tensorflow.RegisterType("SparseTensorValue", SparseTensorValue) TypeError: Type already registered for SparseTensorValue" -- this error pops up in your screen. Your code have been running properly just the last time and now its stuck. Want to figure out why? I have already done that for you. This has something to do with retaining variables due to internal code issues with spyder ide. So you are right, your code is just fine. Just go back and rerun your code once more, but before that, restart the kernel of spyder and it will run smooth.
I write about machine learning models, python programming, web scraping, statistical tests and other coding or data science related things I find interesting. Read, learn and grow with me!